Mailinglist Archive: opensuse (4344 mails)
| < Previous | Next > |
Re: [SLE] swap space question in 9.3 install
- From: Jerry Feldman <gaf@xxxxxxx>
- Date: Mon, 1 Aug 2005 08:51:23 -0400
- Message-id: <200508010851.23115.gaf@xxxxxxx>
On Friday 29 July 2005 8:51 pm, Greg Wallace wrote:
> Ok, I follow you now. If the last process accessing the "text section of
> a program" ... "instructions (and some initialized read-only data, such
> as strings)" closes and then you re-start the program, is that part of
> the program still in RAM, or would it have to be loaded from swap or from
> the file?
The text section is never copied over to backing store (swap). The load
process simply "maps" that section in from where it resides.
I don't know the specific algorithm the kernel uses these days for
persistence, but I would assume that if the pages are still resident in RAM
that they would be reused. This has been a common technique used in Unix
systems for years since Unix/Linux commands are generally small
executables. The same thing applies to libraries. The core libraries, such
as libc.so are used by daemons, so it should be almost continuously
resident.
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
> Ok, I follow you now. If the last process accessing the "text section of
> a program" ... "instructions (and some initialized read-only data, such
> as strings)" closes and then you re-start the program, is that part of
> the program still in RAM, or would it have to be loaded from swap or from
> the file?
The text section is never copied over to backing store (swap). The load
process simply "maps" that section in from where it resides.
I don't know the specific algorithm the kernel uses these days for
persistence, but I would assume that if the pages are still resident in RAM
that they would be reused. This has been a common technique used in Unix
systems for years since Unix/Linux commands are generally small
executables. The same thing applies to libraries. The core libraries, such
as libc.so are used by daemons, so it should be almost continuously
resident.
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
| < Previous | Next > |