▲ | blueflow 4 days ago | ||||||||||||||||
Programs run from program text, program text is mapped in as named pages (disk cache). They are evictable! And without swap, they will get evicted on high memory pressure. Program text thrashing is worse than having swap. The problem is not the existence of swap, but that people are unaware that the disk cache is equally important for performance. | |||||||||||||||||
▲ | man8alexd 3 days ago | parent | next [-] | ||||||||||||||||
VM_EXEC pages are explicitly deprioritized from the reclaim by the kernel. Unlike any other pages, they are put into the active LRU on the first use and remain in the active LRU if they are active. | |||||||||||||||||
| |||||||||||||||||
▲ | Panzerschrek 3 days ago | parent | prev [-] | ||||||||||||||||
It's yet another old crap - to load program code from disk on-demand. Nowadays it's just easier to load the whole executable into memory and always preserve it. |