On Sun, 25 Jul 2021 02:32:01 +0900 Alexey Avramov wrote: > >> Would it be possible to reserve a fixed (configurable) amount of RAM >> for caches, and trigger OOM killer earlier, before most UI code is >> evicted from memory? > >Yes! Try this patch: https://github.com/hakavlad/le9-patch Thanks for your patch. > >The patch provides sysctl knobs for protecting the specified amount of >clean file pages under memory pressure. It helps more if you directly put the patch in the mail.