From owner-freebsd-arch Thu Nov 9 11:44:42 2000 Delivered-To: freebsd-arch@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 7BBA037B479 for ; Thu, 9 Nov 2000 11:44:36 -0800 (PST) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id LAA24913; Thu, 9 Nov 2000 11:44:28 -0800 (PST) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.0/8.11.0) id eA9JiSN30771; Thu, 9 Nov 2000 11:44:28 -0800 (PST) (envelope-from jdp) Date: Thu, 9 Nov 2000 11:44:28 -0800 (PST) Message-Id: <200011091944.eA9JiSN30771@vashon.polstra.com> To: arch@freebsd.org From: John Polstra Reply-To: arch@freebsd.org Cc: bright@wintelcom.net Subject: Re: The shared /bin and /sbin bikeshed In-Reply-To: <20001109112328.T5112@fw.wintelcom.net> References: <200011091223.eA9CNQW26294@mobile.wemm.org> <200011091909.eA9J9wM10639@earth.backplane.com> <20001109112328.T5112@fw.wintelcom.net> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <20001109112328.T5112@fw.wintelcom.net>, Alfred Perlstein 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