Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1010348pxb; Wed, 1 Sep 2021 15:12:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHU2f0/z0kzl/HRHLL14E8yS218c1yp9v/6jDoGbncvBteVaIrdXbjocpmGscE9Dl2FnuM X-Received: by 2002:a05:6e02:2199:: with SMTP id j25mr1187925ila.97.1630534355613; Wed, 01 Sep 2021 15:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630534355; cv=none; d=google.com; s=arc-20160816; b=CjvRLLXkVR/u+2MqhSAhEEaPdU+pJxvXgG0kY8LxGI46fUS181/gl47S8nitltTGtA /tNsdSBeDe9099R9wuJofbDju7Hkd9bFHwoFv20KgRCxt7+OqH37yjUgNckez7l/F7Fi w734bUWydK1Hlka24Lp+6ZUEVres9J7fXKXswQQKO8ULgJ7GEhjrbw2pf3dmn9dZyRqV x7j9riks22Kb4IHu34srNGudVOuzL8tWtuZaCEMK1wkjvvBV4tmXsPsZpW/A5BFPnD4E HqAQl4w5bjmsxKHEzafZpp4TbSE9VOmJg9YkRN/Gl1mM07B+yHhTy699cZNdno0/XgQE Gj3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6YZViCnYs0eR5/63fdWEJvo5ozOWVgp0c50/QeWT3bM=; b=K6MUIgTimjfqqT6EyooRJPXxaeEIVMzKY6RsCev/adLHo+HEbDvRnZvKBv3H8nBipb 9aIXatIuKYczWD63Opx9EgLgWfllV4nD8pTDjRqnYvhFGGwWq7rEP05QAEluNJKBZH4n Xb6Z0wbzPfCMcKLALyTjXHpmXvNhcERizO9qKp96JoTnoTwxKg9N6E3mDDliViszQU26 m18b2PThkFNu1RHHLP0PDk85VEkhOVExm2rbCjRAPf2RGt4LnGNgife133eZZFx2ff2d CqU6OL7xGTeFmxzt5nf101gD75IySVCFSgwdR2WqFSuggBf0hmDyJUgyXrX8JruWxWgD owUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="bCM/kHzt"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 10si20693ill.159.2021.09.01.15.12.24; Wed, 01 Sep 2021 15:12:35 -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=@redhat.com header.s=mimecast20190719 header.b="bCM/kHzt"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346501AbhIANHT (ORCPT + 99 others); Wed, 1 Sep 2021 09:07:19 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:30268 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346128AbhIANHJ (ORCPT ); Wed, 1 Sep 2021 09:07:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630501571; 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=6YZViCnYs0eR5/63fdWEJvo5ozOWVgp0c50/QeWT3bM=; b=bCM/kHztsVIXAwyEG1y67Y1KqKZUB+I10+Mrw7ci1RPRFo8oBs8a7b6Df3DlfS5FXbhjAK qO7fRvEC3Z0cJvdAGEYZbu5EC/fTJareJGaZp7yTSU0KM88aHyqEB3EO1xTQy2bSzTvbj/ WZDPKoRyf9yJEG8CEgGMifTDeLbfrbs= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-320-4tHKzDgUPU238yobkDBX7g-1; Wed, 01 Sep 2021 09:06:09 -0400 X-MC-Unique: 4tHKzDgUPU238yobkDBX7g-1 Received: by mail-lf1-f72.google.com with SMTP id d10-20020ac24c8a000000b003dce50ea2c4so1020294lfl.0 for ; Wed, 01 Sep 2021 06:06:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6YZViCnYs0eR5/63fdWEJvo5ozOWVgp0c50/QeWT3bM=; b=RE+GVH0YQW6OK2QjXNhVQkzIU2EobFcMHiqEn750x34Sq4B9pV4LVKM+CBLz4jBItt TTQdIMbzkXjgACWieV50+B+8Nt7wm2k1Ez+u0Myf/nWbiR44x6JqoPoHsIn27YH0tDHq Fj6/DgM3gLnBoM10uSf3+Xgavxu4EAp4PIbwrYgW1Eqti2jNXhJ6QK/0g444LBf0ZUtV lJQNqhLdVSC9bINEbv8+HTGzIrWGqgJiokhfw4I8v7Q0GQe8frIQ/WlG/mTw8ubkPEIl gtnsSasNhBZc/QF9primUEywR+ujUvTCg7L+DUDgE9mANo/Bvy8M5aaURRFPp0cK9rjJ MMBg== X-Gm-Message-State: AOAM532kcw2STsU2LgsP+K6Sj3LwWm+Pn82cYQHWS1+BMulM+zCSOusV yEiObcv2KgtPWJf1HQsAo1tGdJCGB/O+Vshr+mM03592t9MWnlyR62VghSTTaGL97s81pDKQK/H kHGabDXmWoolhntg/QtlwAmHIbdZGEfwBBFpZidec X-Received: by 2002:a2e:6c09:: with SMTP id h9mr29879243ljc.30.1630501566606; Wed, 01 Sep 2021 06:06:06 -0700 (PDT) X-Received: by 2002:a2e:6c09:: with SMTP id h9mr29879177ljc.30.1630501565974; Wed, 01 Sep 2021 06:06:05 -0700 (PDT) MIME-Version: 1.0 References: <20210824152423.300346181@fuller.cnet> <20210824152646.948424573@fuller.cnet> In-Reply-To: <20210824152646.948424573@fuller.cnet> From: Nitesh Lal Date: Wed, 1 Sep 2021 09:05:55 -0400 Message-ID: Subject: Re: [patch V3 8/8] mm: vmstat_refresh: avoid queueing work item if cpu stats are clean To: Marcelo Tosatti Cc: linux-kernel@vger.kernel.org, Nicolas Saenz Julienne , Frederic Weisbecker , Christoph Lameter , Juri Lelli , Peter Zijlstra , Alex Belits , Peter Xu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcelo, On Tue, Aug 24, 2021 at 11:42 AM Marcelo Tosatti wrote: > > It is not necessary to queue work item to run refresh_vm_stats > on a remote CPU if that CPU has no dirty stats and no per-CPU > allocations for remote nodes. > > This fixes sosreport hang (which uses vmstat_refresh) with > spinning SCHED_FIFO process. > I was still able to reproduce the sosreport hang with this patchset and I am wondering if that is because right now we do vmstat_sync and then cancel any pending jobs on a CPU in the context of one task. However, while this task is running another process can come in and can dirty the stats resulting in vmstat job getting placed on CPUs running SCHED_FIFO tasks. Am I missing something? What we can probably do is to communicate that a CPU is running on task isolation mode to any other process that is trying to run and schedule jobs there. -- Thanks Nitesh