Re: [PATCH] mm: introduce clear all vm events counters

2021-03-03 Thread pintu
On 2021-03-02 21:26, Johannes Weiner wrote: On Tue, Mar 02, 2021 at 04:00:34PM +0530, pi...@codeaurora.org wrote: On 2021-03-01 20:41, Johannes Weiner wrote: > On Mon, Mar 01, 2021 at 04:19:26PM +0530, Pintu Kumar wrote: > > At times there is a need to regularly monitor vm counters while we > >

Re: [PATCH] mm: introduce clear all vm events counters

2021-03-02 Thread Johannes Weiner
On Tue, Mar 02, 2021 at 04:00:34PM +0530, pi...@codeaurora.org wrote: > On 2021-03-01 20:41, Johannes Weiner wrote: > > On Mon, Mar 01, 2021 at 04:19:26PM +0530, Pintu Kumar wrote: > > > At times there is a need to regularly monitor vm counters while we > > > reproduce some issue, or it could be as

Re: [PATCH] mm: introduce clear all vm events counters

2021-03-02 Thread pintu
On 2021-03-01 20:41, Johannes Weiner wrote: On Mon, Mar 01, 2021 at 04:19:26PM +0530, Pintu Kumar wrote: At times there is a need to regularly monitor vm counters while we reproduce some issue, or it could be as simple as gathering some system statistics when we run some scenario and every time

Re: [PATCH] mm: introduce clear all vm events counters

2021-03-01 Thread Johannes Weiner
On Mon, Mar 01, 2021 at 04:19:26PM +0530, Pintu Kumar wrote: > At times there is a need to regularly monitor vm counters while we > reproduce some issue, or it could be as simple as gathering some system > statistics when we run some scenario and every time we like to start from > beginning. > The

Re: [PATCH] mm: introduce clear all vm events counters

2021-03-01 Thread pintu
On 2021-03-01 17:43, Matthew Wilcox wrote: On Mon, Mar 01, 2021 at 04:19:26PM +0530, Pintu Kumar wrote: +EXPORT_SYMBOL_GPL(clear_all_vm_events); What module uses this function? oh sorry, I will remove the EXPORT Thanks for the review. Regards, Pintu

Re: [PATCH] mm: introduce clear all vm events counters

2021-03-01 Thread Matthew Wilcox
On Mon, Mar 01, 2021 at 04:19:26PM +0530, Pintu Kumar wrote: > +EXPORT_SYMBOL_GPL(clear_all_vm_events); What module uses this function?

[PATCH] mm: introduce clear all vm events counters

2021-03-01 Thread Pintu Kumar
At times there is a need to regularly monitor vm counters while we reproduce some issue, or it could be as simple as gathering some system statistics when we run some scenario and every time we like to start from beginning. The current steps are: Dump /proc/vmstat Run some scenario Dump /proc/vmsta