From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Revell Subject: Re: [RFC] VM: I have a dream... Date: Wed, 25 Jan 2006 18:24:05 -0500 Message-ID: <1138231446.3087.61.camel@mindpipe> References: <200601240211.k0O28rnn003165@laptop11.inf.utfsm.cl> <1138181033.4800.4.camel@tara.firmix.at> <1138182179.3087.1.camel@mindpipe> <20060125150243.GA8490@mail.shareable.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Bernd Petrovitsch , Horst von Brand , "linux-os (Dick Johnson)" , Diego Calleja , Ram Gupta , mloftis@wgops.com, barryn@pobox.com, a1426z@gawab.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: Received: from mustang.oldcity.dca.net ([216.158.38.3]:2443 "HELO mustang.oldcity.dca.net") by vger.kernel.org with SMTP id S932221AbWAYXYH (ORCPT ); Wed, 25 Jan 2006 18:24:07 -0500 To: Jamie Lokier In-Reply-To: <20060125150243.GA8490@mail.shareable.org> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, 2006-01-25 at 15:02 +0000, Jamie Lokier wrote: > Lee Revell wrote: > > On Wed, 2006-01-25 at 10:23 +0100, Bernd Petrovitsch wrote: > > > > > > ACK. X, evolution and Mozilla family (to name standard apps) are the > > > exceptions to this rule. > > > > If you decrease RLIMIT_STACK from the default 8MB to 256KB or 512KB you > > will reduce the footprint of multithreaded apps like evolution by tens > > or hundreds of MB, as glibc sets the thread stack size to RLIMIT_STACK > > by default. > > That should make no difference to the real memory usage. Stack pages > which aren't used don't take up RAM, and don't count in RSS. It still seems like not allocating memory that the application will never use could enable the VM to make better decisions. Also not wasting 7.5MB per thread for the stack should make tracking down actual bloat in the libraries easier. Lee