Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1251451imm; Fri, 22 Jun 2018 13:04:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJwKMTKnv7wyHKJT8aj8ve5G5W48nkjLcRqisoVUllCwrmKiUx7JZ15qsKSJ/h1VZpW+6d6 X-Received: by 2002:a65:62c7:: with SMTP id m7-v6mr2101277pgv.286.1529697888426; Fri, 22 Jun 2018 13:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529697888; cv=none; d=google.com; s=arc-20160816; b=TxiuZMqddGEN6RmKRC9QaPJ+h9sOLOP2gRbYof7ckz6lBxx6Sdgja2vWyCOrxszVV9 gjfQKFdca/46LxK36RzBti96zazHna2N/AyibwnEBiYu/EVUap9nKiskrL93ekBYqg/3 /PcL3N2d6OS8FQLAyOSS3rtt2RqpAw4ZVmEFto0laoNNHrzPv95/Uu76kNm81vbS05II 4UiNZpdo8fLRrX9ZAueW/iZHFq1l9WsodAZMmAJV8WHIjs/AtMDhm8IxbTSBXvPV1HyM EqXQ1Vuz+tkYuIyZIAW8ojv22wC5eGHgnRhK3b9Vr2Ms7qPjiyFZA46WSZVpdHEEpeYl WU0g== 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=5IpkW6hmsOHZTXIOSMr+i+G92ijarR46lE72m7Lf4w0=; b=mNiq3B6wWv3YJ0/G7s6xclPwUduhVJ6U7sti654qYwzUiGfapyHxNqR8uruie9CjbA 8vw6rPFeykqXmhwTiYoF2SCkPhHwg+jUZUZh1aktc4NdQMe0iaYDTFgjK1VyLTnqDYit f8F1kcDFpbmV4xdl7kbgaqHwQxMvhUgsUACsBdWU7bFwhxbyLFkETAoN8s5emEPLP+8l cEKKKE8y9qOx1f0Oqcs60pGuT5H1lcpo0ejniBagWsxFVhJnwhq74G1o1Yk9L3B793nI 5Z+w3MK4TYCXMwD+AskScrgvZWEQk+8R0SNrgzen/m4JR83i+iTs1QqxGG/hpikSy/9x jGbg== 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 h71-v6si8056452pfe.332.2018.06.22.13.04.33; Fri, 22 Jun 2018 13:04:48 -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 S1752652AbeFVUDG (ORCPT + 99 others); Fri, 22 Jun 2018 16:03:06 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:44948 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751370AbeFVUDF (ORCPT ); Fri, 22 Jun 2018 16:03:05 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fWSGl-0000tk-8B; Fri, 22 Jun 2018 20:02:55 +0000 Date: Fri, 22 Jun 2018 21:02:55 +0100 From: Al Viro To: Christoph Hellwig Cc: kernel test robot , Greg Kroah-Hartman , "Darrick J. Wong" , LKML , Linus Torvalds , lkp@01.org Subject: Re: [lkp-robot] [fs] 3deb642f0d: will-it-scale.per_process_ops -8.8% regression Message-ID: <20180622200255.GB30522@ZenIV.linux.org.uk> References: <20180622082752.GX11011@yexl-desktop> <20180622150251.GA12802@lst.de> <20180622151409.GA30522@ZenIV.linux.org.uk> <20180622152850.GA14366@lst.de> <20180622161802.GA18957@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180622161802.GA18957@lst.de> User-Agent: Mutt/1.9.1 (2017-09-22) 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 06:18:02PM +0200, Christoph Hellwig wrote: > On Fri, Jun 22, 2018 at 05:28:50PM +0200, Christoph Hellwig wrote: > > On Fri, Jun 22, 2018 at 04:14:09PM +0100, Al Viro wrote: > > > > http://git.infradead.org/users/hch/vfs.git/shortlog/refs/heads/remove-get-poll-head > > > > > > See objections upthread re "fs,net: move poll busy loop handling into a > > > separate method"; as for the next one... I'd like an ACK from networking > > > folks. The rest of queue makes sense. > > > > I want to see basic results first before micro-optimizing. After that > > I'll send it out to the net folks for feedback. > > I looked into this a bit, in the end sk_can_busy_loop does this: > > return sk->sk_ll_usec && !signal_pending(current); > > where sk_ll_usec defaults based on a sysctl that needs to be > turned on, but can be overriden per socket. > > While at the same time corect poll code already checks net_busy_loop_on > to set POLL_BUSY_LOOP. So except for sockets where people set the > timeout to 0 the code already does the right thing as-is. IMHO not > really worth wasting a FMODE_* flag for it, but if you insist I'll add > it. It's not just that - there's also an issue of extra indirect call on the fast path for sockets. You get this method of yours + ->poll_mask(), which hits another indirect to per-family ->poll_mask(). It might be better to have these combined, sparing us an extra indirect call. Just give it the same calling conventions as ->poll_mask() have...