Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1786205pxy; Mon, 2 Aug 2021 10:08:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsMJQEL4fbAajyLIu02GR2iSG/Ww+6qGOa1MVC7qDuGivPfHc6bUhZzeydcdEjry4G/6hy X-Received: by 2002:a5d:93d1:: with SMTP id j17mr1659932ioo.123.1627924122696; Mon, 02 Aug 2021 10:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627924122; cv=none; d=google.com; s=arc-20160816; b=OXE+WuYGfCAO4StQ+tU+evTlJ3/O8IBzf3ivHhSMej6mceEJk0kZmFqZIwEHKpHkSM /KvlsD15gZEsZB1AtWj0xXPpQkIk0ssMhi1x2SRcygx7XeLbBPPzon4hHFxBfgppxzfZ V9znPLPucYGDrnnwrcJzw3YachHeNeJiQwrU1mRMNxFGZEMzFyXsodXtgP1iT1nRo8zw TzejJnT1EGtAm18yS/FJxZwCMtIrPctS/M150w2kNJNa4VzyE3dQS5UWrXW1B/2m4Ct8 Nyn+JpWcYBPkRQyaqj90qm2vzqnf54f9A0IUrLqK0NTUCZoh6SvTtORVrjcOd/LOXVYz BvCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ILiPem6rQEtCvqEZt+Nmb4/YTU5td2KVc3h1l4OeuvA=; b=hZ61NpYknR2EQBDRFz3hvu40+FQgG+htEIMsht01zaBdxihqyGnvceB1YY27MdoQQl /USOwfKv+KPsupqcOIWE/UgrnaEZtKBWCbAade4SMKIsSvH8fQQFiYlRNMu2N4DJqO8i rpS6WzHqQSUTiOV+4vTP9BCRMG+Wcb7y58w9AlH3ezXZ/bn8Wd6hi0epPBaU887Km2et mK0UW3KQgbVqCKru25HvaAzsWg9dTOcbgPLy5TRmoovuI3b2TmZXI2u0YhAtUMVCVsvW aU0pM3XiqWt6MrQ4+gRt57uxaOa8uroaZ81ufFQA83BI7UXrZ+ygWbamnJYI2oSVeP7s qtVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="Jvm/NakP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n7si13806207jaj.4.2021.08.02.10.08.30; Mon, 02 Aug 2021 10:08:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="Jvm/NakP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229881AbhHBRHb (ORCPT + 99 others); Mon, 2 Aug 2021 13:07:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbhHBRH2 (ORCPT ); Mon, 2 Aug 2021 13:07:28 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ECFAC06175F for ; Mon, 2 Aug 2021 10:07:18 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id h9so24782857ljq.8 for ; Mon, 02 Aug 2021 10:07:18 -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=ILiPem6rQEtCvqEZt+Nmb4/YTU5td2KVc3h1l4OeuvA=; b=Jvm/NakPCNY29sPFDp+J2ZNO9jlolOSC2VFZd7wt0hSzXG1Vw//AWBKhccc4gYjXj7 SAKq4Vw4oqlr/4tvUL4OvyPC0oGS4f1ofMxPFWZiDx+A6wkTEkvtkQDqjbU+E7Dj0E7u B3pKf/otBit3YvJFmUj6+wGPJOgLLRzfXCKKI= 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=ILiPem6rQEtCvqEZt+Nmb4/YTU5td2KVc3h1l4OeuvA=; b=bGymPUM1eWLYsh/MV+yS/YpLOeM4eCzgctMfEYOkY99wyeyYWRFhif8o0ZgnHoMB+E gkLFrxsGUWi195WsVTthZ4GG0MwV2uQo7LlArJceMze1rtDfmfdxtNQ7MJIpMBwi4Mq6 fSO027aRW4WPeZ+DnQJ4DzsAP8oG7g/YqhLqs+UPlqKJa0Km8qQo+nYSd7/1aS/vk3PV eCV0UV59Z0lGxS9VTZn0BBWioo4QRdINNowm8rLoqU47bt+2i8amBPKL6fq0ebBc2x// 8ygnHY6lHsOPQUfxzoThlDL3UPy5lkN/AgctgdvS4MBMSPUg6ftoZJJbsgiT7gXFGT4G UMfQ== X-Gm-Message-State: AOAM533fxzHCYjFjc3fjW1LoBPchkVOCrPQsmbKeT1AhcW6YMdm4CchE pmHiZcx3FCAXzn0qcJAH6cwOfXYImHHHQgfX X-Received: by 2002:a05:651c:157:: with SMTP id c23mr11823368ljd.225.1627924036527; Mon, 02 Aug 2021 10:07:16 -0700 (PDT) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id f6sm1011471lfu.273.2021.08.02.10.07.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Aug 2021 10:07:15 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id u3so34945000lff.9 for ; Mon, 02 Aug 2021 10:07:15 -0700 (PDT) X-Received: by 2002:a05:6512:2347:: with SMTP id p7mr13403567lfu.253.1627924035317; Mon, 02 Aug 2021 10:07:15 -0700 (PDT) MIME-Version: 1.0 References: <20210802024945.GA8372@xsang-OptiPlex-9020> In-Reply-To: <20210802024945.GA8372@xsang-OptiPlex-9020> From: Linus Torvalds Date: Mon, 2 Aug 2021 10:06:59 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [pipe] 3a34b13a88: hackbench.throughput -12.6% regression To: kernel test robot Cc: Sandeep Patil , Michael Kerrisk , LKML , lkp@lists.01.org, kernel test robot , "Huang, Ying" , Feng Tang , Zhengjun Xing Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 1, 2021 at 7:31 PM kernel test robot wrote: > > FYI, we noticed a -12.6% regression of hackbench.throughput due to commit: I had already forgotten how sensitive hackbench is to pipe wakeups. I think it's all good for stable, and we can live with this - particularly since I'm not sure how much hackbench really matters. But it might be one of those things where it is a good idea to make the crazy epoll case explicitly special. Sandeep, does something like the attached patch (written to be on top of the existing one) work for you? It's not a great patch - I'd like to catch _just_ the broken EPOLLET case, but this patch triggers on any select/poll usage - but it might be a good idea to do it this way simply because it now separates out the "ok, now we need to do stupid things" logic, so that we *could* make that "stupid things" test tighter some day. And I think it's actually better to make sure that the unnecessary extra wakeup be the _last_ one a write() system call does, not the first one. So this may be the way to go for that reason too. This all probably doesn't matter one whit, but hey, I love how the kernel test robot gives us heads-up about performance anomalies, so I try to take them seriously when they aren't totally strange (which happens sometimes: some of the benchmarks end up having subtle cache placement effects) Linus