Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3177492ioa; Mon, 25 Apr 2022 20:24:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlb6CoTavj2Z7seuDEnCuun6P3t2tNTsy5roq20oTh90sEU0J0UwjrqZ5zHBzImls4lE2H X-Received: by 2002:a63:8841:0:b0:3ab:3dd0:1947 with SMTP id l62-20020a638841000000b003ab3dd01947mr7317426pgd.498.1650943441625; Mon, 25 Apr 2022 20:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650943441; cv=none; d=google.com; s=arc-20160816; b=0vv3tSSMfIKW38uvNS6TbstKgBXSIm7z+AKuMvghrXgHH6vWnRl+UtFe9jfew1X/Wf zFN3IzvwKayfs7lyn+CT6mmlOlTziPQ7JJRw2Dt7W97z9zSfJT+HJ0F/9P6z6+bnLAXA RhRpijeQjT6kKUV7v7zwRMAfxqwczGO+C2mgLJzSuEVwldMWxLIGFbuu1HFPvxUFrVOX f9av2qkQDJZpPtwQzTLCGVGT0k/Php0KN7/VDnV7svWU4NTzLwtlb9zJMOLLHsW0ueWB YJGg5LSdhQ6ck9evASR7fi76eLUsVDU5j5XJz8WTEvHlZVdYT+yExdk9op93NqX3BM/I lgCw== 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=dWekVSPYd8xYAt3O60VkUDiNCfHG1joVEXBu5UZWkrw=; b=ol47t5oCidVe7FBMuECYBuSJBQvfOdrAM2Hbh+8M6dNc+Nf7JxPLSs1rSe8enXwFl1 6Q28hnM8QjKE2txSmpRoRfeQTa556Jrnmvc1atxQYNCYmvaUxwJdTva73LFNN0YLKGFe 4OPJhTTnyh24HrIOw8UFySR/WkFZOUJBwMB48cVE9yK/Kunn5rG2Z+O3urpyXgi2Fia7 C02d4sv8JUJWuq9tVvFdZojFvcMIrSEXp5TH43YmeZmXoEkdG6i464L/8rcBVXueXBsc qq16aAOtow6v1K8njovt51cmdJIKNPaLJtipsNRaAImpk6sVSypgJ2zzONqXqgFyHxUJ ltNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YN8m6mLL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a6553c4000000b003816043f089si18562819pgr.638.2022.04.25.20.23.45; Mon, 25 Apr 2022 20:24:01 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YN8m6mLL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237467AbiDYLmX (ORCPT + 99 others); Mon, 25 Apr 2022 07:42:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbiDYLmU (ORCPT ); Mon, 25 Apr 2022 07:42:20 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 66713369CC for ; Mon, 25 Apr 2022 04:39:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650886755; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dWekVSPYd8xYAt3O60VkUDiNCfHG1joVEXBu5UZWkrw=; b=YN8m6mLLkfgMgH7PdaccLvnQQedjuNmnWN95k97ZHgIzlbVK3y0QzwTv1JtBxlBhOWORPg WEoeeD+4isws/fxVlYl7ZxCxDng51iqykZYew/Mah2A6QZ3wFruHaAC801gNWzN6FGZT2K BZ1q9iUXNb5isWi86jZwQzuzy5YXMkg= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-439-3DvIA_TDN1CriXLlWdL43Q-1; Mon, 25 Apr 2022 07:39:14 -0400 X-MC-Unique: 3DvIA_TDN1CriXLlWdL43Q-1 Received: by mail-wm1-f70.google.com with SMTP id az19-20020a05600c601300b003914ac8efb8so7062448wmb.2 for ; Mon, 25 Apr 2022 04:39:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=dWekVSPYd8xYAt3O60VkUDiNCfHG1joVEXBu5UZWkrw=; b=vMd66DMc9gmk77Sk8y/9Zg+p579yWvp9dHTIGgp7r8qKIMU4cQZFLD6VAOqHpZ6zRn tO/4ZuyANyxrkw2NB4tIjwoZrWAX3RZuIu2umrMjiZ1GU8XK3cmlIsGXw4dnW1IctoSE SDWB3CCKhlx09LQSUC4oQCXjjA7/vWzoCdWxZnQAThnzhSi8ufU2O6OvG2zJRt1tDJp5 7OeDVO6NLefxLRaG+F9bw5Q8v4U8VDvcqM6cZgcwpaiHDsy1r2cxMVNH4oqFN6Wp0WGu Im+eRPPxFHGnSv9DFlDeIkvk43I6TPftbSwa3NVCBQCITzQeW6xp3Ztd9IImJjVXtCTL r6MQ== X-Gm-Message-State: AOAM5320TlDhmp7N6OU9yqbDmlIUclwLmdK/yWAnRxy2ZSKh2ascMngI 5UZ3timrjOyiwjvhnCrpMd4of9BPCLAhmYYhxUwmADgSQ3jaWsDz3rmQx6kZReBIa0mMbQdCEV2 GgzXIzi/3T/Zx39/mzi/br3c= X-Received: by 2002:adf:f710:0:b0:20a:e189:9983 with SMTP id r16-20020adff710000000b0020ae1899983mr133525wrp.24.1650886753274; Mon, 25 Apr 2022 04:39:13 -0700 (PDT) X-Received: by 2002:adf:f710:0:b0:20a:e189:9983 with SMTP id r16-20020adff710000000b0020ae1899983mr133512wrp.24.1650886753070; Mon, 25 Apr 2022 04:39:13 -0700 (PDT) Received: from localhost (cpc111743-lutn13-2-0-cust979.9-3.cable.virginm.net. [82.17.115.212]) by smtp.gmail.com with ESMTPSA id j39-20020a05600c1c2700b00393ee3deaf1sm1758378wms.9.2022.04.25.04.39.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 04:39:12 -0700 (PDT) Date: Mon, 25 Apr 2022 12:39:09 +0100 From: Aaron Tomlin To: Christoph Lameter 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 Message-ID: <20220425113909.u3smtztp66svlw4o@ava.usersys.com> X-PGP-Key: http://pgp.mit.edu/pks/lookup?search=atomlin%40redhat.com X-PGP-Fingerprint: 7906 84EB FA8A 9638 8D1E 6E9B E2DE 9658 19CC 77D6 References: <20220422193647.3808657-1-atomlin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 Mon 2022-04-25 09:23 +0200, Christoph Lameter wrote: > 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. Hi Christoph, Thank you for your feedback. Yes, in the context of nohz, this patch should ensure it, if required, when the idle tick is to be stopped. Kind regards, -- Aaron Tomlin