aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vmmeter.h
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2016-05-27 19:15:45 +0000
committerAlan Cox <alc@FreeBSD.org>2016-05-27 19:15:45 +0000
commit56ce06907c635b1f5625d0bf1f369d11dd25bc04 (patch)
tree65150f07dbe38e94fb1301cac0cf55c9439e37b3 /sys/sys/vmmeter.h
parent23413065d404cf29e7c736fcdeaad0b75a5828c9 (diff)
downloadsrc-56ce06907c635b1f5625d0bf1f369d11dd25bc04.tar.gz
src-56ce06907c635b1f5625d0bf1f369d11dd25bc04.zip
The flag "vm_pages_needed" has long served two distinct purposes: (1) to
indicate that threads are waiting for free pages to become available and (2) to indicate whether a wakeup call has been sent to the page daemon. The trouble is that a single flag cannot really serve both purposes, because we have two distinct targets for when to wakeup threads waiting for free pages versus when the page daemon has completed its work. In particular, the flag will be cleared by vm_page_free() before the page daemon has met its target, and this can lead to the OOM killer being invoked prematurely. To address this problem, a new flag "vm_pageout_wanted" is introduced. Discussed with: jeff Reviewed by: kib, markj Tested by: markj Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=300865
Diffstat (limited to 'sys/sys/vmmeter.h')
-rw-r--r--sys/sys/vmmeter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/vmmeter.h b/sys/sys/vmmeter.h
index 9ff29032e632..55d3053ab0c2 100644
--- a/sys/sys/vmmeter.h
+++ b/sys/sys/vmmeter.h
@@ -76,7 +76,7 @@ struct vmmeter {
u_int v_vnodepgsout; /* (p) vnode pager pages paged out */
u_int v_intrans; /* (p) intransit blocking page faults */
u_int v_reactivated; /* (f) pages reactivated from free list */
- u_int v_pdwakeups; /* (f) times daemon has awaken from sleep */
+ u_int v_pdwakeups; /* (p) times daemon has awaken from sleep */
u_int v_pdpages; /* (p) pages analyzed by daemon */
u_int v_tcached; /* (p) total pages cached */