Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3734696rwi; Wed, 12 Oct 2022 06:12:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Pr6tyVNC8dxQD0eNCJy4kqn+2MMWuOq1v8ODfqyr7TZ28nKlecvkMKbrHrKXe5uoKfabw X-Received: by 2002:a17:906:7945:b0:73b:e605:f31 with SMTP id l5-20020a170906794500b0073be6050f31mr22684992ejo.129.1665580346400; Wed, 12 Oct 2022 06:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665580346; cv=none; d=google.com; s=arc-20160816; b=A8s127ZHYTRbSS6SoMvUg9YZ5ga5oLSoynv6CltpFBYTKOobSEvDDmvYxYCTie86+8 6fgMK85Ci5vRbX90bu3wcI60q0/lDnglE7LLTO/Dmf1Bs7L3cyoCF1SxA38o8gcl/JHx f5SCsQbtaimdnZO+KbORTtBEjmslWB1kkE52xDZyVqj62VTwMiP0WmFmr86LJN3p/a9Y +qn4wNDhowWV8i49xNUDA6xXfEsOPaDwpwALJZw8l4DKpWtyL+HI4QdN7OEQYCo4/5Cl AKrSqhQSoxc4lLg+QIkUPaoCjXxp8mrb+zzmpncPJVKyxzTIOagDN8KWAaihvPmt5f+F ikJQ== 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=bv29RAREeBAbvgsCg22WvWf89lmnsctG7Ho4iszploI=; b=HhU5F0dfwEbKv/+ETl+UPEpCnIbQ48aPRWwmcTZ195ATtfYXeH0RcawCWES4Vnz+O6 Br8K0U82EHuujGmCTytwlYN+t43EboLoUStnPwSwwx5boeHP82lHbCzPUxE2zC/AT6kY dDbs428laok7doW9ID5E4MGp8I1RvPsgGyghasyOWLDJQKGf4GONzbpSyj/ZmYUZ5aY+ 1Fndp8fCEuWMRqlOcAaKtYJU7U6h/qPXkLfzcygc1rhhcWpJMc+VyIbEMDfHeIDp4iI4 KczjtKGASmQjkLsngSmmOl0/v3FMRIZjOpMZ5HShf8nPdNO97VFbRdpx1l1fpPqXMJIe GFSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U8aygZFC; 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 r14-20020aa7cb8e000000b00459e1ce80a7si13932037edt.241.2022.10.12.06.11.53; Wed, 12 Oct 2022 06:12:26 -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=U8aygZFC; 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 S229919AbiJLMlO (ORCPT + 99 others); Wed, 12 Oct 2022 08:41:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbiJLMlN (ORCPT ); Wed, 12 Oct 2022 08:41:13 -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 ESMTPS id C1EDCC8948 for ; Wed, 12 Oct 2022 05:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665578467; 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=bv29RAREeBAbvgsCg22WvWf89lmnsctG7Ho4iszploI=; b=U8aygZFCEZt8rvoGs5m6ow/ROh2wOI/DHI3aH3yDJ1DgFUOO8m0d1hUQlsKF+jugWIvpoo WB3Ci0shG149qBdc7WobETVD5WcDRqhiaRKKeAQFB7lGYEJTUcHTcdLosfE6Cc1EE76DFm 3CW6Mimj0hXe7gtkxaMIXCOo5xy2ZMs= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-625-ZPBVURhDNAy5N4IM4btQiw-1; Wed, 12 Oct 2022 08:41:05 -0400 X-MC-Unique: ZPBVURhDNAy5N4IM4btQiw-1 Received: by mail-wr1-f69.google.com with SMTP id k30-20020adfb35e000000b0022e04708c18so4973684wrd.22 for ; Wed, 12 Oct 2022 05:41:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bv29RAREeBAbvgsCg22WvWf89lmnsctG7Ho4iszploI=; b=0gsfKSfpj/YSGHB5TFT1+GUTYJ5QJNKWCseAFBTiX+ak4hMbSf1GNrYubZbfNq1eo1 xaSFujKErxFvWQcA4d1QBLNzAetoM+4NKzbmJAZF4nkuaE+zDMxRIytGV6Zb6jdfrW9l 7/hkRjuJr+JH8wQR+izZHT+zuscJ6vM/WIny4RGycA/REmZfQYIWKK2HQXyEFsqiF0VD TAW9ah8mQp2jzbUkrGNADOHymEaXkXhGT3V4qitBIs4R6iRlD9e5dr1Y2GBLWa6uoQkZ w0NUWG709qVU8H9QyEBZbTL23TmxzykyWKLFt5HSFrzqKGUtsJq62Pa0NXL/qvTKJd+m +A1Q== X-Gm-Message-State: ACrzQf0AFvK6BAB2g/PuW2DrojQxYtnd8os5Xt5jGifejW9KEjDtlqs1 uV9MAW3w0EGA9Er0vVzvAXRhIT4H9H5ttW4ms/HK8XvuDy3Bj0XLwagDsiPCLyBre6UpFO927+7 IoZUncu647phsvx3QilU5/9k= X-Received: by 2002:a05:600c:5388:b0:3c5:4c1:a1f6 with SMTP id hg8-20020a05600c538800b003c504c1a1f6mr2667807wmb.11.1665578462814; Wed, 12 Oct 2022 05:41:02 -0700 (PDT) X-Received: by 2002:a05:600c:5388:b0:3c5:4c1:a1f6 with SMTP id hg8-20020a05600c538800b003c504c1a1f6mr2667793wmb.11.1665578462568; Wed, 12 Oct 2022 05:41:02 -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 u11-20020a5d6acb000000b0022afedf3c87sm13662057wrw.105.2022.10.12.05.41.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 05:41:02 -0700 (PDT) Date: Wed, 12 Oct 2022 13:41:01 +0100 From: Aaron Tomlin To: Hillf Danton Cc: frederic@kernel.org, mtosatti@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, atomlin@atomlin.com Subject: Re: [PATCH v8 5/5] tick/sched: Ensure quiet_vmstat() is called when the idle tick was stopped too Message-ID: <20221012124101.zod6m2brlzpgx6nb@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: <20220924152227.819815-1-atomlin@redhat.com> <20220925010511.1482-1-hdanton@sina.com> <20221003124435.1769-1-hdanton@sina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221003124435.1769-1-hdanton@sina.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 > Given work canceled because per-CPU pages can be freed remotely from > housekeeping CPUs (see patch 3/5), what is added here is not needed. Hi Hillf, Firstly, apologies for the delay! The concern is to ensure CPU-specific vmstat counters are reset and folded into NUMA node and zone specific and global counters too before entering idle. It is necessary to invoke quiet_vmstat() on return to idle even if the scheduling-clock tick has been previously stopped. Please refer to the complete scenario I described again. If I understand correctly, indeed the remote drain/or free of zone CPU-specific pages can be initiated by a "housekeeping" CPU i.e. refresh_cpu_vm_stats(true) via a worker thread/or kworker, yet the actual free will only occur when the nohz_full CPU exits idle code and calls schedule_idle(). Kind regards, -- Aaron Tomlin