From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH] slub: reduce total stack usage of slab_err & object_err From: Richard Kennedy In-Reply-To: <20080930193318.GA31146@logfs.org> References: <1222787736.2995.24.camel@castor.localdomain> <20080930193318.GA31146@logfs.org> Content-Type: text/plain; charset=utf-8 Date: Wed, 01 Oct 2008 11:06:07 +0100 Message-Id: <1222855567.3052.31.camel@castor.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8BIT Sender: owner-linux-mm@kvack.org Return-Path: To: =?ISO-8859-1?Q?J=F6rn?= Engel Cc: Christoph Lameter , penberg , mpm , linux-mm , lkml List-ID: On Tue, 2008-09-30 at 21:33 +0200, JA?rn Engel wrote: > On Tue, 30 September 2008 16:15:36 +0100, Richard Kennedy wrote: > > > > I've been trying to build a tool to estimate the maximum stack usage in > > the kernel, & noticed that most of the biggest stack users are the error > > handling routines. > > Cool! I once did the same, although the code has severely bitrotted by > now. Is the code available somewhere? > > JA?rn No I haven't made it available as it's really only a proof of concept, and I still don't have any sensible ideas how to deal with pointers to functions. Plus I'm still testing it to see if the results are anything like reasonable. Also it's finding lots of potentially recursive code paths and my heuristic to deal with them is very basic. I'm just adding a feature so that I can ignore some code paths, so maybe that will help. Richard -- 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