From owner-freebsd-current@FreeBSD.ORG Fri Oct 27 18:33:06 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3D9916A494 for ; Fri, 27 Oct 2006 18:33:06 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0558843D60 for ; Fri, 27 Oct 2006 18:33:03 +0000 (GMT) (envelope-from asmrookie@gmail.com) Received: by wx-out-0506.google.com with SMTP id i27so754225wxd for ; Fri, 27 Oct 2006 11:33:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=aahWijd+uwrDReNvknVMJXg1L1lT5ii1fMc5JWp1eUWZvGHmTk9+Wu+brtkrwWuj8UL9LYEOiyqRcGkONf2+9GF/GQN4v/0E26SKUMbKNhhxFeQrGitqHNMDDFLc/3BLYmscyNwS4Dya5KGdrqJX0k0bv6y6Xjwr4PQ0XqIMaEE= Received: by 10.70.83.4 with SMTP id g4mr6122977wxb; Fri, 27 Oct 2006 11:33:00 -0700 (PDT) Received: by 10.70.12.2 with HTTP; Fri, 27 Oct 2006 11:33:00 -0700 (PDT) Message-ID: <3bbf2fe10610271133j27dd5a8eq7fea228c955c93e5@mail.gmail.com> Date: Fri, 27 Oct 2006 20:33:00 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: freebsd-current@freebsd.org, freebsd-arch@freebsd.org, "John Baldwin" , pho@freebsd.org, kris@freebsd.org, "Robert Watson" In-Reply-To: <3bbf2fe10610181518k68356528i154267c0bd1b1a77@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3bbf2fe10610181518k68356528i154267c0bd1b1a77@mail.gmail.com> X-Google-Sender-Auth: 2b442901eab49f53 Cc: Subject: Re: sx locks rewriting - needs testers 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: Fri, 27 Oct 2006 18:33:06 -0000 2006/10/19, Attilio Rao : > In my P4 branch: //depot/user/attilio/attilio_smpng/... > you can find a sx locks rewriting using the optimized semantic of > rwlocks; in the end this might result in a valuable performance > improvement. > > Some hints about it: > - new sx locks alredy support inlined s*lock operations and try* operations; > (they have a fully functional support) > - new sx locks doesn't have support for adaptive spinning yet; this is beacause > the code is under revision even for mutex/rwlock. > - we could allow a sharers tracking in debugging mode, at least, in > order to detect > eventual recursion in slock operation > - currently, sx locks mantain the exclusive holder tracking even if this is not > really necessary (we can get rid of it). > > In this moment a strong phase of test is *very* welcome, so please, > for every people having a p4 account, dowload the kernel and try to > put it under stress (at this purpose I cc'ed, in particular, kris@, > pho@ and jhb@ in order to have tests, revisions, etc. etc.) Maybe I did a stupid thing not directly posting diffs (so that all the people interested can nicely check/try): http://users.gufi.org/~rookie/works/patches/smpng26102006.diff Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein