From f52510b076a76e8a5270d16300e112075572bcb8 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 10 Sep 2001 07:29:32 +0000 Subject: Add on UPAGES to ki_rssize since it is there as result of the process and can be swapped out with the process. --- sys/kern/kern_proc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index f25193a..858b37a 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -445,6 +445,8 @@ fill_kinfo_proc(p, kp) kp->ki_size = vm->vm_map.size; kp->ki_rssize = vmspace_resident_count(vm); /*XXX*/ + if (p->p_sflag & PS_INMEM) + kp->ki_rssize += UPAGES; kp->ki_swrss = vm->vm_swrss; kp->ki_tsize = vm->vm_tsize; kp->ki_dsize = vm->vm_dsize; -- cgit v1.1