Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753570AbZLAPtB (ORCPT ); Tue, 1 Dec 2009 10:49:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752557AbZLAPtA (ORCPT ); Tue, 1 Dec 2009 10:49:00 -0500 Received: from nlpi157.sbcis.sbc.com ([207.115.36.171]:51365 "EHLO nlpi157.prodigy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751944AbZLAPtA (ORCPT ); Tue, 1 Dec 2009 10:49:00 -0500 Date: Tue, 1 Dec 2009 09:48:07 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@router.home To: Tejun Heo cc: Stephen Rothwell , michal.simek@petalogix.com, linux-next@vger.kernel.org, LKML , Rusty Russell , Ingo Molnar Subject: Re: problems in linux-next (Was: Re: linux-next: Tree for December 1) In-Reply-To: <4B152D22.9070001@kernel.org> Message-ID: References: <20091201190301.0fb7abad.sfr@canb.auug.org.au> <4B14D6E2.2040704@petalogix.com> <20091201210343.f0a1d353.sfr@canb.auug.org.au> <4B152D22.9070001@kernel.org> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) 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: 1029 Lines: 24 On Tue, 1 Dec 2009, Tejun Heo wrote: > The problem is that on UP configurations. Percpu memory allocator > becomes a simple wrapper around kmalloc and there's no way to specify > larger alignment when requesting memory from kmalloc. There is usually no point in aligning in UP. Alignment is typically done for smp configurations to limit cache line bouncing and control cache line use/ > It would be best if there's a clean way to allocate memory with > alignment larger than SMP_CACHE_BYTES. If not, I think I'll add a > separate cache for cwqs on UP so that the alignment requirement can be > met. Is there any way to get better aligned memory without creating a > separate cache or allocating larger memory and aligning by chopping > off? Simply drop the alignment for UP? -- 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/