Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2901406pxb; Mon, 18 Oct 2021 04:26:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGeh7Sq1BxlTrVu6pxGfa6do3WPYNTvHE5oXIR33LQ2el/oZ429db63QzxGwOQtn9gIVlf X-Received: by 2002:a63:e551:: with SMTP id z17mr22524646pgj.203.1634556400645; Mon, 18 Oct 2021 04:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634556400; cv=none; d=google.com; s=arc-20160816; b=ZGOh1wLEKGVLRWoaz271GQ0+7/sK5PnyW2fw178FPmbivPvDP8BY5dh2d3sImHzX4u IEGo1TQFaJLQ40mFwk+SBP/+ThNc8epi/V0N/iui369SG0BNQnlIoKFajcv1gLzCdbpm xbHBE3y+tQP6vTACYknzMjV1Z8wjWAMFRbGt8hN65q0/kkV3Xl+9EU72aWSf/VDg2JYY sfzkdo0mGwoMFxLmqywy4oAFKAmj5B2y/LyXtXm7kKx4MWR7On8VO57ZkYj88PNLvmkG wNi2T+BstQir5byFOU2SR56moruxgb3QI9+VepFcZSBCSkQLiGczAXKq1TPoDF/4haob q9Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LwGfNXapR6UMR3h1JoejKGv6nS6hMbfIvTOu9Gkeccs=; b=YEGnNYPI4IhRjzOjmo9WEg7fF23NhkGpBCTyzvcwaCPcw1B9r32UUTgYnPM/EYvtHz XIQKdVboaeCgGRllOCDzia8trAizRXiqNn6zeHwGa2ZAMxJXwS3LtnOKvfeOdOJyIG0r fWuKxv1a4BEOEV//Ueu753bymV1HQ7Gtefqys0jAQpYt7QH7fi0Rsj7x/DXeid8tulyP /lyPe0iVTz2E8jwuS+2cCKSVeWIdseSqaw4+FqUgF4L50Vu8eRWkB5bDqH1o9dSVEXrV 7ia9ZVgapS0LRgQmOOEFXLn5mv+8uwf84qtHhIDrhxVrGaammpQjKI4rm9a7B5K5svdc UBfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=O3K10iB4; 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 a8si9159629pga.170.2021.10.18.04.26.27; Mon, 18 Oct 2021 04:26:40 -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=@infradead.org header.s=desiato.20200630 header.b=O3K10iB4; 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 S230114AbhJRL1h (ORCPT + 99 others); Mon, 18 Oct 2021 07:27:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbhJRL1e (ORCPT ); Mon, 18 Oct 2021 07:27:34 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEF40C06161C for ; Mon, 18 Oct 2021 04:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=LwGfNXapR6UMR3h1JoejKGv6nS6hMbfIvTOu9Gkeccs=; b=O3K10iB4Eb2DYZP1H2cTmLZXAX j2vCBneyHCVG5B+WGOAAlk9Ee+BWmy9sCJDmdGg0lNP2b6eA5Isb8He23BH9T0UyrBU5wR8gpvsZA XuH7ObmPcxzOHKCUC8DbDoD81Ni1YSR05nbWrFmJo+BLPLAC/HqVbdK+su1wDi/K20XQp1/Cu1OAq 1HwniX3UgOpS27bg0L/4wZN4StmrV5MSRVGCUrzNS34W0UGDv3AOyqFM5SGEsK9mcCN5q24tus8Zj xbRZFucRSCrTQ9Ky653baObydXcfRKHYx4oU5NMxgxiPxVXvcU+ef1Q15rFkp9x7dQ88crjDIiaRk CxzoeQ+Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcQlL-00AXUz-Mp; Mon, 18 Oct 2021 11:25:04 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 675A7300221; Mon, 18 Oct 2021 13:25:02 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 50FD52C4A3AE4; Mon, 18 Oct 2021 13:25:02 +0200 (CEST) Date: Mon, 18 Oct 2021 13:25:02 +0200 From: Peter Zijlstra To: Norbert Cc: Steven Rostedt , linux-kernel@vger.kernel.org, Ingo Molnar , Thomas Gleixner , Yunfeng Ye , "Rafael J. Wysocki" , frederic@kernel.org Subject: Re: Performance regression: thread wakeup time (latency) increased up to 3x Message-ID: References: <035c23b4-118e-6a35-36d9-1b11e3d679f8@gmail.com> <5fe0ffa5-f2db-ca79-5a10-305310066ff9@gmail.com> <20211015100401.45833169@gandalf.local.home> <8691a8ec-410d-afe8-f468-eefe698c6751@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8691a8ec-410d-afe8-f468-eefe698c6751@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 15, 2021 at 09:08:58PM -0700, Norbert wrote: > > > > On Fri, Oct 15, 2021 at 12:43:45AM -0700, Norbert wrote: > > > > > Performance regression: thread wakeup time (latency) increased up to 3x. > > > > > > > > > > Happened between 5.13.8 and 5.14.0. Still happening at least on 5.14.11. > So git-bisect finally identified the following commit. > The performance difference came in a single step. Times were consistent with > my first post either the slow time or the fast time, > as far as I could tell during the bisection. > > It is a bit unfortunate that this comes from an attempt to reduce OS noise. > > ----------------------------------------------------- > commit a5183862e76fdc25f36b39c2489b816a5c66e2e5 > Author: Yunfeng Ye > Date: Thu May 13 01:29:16 2021 +0200 > > tick/nohz: Conditionally restart tick on idle exit > > In nohz_full mode, switching from idle to a task will unconditionally > issue a tick restart. If the task is alone in the runqueue or is the > highest priority, the tick will fire once then eventually stop. But that > alone is still undesired noise. > > Therefore, only restart the tick on idle exit when it's strictly > necessary. > > Signed-off-by: Yunfeng Ye > Signed-off-by: Frederic Weisbecker > Signed-off-by: Ingo Molnar > Acked-by: Peter Zijlstra > Link: > https://lore.kernel.org/r/20210512232924.150322-3-frederic@kernel.org > ----------------------------------------------------- > > Is there anything else to do to complete this report? So it _could_ be you're seeing increased use of deeper idle states due to less noise. I'm forever forgetting what the most friendly tool is for checking that (powertop can I think), Rafael? One thing to try is boot with idle=halt and see if that makes a different. Also, let me Cc all the people involved.. the thread starts: https://lkml.kernel.org/r/035c23b4-118e-6a35-36d9-1b11e3d679f8@gmail.com