[lkml]   [2001]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: copy to suer space
Nick LeRoy <> wrote:

> Linux executables are "demand paged". What this means is that they are

> loaded as they are "page faulted" in. If low on memory, the kernel
> may, at it's discression, discard text pages at any time. When a
> discarded page is referenced, a page fault occurs, and the page is re-
> loaded from the executable. They are *never* written out to swap
> space. The kernel fully expects the text file and the text memory
> pages to not be modified during execution.

Clean pages are never written to swap space. If the page is dirty, it's
just another data page. If it were otherwise, non-PIC shared libraries
that require fixups from the dynamic linker would not work.



Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.035 / U:1.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site