From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail137.messagelabs.com (mail137.messagelabs.com [216.82.249.19]) by kanga.kvack.org (Postfix) with SMTP id 0917E6B003D for ; Wed, 11 Mar 2009 13:28:33 -0400 (EDT) Date: Wed, 11 Mar 2009 13:28:31 -0400 (EDT) From: Steven Rostedt Subject: Re: [Bug 12832] New: kernel leaks a lot of memory In-Reply-To: <20090311175556.2a127801@mjolnir.ossman.eu> Message-ID: References: <20090310024135.GA6832@localhost> <20090310081917.GA28968@localhost> <20090310105523.3dfd4873@mjolnir.ossman.eu> <20090310122210.GA8415@localhost> <20090310131155.GA9654@localhost> <20090310212118.7bf17af6@mjolnir.ossman.eu> <20090311013739.GA7078@localhost> <20090311075703.35de2488@mjolnir.ossman.eu> <20090311071445.GA13584@localhost> <20090311082658.06ff605a@mjolnir.ossman.eu> <20090311073619.GA26691@localhost> <20090311175556.2a127801@mjolnir.ossman.eu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Pierre Ossman Cc: Wu Fengguang , Andrew Morton , "bugme-daemon@bugzilla.kernel.org" , "linux-mm@kvack.org" , Ingo Molnar List-ID: On Wed, 11 Mar 2009, Pierre Ossman wrote: > On Wed, 11 Mar 2009 10:25:10 -0400 (EDT) > Steven Rostedt wrote: > > > > > The ring buffer is allocated at start up (although I'm thinking of making > > it allocated when it is first used), and the allocations are done percpu. > > > > It allocates around 3 megs per cpu. How many CPUs were on this box? > > > > Is this per actual CPU though? Or per CONFIG_NR_CPUS? 3 MB times 64 > equals roughly the lost memory. But then again, you said it was 10 MB > per CPU for 2.6.27... It uses the possible_cpu mask. How many possible CPUs are on your box? I've thought about making this handle hot plug CPUs, but that will require a little more overhead for everyone, whether or not you hot plug a cpu. -- Steve -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org