From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79ED0C43142 for ; Fri, 22 Jun 2018 16:08:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 334FF23FB7 for ; Fri, 22 Jun 2018 16:08:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 334FF23FB7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934219AbeFVQIj (ORCPT ); Fri, 22 Jun 2018 12:08:39 -0400 Received: from verein.lst.de ([213.95.11.211]:57348 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933391AbeFVQIg (ORCPT ); Fri, 22 Jun 2018 12:08:36 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id AB28468E49; Fri, 22 Jun 2018 18:18:02 +0200 (CEST) Date: Fri, 22 Jun 2018 18:18:02 +0200 From: Christoph Hellwig To: Al Viro Cc: Christoph Hellwig , 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: <20180622161802.GA18957@lst.de> References: <20180622082752.GX11011@yexl-desktop> <20180622150251.GA12802@lst.de> <20180622151409.GA30522@ZenIV.linux.org.uk> <20180622152850.GA14366@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180622152850.GA14366@lst.de> 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 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.