From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762332AbXFBAl6 (ORCPT ); Fri, 1 Jun 2007 20:41:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753891AbXFBAlw (ORCPT ); Fri, 1 Jun 2007 20:41:52 -0400 Received: from gw.goop.org ([64.81.55.164]:37241 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755277AbXFBAlw (ORCPT ); Fri, 1 Jun 2007 20:41:52 -0400 Message-ID: <4660BCCC.205@goop.org> Date: Fri, 01 Jun 2007 17:41:48 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: Christoph Lameter CC: Andrew Morton , Srinivasa Ds , linux-kernel@vger.kernel.org, Linus Torvalds , Srivatsa Vaddagiri , Dinakar Guniguntala , pj@sgi.com, simon.derr@bull.net, clameter@cthulhu.engr.sgi.com, rientjes@google.com Subject: Re: [RFC] [PATCH] cpuset operations causes Badness at mm/slab.c:777 warning References: <465FCA79.70207@in.ibm.com> <200706011620.05756.srinivasa@in.ibm.com> <466081DE.70205@goop.org> <20070601135900.ec44b1aa.akpm@linux-foundation.org> <20070601151649.bb23c6f9.akpm@linux-foundation.org> <20070601153328.1118ccaf.akpm@linux-foundation.org> In-Reply-To: Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Christoph Lameter wrote: > Well there are architectural problems. We determine the power of two slab > at compile time. The object size information is currently not available in > the binary :=). > That only applies to allocations with constant sizes. One presumes nobody is explicitly doing kmalloc(0), so we can use a separate runtime-computed-size path to do poisoning. (Which is probably 90% of the problem, since people who kmalloc(sizeof(struct foo)) will generally stay within bounds without too much effort.) J