From owner-freebsd-current@FreeBSD.ORG Wed Mar 17 11:02:48 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5B701065670 for ; Wed, 17 Mar 2010 11:02:48 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 35F1E8FC13 for ; Wed, 17 Mar 2010 11:02:47 +0000 (UTC) Received: by wwb18 with SMTP id 18so660446wwb.13 for ; Wed, 17 Mar 2010 04:02:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.166.84 with SMTP id f62mr373389wel.80.1268823765176; Wed, 17 Mar 2010 04:02:45 -0700 (PDT) From: =?UTF-8?Q?Marius_N=C3=BCnnerich?= Date: Wed, 17 Mar 2010 12:02:11 +0100 Message-ID: To: kmacy@freebsd.org Content-Type: text/plain; charset=UTF-8 Cc: freebsd-current@freebsd.org Subject: ARCS_LOCK_PAD or padding and aligning of mutex structures X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2010 11:02:48 -0000 Hi Kip, I wondered if one shouldn't use CACHE_LINE_SIZE for ARCS_LOCK_PAD instead of hardcoding 128? And maybe even use it for aligning the struct, see http://fxr.watson.org/fxr/source/vm/vm_page.h#L176 . - Marius