diff options
author | peter <peter@FreeBSD.org> | 2001-09-10 07:29:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-09-10 07:29:32 +0000 |
commit | f52510b076a76e8a5270d16300e112075572bcb8 (patch) | |
tree | ece12af6e8e3af10017e37313d484a0e4dd7008e /sys | |
parent | 8b50e616bfed9554a43ca0b21179c22be7d0559f (diff) | |
download | FreeBSD-src-f52510b076a76e8a5270d16300e112075572bcb8.zip FreeBSD-src-f52510b076a76e8a5270d16300e112075572bcb8.tar.gz |
Add on UPAGES to ki_rssize since it is there as result of the process
and can be swapped out with the process.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |