Re: Howto prevent kernel from evicting code pages ever? (to avoid disk thrashing when about to run out of RAM)

2018-09-10 Thread Marcus Linsner
On Wed, Aug 22, 2018 at 11:25 AM Marcus Linsner wrote: > > Hi. How to make the kernel keep(lock?) all code pages in RAM so that > kswapd0 won't evict them when the system is under low memory > conditions ? > > The purpose of this is to prevent the kernel from causi

Howto prevent kernel from evicting code pages ever? (to avoid disk thrashing when about to run out of RAM)

2018-08-22 Thread Marcus Linsner
Hi. How to make the kernel keep(lock?) all code pages in RAM so that kswapd0 won't evict them when the system is under low memory conditions ? The purpose of this is to prevent the kernel from causing lots of disk reads(effectively freezing the whole system) when about to run out of RAM, even when