CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2022/06/28 13:31:30
Modified files: sys/uvm : uvm_pdaemon.c Log message: 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@