Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756512AbYAFRw5 (ORCPT ); Sun, 6 Jan 2008 12:52:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753879AbYAFRwu (ORCPT ); Sun, 6 Jan 2008 12:52:50 -0500 Received: from waste.org ([66.93.16.53]:45656 "EHLO waste.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753613AbYAFRws (ORCPT ); Sun, 6 Jan 2008 12:52:48 -0500 Subject: Re: [PATCH] procfs: provide slub's /proc/slabinfo From: Matt Mackall To: Pekka J Enberg Cc: Christoph Lameter , Ingo Molnar , Linus Torvalds , Hugh Dickins , Andi Kleen , Peter Zijlstra , Linux Kernel Mailing List , zanussi@us.ibm.com In-Reply-To: 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> Content-Type: text/plain Date: Sun, 06 Jan 2008 11:51:50 -0600 Message-Id: <1199641910.8215.28.camel@cinder.waste.org> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1356 Lines: 35 On Sat, 2008-01-05 at 18:21 +0200, Pekka J Enberg wrote: > Hi Matt, > > On Thu, 3 Jan 2008, Matt Mackall wrote: > > > SLUB can align these without a 2 byte > > > overhead. In some configurations this results in SLUB using even less > > > memory than SLOB. See f.e. Pekka's test at > > > http://marc.info/?l=linux-kernel&m=118405559214029&w=2 > > > > Available memory after boot is not a particularly stable measurement and > > not valid if there's memory pressure. At any rate, I wasn't able to > > reproduce this. > > 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? Or you could use this (which is a bit broken on modern kernels, but provides lots of interesting detail): http://lwn.net/Articles/124374/ I don't have any particular "terrible" workloads for SLUB. But my attempts to simply boot with all three allocators to init=/bin/bash in, say, lguest show a fair margin for SLOB. -- Mathematics is the supreme nostalgia of our time. -- 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/