Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2893663ybv; Mon, 24 Feb 2020 13:52:02 -0800 (PST) X-Google-Smtp-Source: APXvYqyFTg4Exyro4vqNYYE5xnwSw1ladgtiFYZjzo6FOn7QgHv4A6Vp7y3VHI7Cp3MqxeGL5E7G X-Received: by 2002:a9d:4f17:: with SMTP id d23mr42894166otl.170.1582581122130; Mon, 24 Feb 2020 13:52:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582581122; cv=none; d=google.com; s=arc-20160816; b=KciHshoXrJBvSI3G0f7j4xQxKLoJ0Xe4XdEI/q1453YFMgNqouHRq/2BCTx358F488 qOAAkzbT1hu/rM3nK217XDRPt8FoX0qHHsd/IxB83Pf/+Q8/KQFHnRQbK1ZVYW7oBUWO LZ7yZU+h2Y49Odot8qQp0nawPiCbw/RlcR0lr7lYpsa1m6udniXaXfgeDyYwvAtok3VK BFef2/GmiiUf6CSGEF7QXZDZzARIzfy9jZOys3K3H9VdKy4I6jrM8gOTv8XZ/eEta0fq n6fMRqipcHwr9rgDTyOo5Hm4+sd4y+nQBt7LxcCeEdWJHcb28Cf/iBb/1ImWleoPwsIh 0ZkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ZpRlNJyxjURpxSeo9TgDWjOVoYB3eEWq/qH5+c8IPvQ=; b=XsnjPG95FhjHgjcm5W2CIM5MTbOog4MhAUEjCdUagFoznYa14C7WXHCs6+jsS2yGsd mOyS9pIexzL086Tdc7yoldWCQd57tSSFUpvv1tXenhPVqKwiG/BJHqVheeF1gWq6uEv1 my+lKjhNzh623ulZKgyQ9P+aebvAzyyMWcqpyqEAaGUI0+rn4XGsnM8fa2xlgZq+fgpH G8/avH2hnSm4PHf28TVSexeTC7ZHqodMgIdqOB3dIh1ZBy0mvWqx+DTKgWVRWqMKlMbl 8aywAGNnCtLyARPONv23Lh0trmlbOyjbMZbJ39mRfQXlVkVM8oUVWwP3A1tAft2/Z3CF sZqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=eyZAPIDt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si4774841oie.180.2020.02.24.13.51.48; Mon, 24 Feb 2020 13:52:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=eyZAPIDt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727670AbgBXVuS (ORCPT + 99 others); Mon, 24 Feb 2020 16:50:18 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:43254 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726980AbgBXVuS (ORCPT ); Mon, 24 Feb 2020 16:50:18 -0500 Received: by mail-ed1-f65.google.com with SMTP id dc19so13725804edb.10 for ; Mon, 24 Feb 2020 13:50:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZpRlNJyxjURpxSeo9TgDWjOVoYB3eEWq/qH5+c8IPvQ=; b=eyZAPIDtfYGAJMFSbiOA8WQ5iUhe96wmEjyfCJ34B+4o7j9kYZVEhFkBmiZl7ADo+f PyP6gf2SNcUFSNj7E6uihJH7h9RPze99rK4fpnXvren68bqmdd2LQKtC1k1NOzSOjcLo 1YoTHieJQZU3MaTRlKUzerS3gODLbLoBhaXeo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZpRlNJyxjURpxSeo9TgDWjOVoYB3eEWq/qH5+c8IPvQ=; b=fH09HLc0N+ePWhTa6AHDpU7f7NC9gQZFbWbxdbhlui+28rVavz/MudSsIFY0ioSwGp QrjsskxaosSfmwjx92ls/S9FT9vgyV8nCiu1FHWcNYPbTa3ZBZo/cO1Cp2SWVJUDj0Db 7MGa+25newOlZ1tu+3qs+yurMyAZ12/X9LIryvvltm5gDGIoiSX3KgZZLSA6xwtokxRU yNOKMZroyIk3He13x3kKORPs2PF8X7zHa8d17TNrxgOaeE22MNehfOURXGf4fDExl50s vOL8/A3VmAvTWITQC5IR1C5cUIPGng2qj3AWVbHswKopbV9A3wSioqW22aKVRSVpY2tL 7vlg== X-Gm-Message-State: APjAAAXOR93EdVpYAjdbXhtRSoOTAOY4lXmdiwkVLQegjRkYDeWyAcMi nDgOfqJlJXQfwZqgw3DSLNxqcjAEEIo= X-Received: by 2002:aa7:c803:: with SMTP id a3mr46470366edt.99.1582581015992; Mon, 24 Feb 2020 13:50:15 -0800 (PST) Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com. [209.85.208.45]) by smtp.gmail.com with ESMTPSA id ck19sm853924ejb.48.2020.02.24.13.50.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Feb 2020 13:50:15 -0800 (PST) Received: by mail-ed1-f45.google.com with SMTP id r18so13772788edl.1 for ; Mon, 24 Feb 2020 13:50:15 -0800 (PST) X-Received: by 2002:a19:6144:: with SMTP id m4mr1561198lfk.192.1582580600346; Mon, 24 Feb 2020 13:43:20 -0800 (PST) MIME-Version: 1.0 References: <20200205123216.GO12867@shao2-debian> <20200205125804.GM14879@hirez.programming.kicks-ass.net> <20200221080325.GA67807@shbuild999.sh.intel.com> <20200221132048.GE652992@krava> <20200223141147.GA53531@shbuild999.sh.intel.com> <20200224003301.GA5061@shbuild999.sh.intel.com> <20200224021915.GC5061@shbuild999.sh.intel.com> <87a757znqd.fsf@x220.int.ebiederm.org> In-Reply-To: <87a757znqd.fsf@x220.int.ebiederm.org> From: Linus Torvalds Date: Mon, 24 Feb 2020 13:43:02 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [LKP] Re: [perf/x86] 81ec3f3c4c: will-it-scale.per_process_ops -5.5% regression To: "Eric W. Biederman" Cc: Feng Tang , Oleg Nesterov , Jiri Olsa , Peter Zijlstra , kernel test robot , Ingo Molnar , Vince Weaver , Jiri Olsa , Alexander Shishkin , Arnaldo Carvalho de Melo , Arnaldo Carvalho de Melo , "Naveen N. Rao" , Ravi Bangoria , Stephane Eranian , Thomas Gleixner , LKML , lkp@lists.01.org, andi.kleen@intel.com, "Huang, Ying" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 24, 2020 at 1:22 PM Eric W. Biederman wrote: > > I keep looking at your patch and wondering if there isn't a way > to remove the uid refcount entirely on this path. I agree. I tried to come up with something, but couldn't. > Linus I might be wrong but I have this sense that your change will only > help when signal delivery is backed up. I expect in the common case > there won't be any pending signals outstanding for the user. Again, 100% agreed. HOWEVER. The normal case where there's one only signal pending is also the case where we don't care about the extra atomic RMW access. By definition that's not going to ever going to show up as a performance issue or for cacheline contention. So the only case that matters from a performance standpoint is the "lots of signals" case, in which case you'll see that sigqueue become backed up. But as I said in the original thread (before you got added to the list): "I don't know. This does not seem to be a particularly serious load." I'm not convinced this will show up outside of this kind of signal-sending microbenchmark. That said, I don't really see any downside to the patch either, so... Linus