diff options
author | dillon <dillon@FreeBSD.org> | 1999-09-17 04:56:40 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-09-17 04:56:40 +0000 |
commit | 4cb1921c9b97c10844176bdd697e070b4af7e717 (patch) | |
tree | f570abee242d756236804e1630a4d34162994241 /sys/vm/vm_meter.c | |
parent | 2600195b6aa16ae0dd89bbb61802b1058238e31e (diff) | |
download | FreeBSD-src-4cb1921c9b97c10844176bdd697e070b4af7e717.zip FreeBSD-src-4cb1921c9b97c10844176bdd697e070b4af7e717.tar.gz |
Reviewed by: Alan Cox <alc@cs.rice.edu>, David Greenman <dg@root.com>
Replace various VM related page count calculations strewn over the
VM code with inlines to aid in readability and to reduce fragility
in the code where modules depend on the same test being performed
to properly sleep and wakeup.
Split out a portion of the page deactivation code into an inline
in vm_page.c to support vm_page_dontneed().
add vm_page_dontneed(), which handles the madvise MADV_DONTNEED
feature in a related commit coming up for vm_map.c/vm_object.c. This
code prevents degenerate cases where an essentially active page may
be rotated through a subset of the paging lists, resulting in premature
disposal.
Diffstat (limited to 'sys/vm/vm_meter.c')
-rw-r--r-- | sys/vm/vm_meter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_meter.c b/sys/vm/vm_meter.c index 4e7f0fb..6c69562 100644 --- a/sys/vm/vm_meter.c +++ b/sys/vm/vm_meter.c @@ -119,6 +119,8 @@ SYSCTL_INT(_vm, VM_V_CACHE_MAX, v_cache_max, CTLFLAG_RW, &cnt.v_cache_max, 0, ""); SYSCTL_INT(_vm, VM_V_PAGEOUT_FREE_MIN, v_pageout_free_min, CTLFLAG_RW, &cnt.v_pageout_free_min, 0, ""); +SYSCTL_INT(_vm, OID_AUTO, v_free_severe, + CTLFLAG_RW, &cnt.v_free_severe, 0, ""); SYSCTL_STRUCT(_vm, VM_LOADAVG, loadavg, CTLFLAG_RD, &averunnable, loadavg, "Machine loadaverage history"); |