Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760767AbYCCTI6 (ORCPT ); Mon, 3 Mar 2008 14:08:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753184AbYCCTIp (ORCPT ); Mon, 3 Mar 2008 14:08:45 -0500 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:46596 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752977AbYCCTIo (ORCPT ); Mon, 3 Mar 2008 14:08:44 -0500 Date: Mon, 3 Mar 2008 11:08:44 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Nick Piggin cc: 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: <20080303093449.GA15091@wotan.suse.de> Message-ID: References: <20080303093449.GA15091@wotan.suse.de> 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 Content-Length: 618 Lines: 14 On Mon, 3 Mar 2008, Nick Piggin wrote: > SLUB should pack even small objects nicely into cachelines if that is what > has been asked for. Use the same algorithm as SLAB for this. Why? SLAB does not cacheline align objects smaller than cache_line_size() /2. If they are already not cache line aligned then we can make them as dense as possible. That is what SLUB does. -- 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/