Swap space - The Answer

Dan Osterrath do3 at mail.inf.tu-dresden.de
Mon Nov 11 17:21:31 PST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> > Program x is executed and modifies its own code in memory. (For example
> > there is a counter in the code segment.) When it is swapped and re-read
> > the counter would be set to the initial value.
> The counter is a variable.  Its value is data.

Of course the counter is data! But what happens when the counters address is 
in the code segment? Will the code segment be swapped or will it be dropped 
out of memory and later re-read from filesystem?

And another question: What about network filesystems? This would be a great 
performance loss when code has to be re-read over network.

- -- 
- ----------------------------------------------------------------------
%> ln -s /dev/null /dev/brain
%> ln -s /dev/urandom /dev/world
%> dd if=/dev/world of=/dev/brain
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE90Feb9NbB8EM160MRAlntAJ9yujWq1FT1K4TgvXQfX97jfXLjZwCgsJXO
TgwMIvRWZ4UZizD5GW2XV6M=
=dY1d
-----END PGP SIGNATURE-----

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list