3 ms·
Agreed - most people don't realise, but even if you don't have any swap, all your executable code is effectively treated exactly the same way as swap (except it
by mnw21cam 3y ago
Agreed - most people don't realise, but even if you don't have any swap, all your executable code is effectively treated exactly the same way as swap (except it's read-only and needed more often).
I'd love a setting on Linux to tell it to treat executable pages memory-mapped from disc as Really Important and never evict them. It'd have to come with a suitable warning that if you set this then you get exactly what you deserve, but TBH it probably is what most people actually think is happening already and want.