Date: Thu, 9 Nov 2000 11:44:28 -0800 (PST) From: John Polstra <jdp@polstra.com> To: arch@freebsd.org Cc: bright@wintelcom.net Subject: Re: The shared /bin and /sbin bikeshed Message-ID: <200011091944.eA9JiSN30771@vashon.polstra.com> In-Reply-To: <20001109112328.T5112@fw.wintelcom.net> References: <200011091223.eA9CNQW26294@mobile.wemm.org> <200011091909.eA9J9wM10639@earth.backplane.com> <20001109112328.T5112@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <20001109112328.T5112@fw.wintelcom.net>, Alfred Perlstein <bright@wintelcom.net> wrote: > root on a Linux box is unable to do squat when the machine is almost > out of memory because he can't map in /lib/libc.so to run 'ps' or > even another copy of bash. I don't understand this statement. If there is even a single dynamically linked application running, libc.so will already be in memory, and that image will be shared by whatever you're trying to run, e.g., "ps". True, only the text will be shared -- the data and bss will still require additional memory. However, the situation is even worse with a statically linked "ps". Assuming (reasonably) that there is no "ps" already running, the entire image will be unshared. In other words, it should take less memory to run the shared version than the statically linked version. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011091944.eA9JiSN30771>