On 09/08/2019 09:57, Michal Hocko wrote:
This is a useful feedback! What was your workload? Which kernel version?
With 16GB zram swap and swappiness=60 I get the avg10 memory PSI numbers of about 10 when swap is half filled and ~30 immediately before the freeze. Swapping with zram has less effect on system responsiveness comparing to swapping to an ssd, so, if combined with the proposed PSI triggered OOM killer, this could be a viable solution.
Still, using swap only to make PSI sensing work when triggering OOM killer at non-zero available memory would do the job just as well is a bit of an overkill. I don't really need these extra few GB or memory, just want to get rid of system freezes. Perhaps we could have both heuristics.
Best regards, ndrw