Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762436AbYBEWTY (ORCPT ); Tue, 5 Feb 2008 17:19:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758168AbYBEWTR (ORCPT ); Tue, 5 Feb 2008 17:19:17 -0500 Received: from courier.cs.helsinki.fi ([128.214.9.1]:55190 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756254AbYBEWTQ (ORCPT ); Tue, 5 Feb 2008 17:19:16 -0500 Date: Wed, 6 Feb 2008 00:19:14 +0200 (EET) From: Pekka J Enberg To: Christoph Lameter cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: SLUB: Support for statistics to help analyze allocator behavior In-Reply-To: Message-ID: References: <47A8C508.6010305@cs.helsinki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1737 Lines: 35 Hi Christoph, On Tue, 5 Feb 2008, Pekka Enberg wrote: > > > We could do that.... Any idea how to display that kind of information in a > > > meaningful way. Parameter conventions for slabinfo? > > > > We could just print out one total summary and one summary for each CPU (and > > maybe show % of total allocations/fees. That way you can immediately spot if > > some CPUs are doing more allocations/freeing than others. On Tue, 5 Feb 2008, Christoph Lameter wrote: > Ok that would work for small amounts of cpus. Note that we are moving > to quad core, many standard enterprise servers already have 8 and will > likely have 16 next year. Our machine can have thousands of processors > (new "practical" limit is 4k cpus although we could reach 16k cpus > easily). I was a bit scared to open that can of worms. I can see why. I think we can change the format summary a bit and have one line per CPU only: Allocation Deallocation Page Add Remove RemoveObj/ Page Add Remove RemoveObj/ CPU Fast Slow Alloc Partial Partial SlabFrozen Fast Slow Alloc Partial Partial SlabFrozen 16000 111953360 1044 272 25 86 350 111946981 7423 264 325 264 4832 In addition, we can probably add some sort of option for determining how many CPUs you're interested in seeing (sorted by CPUs that have most the activity first). Pekka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/