linux kernel - Are .text pages swapped-out? -


are .text pages in process' memory swapped-out, or pages containing data (heap) swapped-out?

here "swapped-out" refer 'being swapped swap area' , not 'mere eviction primary memory'. doubt whether .text pages merely evicted , read hdd never modified (unlike data pages), or swapped swap area.

so also, page belonging stack swapped-out?

can please provide more clarity on pages in virtual memory of process considered swapping, , ones never?

all pages in end considered being swapped out. in linux starts swapping out freeing cache pages followed clean non-recently used pages (which requires unmapping rather write swap device). after try flush dirty file backed pages in memory respective backing device before reaching point must starts swapping anonymously backed process pages (includes stack, data can edited, heap, etc....). non-kernel page candidate being swapped out depends on memory pressure on system.

pages have backing store unmapped or if dirty flushed backing store. not written swap obvious reasons.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -