summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-06-27 01:58:12 +0000
committerdas <das@FreeBSD.org>2004-06-27 01:58:12 +0000
commit2aabb5e4662beb250a8e76de7a13aa3315c1e9ec (patch)
tree48045a033b4ff9376ba9f66fd3cf56f9a5743bcc /sys
parentfc2f6ee069a5f363320dec62ccf54b12ece0d438 (diff)
downloadFreeBSD-src-2aabb5e4662beb250a8e76de7a13aa3315c1e9ec.zip
FreeBSD-src-2aabb5e4662beb250a8e76de7a13aa3315c1e9ec.tar.gz
Update a stale comment. The heuristic to swap processes out based on
the number of pages already paged out was broken in rev 1.10 and removed in rev 1.11.
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_glue.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index b34f629..5ea15ab 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -1029,8 +1029,9 @@ retry:
}
/*
- * If the process has been asleep for awhile and had
- * most of its pages taken away already, swap it out.
+ * If the pageout daemon didn't free enough pages,
+ * or if this process is idle and the system is
+ * configured to swap proactively, swap it out.
*/
if ((action & VM_SWAP_NORMAL) ||
((action & VM_SWAP_IDLE) &&
OpenPOWER on IntegriCloud