79449354

Date: 2025-02-18 19:20:06
Score: 1
Natty:
Report link

No. Linux does not write pages to swap if that same page exists in storage. ".text" pages, are the program and library code pages that are generally read-only and change on disk infrequently.

When the kernel is recouping dram, it examine LRU pages. If the page exists on disk it merely 'evicts' the page - it marks the page as not present in dram in the MMU, and then re-uses that dram page for other purposes. If the evicted page is later accessed, it will page-fault in from disk.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: stevea