lkml.org 
[lkml]   [2001]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: copy to suer space
Nick LeRoy <nleroy@cs.wisc.edu> 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.

Regards
Joerg


=====
--
Regards
Joerg


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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