Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757017AbYAEUGV (ORCPT ); Sat, 5 Jan 2008 15:06:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755993AbYAEUGG (ORCPT ); Sat, 5 Jan 2008 15:06:06 -0500 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:43734 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755932AbYAEUGE (ORCPT ); Sat, 5 Jan 2008 15:06:04 -0500 Date: Sat, 5 Jan 2008 12:05:58 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Pekka J Enberg cc: Matt Mackall , Ingo Molnar , Linus Torvalds , Hugh Dickins , Andi Kleen , Peter Zijlstra , Linux Kernel Mailing List , zanussi@us.ibm.com Subject: Re: [PATCH] procfs: provide slub's /proc/slabinfo In-Reply-To: Message-ID: References: <84144f020801021109v78e06c6k10d26af0e330fc85@mail.gmail.com> <1199314218.4497.109.camel@cinder.waste.org> <20080103085239.GA10813@elte.hu> <1199378818.8274.25.camel@cinder.waste.org> <1199419890.4608.77.camel@cinder.waste.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1059 Lines: 27 On Sat, 5 Jan 2008, Pekka J Enberg wrote: > So, I have this silly memory profiler derived from the kleak patches by > the relayfs people and would love to try it out on an embedded workload > where SLUB memory footprint is terrible. Any suggestions? Good idea. But have you tried to look at slabinfo? Try to run slabinfo -t which will calculate the allocation overhead of the currently allocated objects in all slab caches. One problem: The actual size of kmalloc'ed objects is not available so it does not calculate the overhead that comes about because of rounding. Your approach would cover that as well but I think we could also add a debug mode in which we store the actual size of a kmalloc object and export the information via sysfs. Would be nicer than adding this whole additional layer. -- 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/