From owner-svn-src-all@FreeBSD.ORG Wed Oct 31 18:10:31 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AB85686F; Wed, 31 Oct 2012 18:10:31 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id B17E48FC14; Wed, 31 Oct 2012 18:10:30 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id b5so1624701lbd.13 for ; Wed, 31 Oct 2012 11:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=W5pf6468jYqNHF74RFajrQYR01m8ZP1DuzRHZrXNRMA=; b=nPOsGcYmIr1H/zyl4D+8zHzJEMvZB4B+1HW6iTvS2QyPs66DE2MmHgG8xQxaISL3vJ hdhDXvbtCxxVHejuJyeRo41+uw7wi93RoMilBXWCFb8Qcfiza/zKK+y4Yyzhze0B+pyi vKRf1vf9tY4totlv22HGBHJAuK3aBugkuNDj0EV/Ey1z6PtFROw39SXG043I4j9ou4nA yB1T0zUaIAm98uI9LDZ6wZXn9BsUfSjNIDoBwY93165IAIvVqouM0C2eRm8kTaspXfFi dscN0AxfuTp42jUCwVs3O7GaT2KAC+fC+vHW+CNujDpQZ9vYDwTZW+cXN5KnS5tedH45 S1Rg== MIME-Version: 1.0 Received: by 10.112.82.103 with SMTP id h7mr14862810lby.50.1351707029495; Wed, 31 Oct 2012 11:10:29 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.112.30.37 with HTTP; Wed, 31 Oct 2012 11:10:29 -0700 (PDT) In-Reply-To: <201210311807.q9VI7IcX000993@svn.freebsd.org> References: <201210311807.q9VI7IcX000993@svn.freebsd.org> Date: Wed, 31 Oct 2012 18:10:29 +0000 X-Google-Sender-Auth: f993n6a-Go9bR2Npa1udm6EKArE Message-ID: Subject: Re: svn commit: r242402 - in head/sys: kern vm From: Attilio Rao To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: attilio@FreeBSD.org List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 18:10:31 -0000 On Wed, Oct 31, 2012 at 6:07 PM, Attilio Rao wrote: > Author: attilio > Date: Wed Oct 31 18:07:18 2012 > New Revision: 242402 > URL: http://svn.freebsd.org/changeset/base/242402 > > Log: > Rework the known mutexes to benefit about staying on their own > cache line in order to avoid manual frobbing but using > struct mtx_padalign. Interested developers can now dig and look for other mutexes to convert and just do it. Please, however, try to enclose a description about the benchmark which lead you believe the necessity to pad the mutex and possibly some numbers, in particular when the lock belongs to structures or the ABI itself. Next steps involve porting the same mtx(9) changes to rwlock(9) and port pvh global pmap lock to rwlock_padalign. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein