Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp655156imm; Fri, 22 Jun 2018 03:03:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLx9hGORnyRqNpcPl+1zOa0jcp5DBRM0ovUWsyOoK12YQXraw/RgjJBHPAKGbiR/0tL90YQ X-Received: by 2002:a17:902:7c16:: with SMTP id x22-v6mr964223pll.77.1529661818015; Fri, 22 Jun 2018 03:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529661817; cv=none; d=google.com; s=arc-20160816; b=0rEZ72LWTorAMuWsKqX0zW366egUaXjIFjeVDswP2kHIdT3mPSFfcEAthJ9fOMRvQ2 1ylJKpYXUKeQtwfmmpLhpoBwY/yr1B2FpOTtHt2RC2p2JWwwjxu1gPMR3EFlsenReQ2P UH+aXhW2AG80u5RefTQX53OgQS5TNEKnbBnvAEqOrMBRTj8cKHUtGV5GIMq21YuY4LZd ukgIW6TZERwgiynLoAbklvDNgJ2ZKTGXncQkzkEnm+kPOs0J+LzRJB7mKK9XgWqteyHD kBPC1uwr2bbyLPFI0Fvrp5NYw2kvTGQpIymwrg2wcr1AUsL68rW9viyWa1qezuX3x8uD XXCQ== 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 :arc-authentication-results; bh=27LbBjZOHWp0cjT3ETH61MhEbHQSkIPj1OPOu0x5HXA=; b=Dl0b6mNPrSij17HWVtsR8YLnhIZozNEZ1KoLRCnh/XXNd8oLh5VJTDyv8ph6czNQQY Zck9tB2RLnAEFZs3T/gqh5J/HeQ+xBizQ8KmQPXqTW2hkYDJU7OvX5SN2V6J281BJ5sK Oojp00yOBb6EXQiZ/ZhuJoa1z36ouu/9wuAiGTXiXG9n80qmZ0XBuOPrXjeFurxt8ruQ OyBmctJf86v4d5YN84Kt82qW3KNhV4cfdkOJflluUQTcgtVMz3S7mOjvNoUC5zPdQnnb O6uJBoaBsYgBY76IuYpSq3SIwoUmT/gTfQ/h2YvRS/cmU3NOalq1d3382Cmv9JecH94a 2Sjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SLqNXA+g; 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 38-v6si7484170plc.446.2018.06.22.03.03.23; Fri, 22 Jun 2018 03:03:37 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SLqNXA+g; 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 S1753277AbeFVKCb (ORCPT + 99 others); Fri, 22 Jun 2018 06:02:31 -0400 Received: from mail-it0-f49.google.com ([209.85.214.49]:38950 "EHLO mail-it0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751551AbeFVKCa (ORCPT ); Fri, 22 Jun 2018 06:02:30 -0400 Received: by mail-it0-f49.google.com with SMTP id p185-v6so2145649itp.4 for ; Fri, 22 Jun 2018 03:02:29 -0700 (PDT) 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=27LbBjZOHWp0cjT3ETH61MhEbHQSkIPj1OPOu0x5HXA=; b=SLqNXA+gktWgB2kownAs1wg5u9uSmQupHP1oN0+xORxnWZNV6DGM+AcoasAXdNlSiz O3INvesdYh9AF1dAv1+AcPsIzPGxFA9yhasSQJbUDwBqx9fQIt7awDGFI/AuUsNSjdsm CRdkMJwFm1aZragY+Qn+0feJFYcx8MR0cM8gs= 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=27LbBjZOHWp0cjT3ETH61MhEbHQSkIPj1OPOu0x5HXA=; b=YGjZySOtqS+lB9kXi3mpKb6dbDDgBZ1lKl/NBXPv/Lgwh2w/x0I1O84Bw0SYpUq47q fMktnkYJeJJA0x2CaTb8pI/BvXLmltEf9GrjEV7mjVeuo8SFiTOupWB0VjL4d/SKmosv E1gZRJyPExijDfERE1xn41LFTMxhmuOaGhBh5Yo1aeOmeOmDTaPT8oPjvPzbLcinvh9p zeGnzbSeqyLTAvCAO6l5HMJV+FTAuKarXBdtH/wl6/L/uRwzServ/D7UuKVDmDpvXrP0 +7+tLFuOkgyz+8GMH/R5iXB16ipKHYv8wedMY9BXPF/Z3tfw0RmWA8VLTvC4DEb5abc6 Ba8w== X-Gm-Message-State: APt69E0n85Re416f4A6rqMWAtENXylWlKVGWVhIX1Eg2lSsaH6QcmQaY YVwdSRQw4jiXL92jQklx3380fU5JXMOP7AWnazcM9g== X-Received: by 2002:a24:3cd7:: with SMTP id m206-v6mr921501ita.113.1529661749178; Fri, 22 Jun 2018 03:02:29 -0700 (PDT) MIME-Version: 1.0 References: <20180622082752.GX11011@yexl-desktop> <20180622095608.GA12263@lst.de> In-Reply-To: <20180622095608.GA12263@lst.de> From: Linus Torvalds Date: Fri, 22 Jun 2018 19:02:18 +0900 Message-ID: Subject: Re: [lkp-robot] [fs] 3deb642f0d: will-it-scale.per_process_ops -8.8% regression To: Christoph Hellwig Cc: kernel test robot , Al Viro , Greg Kroah-Hartman , "Darrick J. Wong" , Linux Kernel Mailing List , LKP 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 Fri, Jun 22, 2018 at 6:46 PM Christoph Hellwig wrote: > > > The disadvantages are obvious: every poll event now causes *two* > > indirect branches to the low-level filesystem or driver - one to get > > he poll head, and one to get the mask. Add to that all the new "do we > > have the new-style or old sane poll interface" tests, and poll is > > obviously more complicated. > > It already caused two No it didn't. If the data was ready, all that got short-circuited, and we just had that ->poll() call. Only if you *waited* did you get the second one to check the result, and the whole poll_wait(). You could just say "I already have the data, there's no wait-queu to add, I'll just return immediately". You're making this all unconditionally pessimal. Admit it. The new interface is inferior. > In the meantime below is an ugly patch that removes the _qproc > indirect for ->poll only (similar patch is possible for select > assuming the code uses select). And for next merge window I plan > to kill it off entirely. You're just making the code even worse here. Seriously, this patch is beyond ugly. The new interface is nasty shit. Get your act together. Don't uglify and slow down everything else just because you're concentrating only on aio. Your reply so far just makes me more convinced this was not thought through properly. Linus