Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp747477imm; Fri, 22 Jun 2018 04:46:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKtvPow1Ne4B1ZXmBtvz9tLEaz0tGirPPkJsp3UTO7LtEQbPLKXZmF47ZkGKJInXLBCCSPZ X-Received: by 2002:a62:4bc8:: with SMTP id d69-v6mr1406037pfj.244.1529667983346; Fri, 22 Jun 2018 04:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529667983; cv=none; d=google.com; s=arc-20160816; b=ieTVGKFQohifvVZU1+79yArNIYN66L2y4FU69kGVda5RuPaYaAsbz4nNT4S7jwd+/D 31uW1CWBq5xs78ce+9V24+qaM+xNRrq3hqJl8fuvIvBkXK8vSDpLtrtbCaSM29njAzGZ HbZGoA8DgPmIxPlzKhyu8GLVU+hMic6W5ic75Z4JScY6+TjJA7DsLyo+ZxZ8fXRgEMWE EyddmvGihYajpTvMjljyQqEdjmAIWi70mrJcHKo8+GFXgujEGX/7hejScePETbJtXi7S I4IkgC1UPko7R/oJAMG2JPW4TFkbTXg24dmFYOd1nLbMK6LZe84A9gWYQeacS3TBcNjx 1qfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=tBFPiqrOtahwO6iknuEPbqqH3ZiKtyCciVJ5nJpZA/k=; b=AA1fijDM++cfVdKrg4xZtcUsMoAWWeRdGIrbRPD+SlgFEBEYp603iV1jOjXZ2nBJoN 6GVNGEN3098UPhJonL1BiCodv+lhIIYzYTL7+b2NimqaUTGPueHT48A1E33rCfcYjNAu Wi8SyAlboey3e2ozfg2+lRD33TQpXdNTqgbYfe2adV0gGPh0DP30YMkLmST3TXiFyEp9 Kv8h2fxsU7ED3QqON3/idWDt5f0WPNDrO+2/qzrxth+xir0wEIdU98byXVNplKicnRk5 +azbLuM1oVzZTVEHwggcSMwOtCe6qyoO8ynkmFaCchy4VDoFfPeKYAxMsz+ikyHacWf5 trQQ== ARC-Authentication-Results: i=1; mx.google.com; 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 a1-v6si3364377pgb.424.2018.06.22.04.46.04; Fri, 22 Jun 2018 04:46:23 -0700 (PDT) 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; 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 S1751379AbeFVLnh (ORCPT + 99 others); Fri, 22 Jun 2018 07:43:37 -0400 Received: from verein.lst.de ([213.95.11.211]:56150 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210AbeFVLnf (ORCPT ); Fri, 22 Jun 2018 07:43:35 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id BE90C68E45; Fri, 22 Jun 2018 13:53:00 +0200 (CEST) Date: Fri, 22 Jun 2018 13:53:00 +0200 From: Christoph Hellwig To: Al Viro Cc: Christoph Hellwig , Linus Torvalds , kernel test robot , Greg Kroah-Hartman , "Darrick J. Wong" , Linux Kernel Mailing List , LKP Subject: Re: [lkp-robot] [fs] 3deb642f0d: will-it-scale.per_process_ops -8.8% regression Message-ID: <20180622115300.GA14654@lst.de> References: <20180622082752.GX11011@yexl-desktop> <20180622095608.GA12263@lst.de> <20180622100014.GA12425@lst.de> <20180622110117.GU30522@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180622110117.GU30522@ZenIV.linux.org.uk> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 22, 2018 at 12:01:17PM +0100, Al Viro wrote: > For fuck sake, if you want vfs_poll() inlined, *make* *it* *inlined*. That is not going to help with de-virtualizing _qproc, which was the whole idea of that change. At least not without a compiler way smarter than gcc. But if you want it inline that is fine with me, it just seems little large for inlining. None that I plan to actually remove all calls except for poll and select for vfs_poll in a pending series, at which point it would become static anyway. > Said that, you are not attacking the worst part of it - it's a static > branch, not the considerably more costly indirect ones. Remember when > I asked you about the price of those? Method calls are costly. And back then it did not show up even in poll heavy workloads. But since then something new happened - spectre mitigations, which make indirect calls exorbitantly more expensive. > Now, ->sk_wq is modified only in sock_init_data() and sock_graft(); > the latter, IIRC, is ->accept() helper. Do we ever call either of > those on a sock of already opened file? IOW, is there any real > reason for socket ->get_poll_head() not to be constant, other > than wanting to keep POLL_BUSY_LOOP handling out of ->poll_mask()? > I agree that POLL_BUSY_LOOP is ugly as hell, but you *still* have > sock_poll_mask() not free from it... I'd have to defer to networking folks if busy looping after pollwait is what they want, but I suspect the answer is no, by the time we are already waiting for the queue busy waiting seems pointless.