linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] mm: introduce sysctl file to flush per-cpu vmstat statistics
       [not found]       ` <alpine.DEB.2.22.394.2011201817320.248402@www.lameter.com>
@ 2020-11-24 17:12         ` Vlastimil Babka
  2020-11-24 19:52           ` Marcelo Tosatti
  0 siblings, 1 reply; 2+ messages in thread
From: Vlastimil Babka @ 2020-11-24 17:12 UTC (permalink / raw)
  To: Christopher Lameter, Marcelo Tosatti
  Cc: Matthew Wilcox, linux-mm, Andrew Morton, Linux API

On 11/20/20 7:20 PM, Christopher Lameter wrote:
> On Tue, 17 Nov 2020, Marcelo Tosatti wrote:
> 
>> > So what we would need would be something like a sysctl that puts the
>> > system into a quiet state by completing all workqueue items. Idle all
>> > subsystems that need it and put the cpu into NOHZ mode.
>>
>> Are you suggesting that instead of a specific file to control vmstat
>> workqueue only, a more generic sysctl could be used?
> 
> Yes. Introduce a sysctl to quiet down the system. Clean caches that will
> trigger kernel threads and whatever else is pending on that processor.

Please CC linux-api on future postings that introduce stuff like this.

>> About NOHZ mode: the CPU should enter NOHZ automatically as soon as
>> there is a single thread running, so unclear why that would be needed.
> 
> There are typically pending actions that still trigger interruptions.
> 
> If you would immediately quiet down the system if there is only one thread
> runnable then you would compromise system performance through frequent
> counter folding and cache cleaning etc.

If someone goes through the trouble of setting up NOHZ, these 
disruptions should be only temporary and happen during the setup, no?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] mm: introduce sysctl file to flush per-cpu vmstat statistics
  2020-11-24 17:12         ` [PATCH] mm: introduce sysctl file to flush per-cpu vmstat statistics Vlastimil Babka
@ 2020-11-24 19:52           ` Marcelo Tosatti
  0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2020-11-24 19:52 UTC (permalink / raw)
  To: Vlastimil Babka
  Cc: Christopher Lameter, Matthew Wilcox, linux-mm, Andrew Morton, Linux API

On Tue, Nov 24, 2020 at 06:12:29PM +0100, Vlastimil Babka wrote:
> On 11/20/20 7:20 PM, Christopher Lameter wrote:
> > On Tue, 17 Nov 2020, Marcelo Tosatti wrote:
> > 
> > > > So what we would need would be something like a sysctl that puts the
> > > > system into a quiet state by completing all workqueue items. Idle all
> > > > subsystems that need it and put the cpu into NOHZ mode.
> > > 
> > > Are you suggesting that instead of a specific file to control vmstat
> > > workqueue only, a more generic sysctl could be used?
> > 
> > Yes. Introduce a sysctl to quiet down the system. Clean caches that will
> > trigger kernel threads and whatever else is pending on that processor.
> 
> Please CC linux-api on future postings that introduce stuff like this.

Thanks, will do.

> > > About NOHZ mode: the CPU should enter NOHZ automatically as soon as
> > > there is a single thread running, so unclear why that would be needed.
> > 
> > There are typically pending actions that still trigger interruptions.
> > 
> > If you would immediately quiet down the system if there is only one thread
> > runnable then you would compromise system performance through frequent
> > counter folding and cache cleaning etc.
> 
> If someone goes through the trouble of setting up NOHZ, these disruptions
> should be only temporary and happen during the setup, no?

There is no way for the userspace application to know when the
disruptions are gone (vmstat work function executed).

But yes, they are temporary and happen during setup.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-24 21:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20201117162805.GA274911@fuller.cnet>
     [not found] ` <20201117180356.GT29991@casper.infradead.org>
     [not found]   ` <alpine.DEB.2.22.394.2011171855500.215602@www.lameter.com>
     [not found]     ` <20201117202317.GA282679@fuller.cnet>
     [not found]       ` <alpine.DEB.2.22.394.2011201817320.248402@www.lameter.com>
2020-11-24 17:12         ` [PATCH] mm: introduce sysctl file to flush per-cpu vmstat statistics Vlastimil Babka
2020-11-24 19:52           ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).