All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Lameter <cl@linux.com>
To: Shiraz Hashim <shiraz.linux.kernel@gmail.com>
Cc: Michal Hocko <mhocko@kernel.org>,
	akpm@linux-foundation.org, linux-mm@kvack.org,
	LKML <linux-kernel@vger.kernel.org>,
	hannes@cmpxchg.org, penguin-kernel@i-love.sakura.ne.jp
Subject: Re: vmstat: make vmstat_updater deferrable again and shut down on idle
Date: Thu, 21 Jan 2016 09:41:28 -0600 (CST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1601210940030.7063@east.gentwo.org> (raw)
In-Reply-To: <CAPub14_S6swU_SPzZjx_OwyWhPBzXsfaoQ4Xc4qAKTDbtmjPSA@mail.gmail.com>

On Thu, 21 Jan 2016, Shiraz Hashim wrote:

> > On idle we fold counters immediately. So there is no loss of accuracy.
>
> vmstat is scheduled by shepherd or by itself (conditionally). In case shepherd
> is deferred and vmstat doesn't schedule itself, then vmstat needs to wait
> for shepherd to be up and then schedule it. This may end up in delayed status
> update for all live cpus. Isn't it ?

The shepherd runs on a processor with an active tick and thus should do
its duty every 2 seconds as scheduled. Small milisecond range deferrals do
not matter much.

WARNING: multiple messages have this Message-ID (diff)
From: Christoph Lameter <cl@linux.com>
To: Shiraz Hashim <shiraz.linux.kernel@gmail.com>
Cc: Michal Hocko <mhocko@kernel.org>,
	akpm@linux-foundation.org, linux-mm@kvack.org,
	LKML <linux-kernel@vger.kernel.org>,
	hannes@cmpxchg.org, penguin-kernel@i-love.sakura.ne.jp
Subject: Re: vmstat: make vmstat_updater deferrable again and shut down on idle
Date: Thu, 21 Jan 2016 09:41:28 -0600 (CST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1601210940030.7063@east.gentwo.org> (raw)
In-Reply-To: <CAPub14_S6swU_SPzZjx_OwyWhPBzXsfaoQ4Xc4qAKTDbtmjPSA@mail.gmail.com>

On Thu, 21 Jan 2016, Shiraz Hashim wrote:

> > On idle we fold counters immediately. So there is no loss of accuracy.
>
> vmstat is scheduled by shepherd or by itself (conditionally). In case shepherd
> is deferred and vmstat doesn't schedule itself, then vmstat needs to wait
> for shepherd to be up and then schedule it. This may end up in delayed status
> update for all live cpus. Isn't it ?

The shepherd runs on a processor with an active tick and thus should do
its duty every 2 seconds as scheduled. Small milisecond range deferrals do
not matter much.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2016-01-21 15:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-10 20:45 vmstat: make vmstat_updater deferrable again and shut down on idle Christoph Lameter
2015-12-10 20:45 ` Christoph Lameter
2015-12-10 23:31 ` Andrew Morton
2015-12-10 23:31   ` Andrew Morton
2015-12-11  1:41   ` Christoph Lameter
2015-12-11  1:41     ` Christoph Lameter
2015-12-14 18:32     ` Christoph Lameter
2015-12-14 18:32       ` Christoph Lameter
2016-01-20 13:52 ` Shiraz Hashim
2016-01-20 13:52   ` Shiraz Hashim
2016-01-20 15:12   ` Christoph Lameter
2016-01-20 15:12     ` Christoph Lameter
2016-01-21  6:24     ` Shiraz Hashim
2016-01-21  6:24       ` Shiraz Hashim
2016-01-21 15:41       ` Christoph Lameter [this message]
2016-01-21 15:41         ` Christoph Lameter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.20.1601210940030.7063@east.gentwo.org \
    --to=cl@linux.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@kernel.org \
    --cc=penguin-kernel@i-love.sakura.ne.jp \
    --cc=shiraz.linux.kernel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.