Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp16294pxb; Mon, 25 Apr 2022 04:57:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKMxyFbOR70+8jW9E6me+MLlaC3OZ8ikLCnRLH2jrY5nc8xT9wler/u53RZIcli2iohtcz X-Received: by 2002:a17:903:1247:b0:156:25b4:4206 with SMTP id u7-20020a170903124700b0015625b44206mr17877256plh.146.1650887830227; Mon, 25 Apr 2022 04:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650887830; cv=none; d=google.com; s=arc-20160816; b=xWpSisRLT0M69+zOoj5Tf/cDVSxALYzvBc6eHWLDQM703IDaamZhwALTIl7JL9j1Ok WN+V18t3LGL2NdUgx1N0N04bydmY3xNjsJI3JpM2dsKnL2HRhffOWtRG/4hErNuhcI7c OK+bZ/Z6cvPedGAe5VMufTcUUVFIyjvl9Ve/Y8oF6stC/QIEb9tRZIff1oGFlQ6wxqIf hz4kNe3cgZgmCkFs7hMAJi1gUqUSSNT030E1akcxXmEdpdTgnhRflRHdprfEvvqrw7gJ SidhJIK1Nbo3Vl99+3dA/BFzX5SSyP1YalqNeO06HHQEo11X8639dZ42X07Ja2OlZesO gNGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=LJDQ12qy5fIzNbH/IXAbA9VKSfpspcE0nIP8egRBHr0=; b=YdwUqxyegE6/Fti1J19eDrHmnE2dKmw+cKlkfj1Vvj2JzvIC1/FbO05AQCMmUdQMLS EuMnGCvtJQvSNchR0OZ0Qz6WmFrUitVzqCwUH312/Fke/mvna61V/YfrcfbbEXT3FDU8 KNTyPpaFCYV60/xWwZW+CwgWrsqyVfgEr6HAmj8jX5nToGxMvFlpseb9dsGBd1udWEW+ G2xnsRJm1oA5xr9FTHyP34DnMBaB4xBHZjcXlAg+wo6h4Dl7V4AhJAxRPrh0ypa41PfJ zskGHWfUr/NKBb5swgfjUJugemZ217TpqfB0uVTW7EtEnmMdaoWfwysNfGgD38rZmAgu 1bIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentwo.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a654687000000b003816043f0dasi16927099pgr.719.2022.04.25.04.56.54; Mon, 25 Apr 2022 04:57:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentwo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234489AbiDYH0P (ORCPT + 99 others); Mon, 25 Apr 2022 03:26:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbiDYH0J (ORCPT ); Mon, 25 Apr 2022 03:26:09 -0400 Received: from gentwo.de (gentwo.de [161.97.139.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05301644C for ; Mon, 25 Apr 2022 00:23:03 -0700 (PDT) Received: by gentwo.de (Postfix, from userid 1001) id 2A115B000C1; Mon, 25 Apr 2022 09:23:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id 27161B00078; Mon, 25 Apr 2022 09:23:01 +0200 (CEST) Date: Mon, 25 Apr 2022 09:23:01 +0200 (CEST) From: Christoph Lameter To: Aaron Tomlin cc: frederic@kernel.org, mtosatti@redhat.com, tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, pauld@redhat.com, neelx@redhat.com, oleksandr@natalenko.name, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH v3] tick/sched: Ensure quiet_vmstat() is called when the idle tick was stopped too In-Reply-To: <20220422193647.3808657-1-atomlin@redhat.com> Message-ID: References: <20220422193647.3808657-1-atomlin@redhat.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Apr 2022, Aaron Tomlin wrote: > A customer provided some evidence which indicates that the idle tick was > stopped; albeit, CPU-specific vmstat counters still remained populated. > Thus one can only assume quiet_vmstat() was not invoked on return to the > idle loop. Could we *always* fold the vmstat counters when entering idle mode? That would make the logic less complicated. There is nothing else to do since we are entering an idle state and if there are any counter deltas then we have the time to process them. This may also decrease the time that deltas exist significantly and an idle system will have accurate vmstat counters.