From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763087AbYCCVdO (ORCPT ); Mon, 3 Mar 2008 16:33:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752127AbYCCVcz (ORCPT ); Mon, 3 Mar 2008 16:32:55 -0500 Received: from relay2.sgi.com ([192.48.171.30]:60977 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751180AbYCCVcy (ORCPT ); Mon, 3 Mar 2008 16:32:54 -0500 Date: Mon, 3 Mar 2008 13:32:54 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Pekka Enberg cc: Nick Piggin , netdev@vger.kernel.org, Linux Kernel Mailing List , yanmin_zhang@linux.intel.com, David Miller , Eric Dumazet Subject: Re: [rfc][patch 1/3] slub: fix small HWCACHE_ALIGN alignment In-Reply-To: <84144f020803031330i2c0ea1f6kc5b02c8b26145797@mail.gmail.com> Message-ID: References: <20080303093449.GA15091@wotan.suse.de> <20080303200613.GC8974@wotan.suse.de> <20080303201701.GF8974@wotan.suse.de> <84144f020803031330i2c0ea1f6kc5b02c8b26145797@mail.gmail.com> 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 On Mon, 3 Mar 2008, Pekka Enberg wrote: > Well, not my definition either but SLAB has guaranteed that for small > objects in the past, so I think Nick has a point here. However, with > all this back and forth, I've lost track why this matters. I suppose > it causes regression on some workload? Well the guarantee can only be exploited if you would check the cacheline sizes and the object size from the code that creates the slab cache. Basically you would have to guestimate what the slab allocator is doing. So the guarantee is basically meaningless. If the object is larger than a cacheline then this will never work.