diff options
author | Richard Braun <rbraun@sceen.net> | 2032-05-11 23:48:07 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-11-30 22:30:29 +0100 |
commit | 8a390043dd022d106f86b28ae85f606680e5ef51 (patch) | |
tree | fb90565d84b5648801d4a74c620722e30c846013 /vm/vm_resident.c | |
parent | b961f2ffb2a2c6bee21fc221d62cec85f5faa453 (diff) | |
download | gnumach-8a390043dd022d106f86b28ae85f606680e5ef51.tar.gz gnumach-8a390043dd022d106f86b28ae85f606680e5ef51.tar.bz2 gnumach-8a390043dd022d106f86b28ae85f606680e5ef51.zip |
VM: fix pageout on low memory
Instead of determining if memory is low, directly use the
vm_page_alloc_paused variable, which is true when memory has reached
a minimum threshold until it gets back above the high thresholds.
This makes sure double paging is used when external pagers are unable
to allocate memory.
* vm/vm_page.c (vm_page_seg_evict): Rename low_memory to alloc_paused.
(vm_page_evict_once): Remove low_memory and its computation. Blindly
pass the new alloc_paused argument instead.
(vm_page_evict): Pass the value of vm_page_alloc_paused to
vm_page_evict_once.
Diffstat (limited to 'vm/vm_resident.c')
0 files changed, 0 insertions, 0 deletions