TIP: Click on subject to list as thread! ANSI
echo: tech
to: WAYNE CHIRNSIDE
from: Pascal Schmidt
date: 2004-09-15 21:43:58
subject: Re: FONTS

Hi WAYNE!

 WC> Doesn't the commmand run in RAM when invoked?
 WC> If so everything goes including rm.
Executables in Linux are demand-paged, meaning only the code that rm really
used at the moment is in RAM. As soon as it jumps somewhere in its code it
hasn't been before, that piece of code (4k at a time) is loaded from disk.
Under memory pressure, code that it isn't running at the moment may also be
discarded.

rm can remove /bin/rm, though, but since the kernel holds a reference to
the file, the disk space is only freed when the rm process exits (this is
necessary in case the kernel needs to demand-page some part of /bin/rm in
before it exits). At first, only the directory entry is removed.

Ciao
Pascal

--- Msged/LNX 6.1.1
* Origin: Linux kernel 2.6.8.1 on Slackware 10.0 (1:153/401.2)
SEEN-BY: 633/267 270
@PATH: 153/401 307 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.