From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757851AbYCCUJz (ORCPT ); Mon, 3 Mar 2008 15:09:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753819AbYCCUJp (ORCPT ); Mon, 3 Mar 2008 15:09:45 -0500 Received: from relay1.sgi.com ([192.48.171.29]:41935 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750893AbYCCUJo (ORCPT ); Mon, 3 Mar 2008 15:09:44 -0500 Date: Mon, 3 Mar 2008 12:09:43 -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 2/3] slab: introduce SMP alignment In-Reply-To: <20080303200355.GB8974@wotan.suse.de> Message-ID: References: <20080303093449.GA15091@wotan.suse.de> <20080303093529.GB15091@wotan.suse.de> <20080303200355.GB8974@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 On Mon, 3 Mar 2008, Nick Piggin wrote: > > Mandatory alignment are specified as a parameter to kmem_cache_create not > > as flags. > > Not after this patch. You want two ways of specifying alignments? > > Ycan specify the alignment as a parameter. i.e. L1_CACHE_BYTES > > or cache_line_size(). > > We don't want either of those, though. > > I don't see why this is a problem to do inside slab. I am not sure why you need to have two ways of specifying alignments.