From owner-freebsd-current@freebsd.org Mon Aug 1 16:43:47 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22167BAAC6A for ; Mon, 1 Aug 2016 16:43:47 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A9FEF11B2; Mon, 1 Aug 2016 16:43:46 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-wm0-x242.google.com with SMTP id o80so26951020wme.0; Mon, 01 Aug 2016 09:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=uG9Uq90yphB65SHQMkqq5faoVwMb4LE2z5SJ2LJUJms=; b=cKtlWoIA1plCVty1BRoXMQo8+NhJRRe99qr1/tAyrrGBbxPP7ybcWfz7A+iMTa//gc +U1naJdV69PAfCXUetuw6R1GKWFX6AMnM9R/a12Su2oN7zOkpis0q21TEQ6I49i0mGVv XD3B/ruhxjvPv/zux7pN+91VggK7aFlSb628wSzSc7aWZAAF2V9+6+1WJvl/V9k3rHw2 aCzAibjCupBmOfs0vmBnb24GoRQ8q2SLWpUCNquoS8nufTYvAVIN8jFNZK5/09NGPsl/ misXsuI36yfVpraDUSMxsix+BAiKIcqVsFGOZw8ifG4Kn+hRN0Iro111Pa/fl1imVPWW XBgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=uG9Uq90yphB65SHQMkqq5faoVwMb4LE2z5SJ2LJUJms=; b=nAcS6loognXolydFS78qJmuwEg6gBI6V0OQVQJJOHogC+nPPDVMBSUKV0AvvDE0AMY DM0cU1vst9dliLw6Js5qcwl3GAGBLdnqQqZKKzt17dTT+x1MJ4QpPjdLoGTwFYSxi0H1 eOxrg97H1cuFWFSKjLgzvHBwz4StzMFKXXf7NeAcakKiKG6S0ax5JyObjrJDNyi26BqL qNip8F6h1Sl5axlt68qZ2S1y9wy5pz2R1WG1xQFgLY2JLnuz4ptv3t0CqP6JQdyLXJHp BHlL+CTs7K2I3ognSdlj1Qdu5WlZXchh2bQeFSoVSkao+NqvVydXJ9xJ97pIsAPbm40t vWbw== X-Gm-Message-State: AEkooutDetQMRucRq/dRNvHQxBuyQCU4zte2dfSYtGMkSeAYL07ehicj+owGSyJA/9BasQ== X-Received: by 10.194.77.97 with SMTP id r1mr55509416wjw.83.1470069824090; Mon, 01 Aug 2016 09:43:44 -0700 (PDT) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by smtp.gmail.com with ESMTPSA id 3sm17894041wms.1.2016.08.01.09.43.43 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 01 Aug 2016 09:43:43 -0700 (PDT) Date: Mon, 1 Aug 2016 18:43:40 +0200 From: Mateusz Guzik To: Andriy Gapon Cc: freebsd-current@FreeBSD.org Subject: Re: [PATCH] randomized delay in locking primitives, take 2 Message-ID: <20160801164340.GA24633@dft-labs.eu> Mail-Followup-To: Mateusz Guzik , Andriy Gapon , freebsd-current@FreeBSD.org References: <20160731095706.GB9408@dft-labs.eu> <32aa8f7f-8096-740c-13e3-d51e0cb57c23@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <32aa8f7f-8096-740c-13e3-d51e0cb57c23@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 01 Aug 2016 16:43:47 -0000 On Mon, Aug 01, 2016 at 02:16:59PM +0300, Andriy Gapon wrote: > > Mateusz, > > just out of curiosity, have you tried to explore alternative spinlock > implementations like a ticket lock? It would be interesting to see if > there are any improvements to be gained there. > The patch is the simplest hack possible so that this has a chance of getting into 11.0 as it helps /a lot/ even in the simplest form. Revamping this stuff in a more "here to stay" manner is a much longer endeavor. -- Mateusz Guzik