aboutsummaryrefslogtreecommitdiff
path: root/bin/ed
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2014-05-06 03:42:04 +0000
committerAlan Cox <alc@FreeBSD.org>2014-05-06 03:42:04 +0000
commit60196cda0430d32d12256a5707d632c2c656aa57 (patch)
tree862098c525d15d24cc8d81790ea69e9d08986c5f /bin/ed
parente36ffbdd293dede3b6d1d98d15885a9e78a0f52d (diff)
downloadsrc-60196cda0430d32d12256a5707d632c2c656aa57.tar.gz
src-60196cda0430d32d12256a5707d632c2c656aa57.zip
Prior to r254304, a separate function, vm_pageout_page_stats(), was used to
periodically update the reference status of the active pages. This function was called, instead of vm_pageout_scan(), when memory was not scarce. The objective was to provide up to date reference status for active pages in case memory did become scarce and active pages needed to be deactivated. The active page queue scan performed by vm_pageout_page_stats() was virtually identical to that performed by vm_pageout_scan(), and so r254304 eliminated vm_pageout_page_stats(). Instead, vm_pageout_scan() is called with the parameter "pass" set to zero. The intention was that when pass is zero, vm_pageout_scan() would only scan the active queue. However, the variable page_shortage can still be greater than zero when memory is not scarce and vm_pageout_scan() is called with pass equal to zero. Consequently, the inactive queue may be scanned and dirty pages laundered even though that was not intended by r254304. This revision fixes that. Reported by: avg MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=265418
Diffstat (limited to 'bin/ed')
0 files changed, 0 insertions, 0 deletions