summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>2005-08-10 00:17:36 +0000
committertegge <tegge@FreeBSD.org>2005-08-10 00:17:36 +0000
commita73af1b81d7cd48bf2240a18ec324de4fd37cb27 (patch)
tree7e3a066c1d3dab26c83129720740e8344543d624 /lib
parent1739e5021692bfaef8f06397985c7f7606a38e0d (diff)
downloadFreeBSD-src-a73af1b81d7cd48bf2240a18ec324de4fd37cb27.zip
FreeBSD-src-a73af1b81d7cd48bf2240a18ec324de4fd37cb27.tar.gz
Don't allow pagedaemon to skip pages while scanning PQ_ACTIVE or PQ_INACTIVE
due to the vm object being locked. When a process writes large amounts of data to a file, the vm object associated with that file can contain most of the physical pages on the machine. If the process is preempted while holding the lock on the vm object, pagedaemon would be able to move very few pages from PQ_INACTIVE to PQ_CACHE or from PQ_ACTIVE to PQ_INACTIVE, resulting in unlimited cleaning of dirty pages belonging to other vm objects. Temporarily unlock the page queues lock while locking vm objects to avoid lock order violation. Detect and handle relevant page queue changes. This change depends on both the lock portion of struct vm_object and normal struct vm_page being type stable. Reviewed by: alc
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud