summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_swap_encrypt.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2022-06-28 19:31:31 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2022-06-28 19:31:31 +0000
commite47e30f367bcf2c6defb282089207c7451eb4322 (patch)
tree7b3e6685889d1a2df46fd4e394619b099921d2da /sys/uvm/uvm_swap_encrypt.h
parentf59bfce23c80e27e144d9cdf005406af57cf2d0b (diff)
Consider pmemrange regions when trying to free pages from the inactive list.
Instead of starting with the first page on the inactive list pick the first one that fits in the range of a given pmemrange region. Fix an issue where the page daemon would be hogging a CPU without freeing any page because the global limits are satisfied. The algorithm could certainly be revisited, the LRU is not really working and there is a huge delay before recovering when the first pages need to be swapped and the system is in OOM situation but at least there is no starvation and the system now recovers. ok beck@, kettenis@
Diffstat (limited to 'sys/uvm/uvm_swap_encrypt.h')
0 files changed, 0 insertions, 0 deletions