From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753988AbYJAAFW (ORCPT ); Tue, 30 Sep 2008 20:05:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752835AbYJAAFJ (ORCPT ); Tue, 30 Sep 2008 20:05:09 -0400 Received: from waste.org ([66.93.16.53]:43015 "EHLO waste.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752156AbYJAAFI (ORCPT ); Tue, 30 Sep 2008 20:05:08 -0400 Subject: Re: [PATCH] slub: reduce total stack usage of slab_err & object_err From: Matt Mackall To: Richard Kennedy Cc: Christoph Lameter , penberg , linux-mm , lkml In-Reply-To: <1222791638.2995.41.camel@castor.localdomain> References: <1222787736.2995.24.camel@castor.localdomain> <48E2480A.9090003@linux-foundation.org> <1222791638.2995.41.camel@castor.localdomain> Content-Type: text/plain Date: Tue, 30 Sep 2008 19:02:42 -0500 Message-Id: <1222819362.13453.9.camel@calx> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2008-09-30 at 17:20 +0100, Richard Kennedy wrote: > Yes, using vprintk is better but you still have this path : > ( with your patch applied) > > object_err -> slab_bug(208) -> printk(216) > instead of > object_err -> slab_bug_message(8) -> printk(216) > > unfortunately the overhead for having var_args is pretty big, at least > on x86_64. I haven't measured it on 32 bit yet. Looks like this got fixed for x86_64 in gcc 4.4. For most other arches, the overhead should be reasonable. -- Mathematics is the supreme nostalgia of our time.