This repository has been archived by the owner on Sep 9, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simple_lmk: React faster to kswapd reclaim events
With the previous change, there would be up to a KSWAPD_LMK_EXPIRES delay before Simple LMK would react to a kswapd reclaim being needed, and it would still make it difficult for a kswapd reclaim to occur if an oom reclaim occurred less than KSWAPD_LMK_EXPIRES ago. To remedy Simple LMK's slow kswapd reaction time, poll every other jiffy once kswapd has been running without sleeping for at least KSWAPD_LMK_EXPIRES' worth of _wall time_. In addition, when a kswapd reclaim is needed, don't disregard it if an oom reclaim has occurred recently; in other words, kswapd reclaims are considered to be of high importance and should not be ignored. Signed-off-by: Sultan Alsawaf <[email protected]> Signed-off-by: kdrag0n <[email protected]>
- Loading branch information