Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2576813rwd; Fri, 2 Jun 2023 11:18:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7f8wGllaTLw2eOGBOAkR0zMEzRepF2ldmuA14GaGi1aWysNe0xdVQ1359gJSg3rJCSaYFB X-Received: by 2002:a05:6a00:c89:b0:652:7b99:df30 with SMTP id a9-20020a056a000c8900b006527b99df30mr5377090pfv.25.1685729898538; Fri, 02 Jun 2023 11:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685729898; cv=none; d=google.com; s=arc-20160816; b=Qcd27Nf07ndCqqV2m7TsyMO9Rk75uD7wHQOv0ju5T0ZmcNt+Ad6oUeSxtfB5Grx8nO 968auMOeptby4jVAWA5knTRXqYwawiOD9kAYCEBOTdooA7oqg7k+PPhGkJ+gkR5FyZf0 Dh7uGZjy11rsJNh8d6ZsnG8CYTRlj6LsAT5kyDVz+EGkzqiRTzebNufji3ZXc6UbaQGR rBX9Ym/2ma0a8mRm0zhJV+o/9RdYGQE6VwaBhN8K4ud9nnXgaD4MucdK4oCtS01HgyL4 /NY+/vYSqDXCgwha0js3myVz6yJKFbedG8GFJykA9+FdpQJUCm4stKye+RlyGbh/Y9M2 /Ukg== 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=KyaonDHM5xc2AUqOrNjfHglkwINHnKW+9198mSTvX0Q=; b=Ehbpi+rqv5qX95KjD9pbcJFYxFkDCyfZUa7Hfk32X4r7x0xVoyjNYVAofiQBeyPP+8 E3lKxS6hdc90m6SGsy6IR3T0wKgWLZO5L9c54wgXHnNmxBtQ56d5CAtwhOJHTizg4NQl pjzONSBi/MyH83PVN6/ICty1As/L3v9DNTOHH+cXI8XLyELhfuNuxTvSk15vfE7i0hFk ECT2uagNyWqOUFj4i8DsbFwONe/Sh2Oepl0yHI2PRbq8B1C5iuhj7TVMDyFTXuxKGKco oTvqvyEHdkqFkydjWYLkWdmWh81MFs79oW75m5Yp+jIwPNjmqw41p+CE1mUFhsh/p8Fp OZUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jGX8pKFG; 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 v202-20020a6361d3000000b005406e76eff9si1357328pgb.205.2023.06.02.11.17.59; Fri, 02 Jun 2023 11:18:18 -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=jGX8pKFG; 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 S236966AbjFBRzF (ORCPT + 99 others); Fri, 2 Jun 2023 13:55:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235863AbjFBRzE (ORCPT ); Fri, 2 Jun 2023 13:55:04 -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 5CDB29F for ; Fri, 2 Jun 2023 10:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685728463; 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=KyaonDHM5xc2AUqOrNjfHglkwINHnKW+9198mSTvX0Q=; b=jGX8pKFGO4QxSWkwZBYn3YrkWfKOy3TnNxHp02olSjQwuyLxPGWAzdy12/0Wono+FQK56R jWQynTL5G+NE2nHR0HzSvoaTQxQSwGqm9y8DwbmQ5W4FHO0O1DqilOjnCWbSlbRoP1cdp8 N9pHgsZjlMh+c31Ub2cXwb100bNIVGM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-295-_mdejqjjMUaKLnb9nZMRhg-1; Fri, 02 Jun 2023 13:54:13 -0400 X-MC-Unique: _mdejqjjMUaKLnb9nZMRhg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CFA3785A5A8; Fri, 2 Jun 2023 17:54:12 +0000 (UTC) Received: from tpad.localdomain (ovpn-112-2.gru2.redhat.com [10.97.112.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7E078492B00; Fri, 2 Jun 2023 17:54:12 +0000 (UTC) Received: by tpad.localdomain (Postfix, from userid 1000) id F33F140178AFC; Fri, 2 Jun 2023 13:57:18 -0300 (-03) Date: Fri, 2 Jun 2023 13:57:18 -0300 From: Marcelo Tosatti To: Michal Hocko Cc: Christoph Lameter , Aaron Tomlin , Frederic Weisbecker , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Vlastimil Babka Subject: Re: [PATCH 2/4] vmstat: skip periodic vmstat update for nohz full CPUs Message-ID: References: <20230530145234.968927611@redhat.com> <20230530145335.828634764@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-2.3 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,T_SCC_BODY_TEXT_LINE 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, Jun 02, 2023 at 12:39:04PM +0200, Michal Hocko wrote: > On Tue 30-05-23 11:52:36, Marcelo Tosatti wrote: > > @@ -2022,6 +2023,16 @@ static void vmstat_shepherd(struct work_ > > for_each_online_cpu(cpu) { > > struct delayed_work *dw = &per_cpu(vmstat_work, cpu); > > > > + /* > > + * Skip periodic updates for nohz full CPUs. > > + * Any callers who need precise values should use > > + * a snapshot of the per-CPU counters, or use the global > > + * counters with measures to handle errors up to > > + * thresholds (see calculate_normal_threshold). > > + */ > > + if (tick_nohz_full_cpu(cpu)) > > + continue; > > In other code path we have used cpu_is_isolated, is there any reason to > diverge from that here? Isn't this effectivelly the same kind of > problem? Changed to cpu_is_isolated, thanks.