Re: [PATCH v2 5/6] mm: flush memcg percpu stats and events before releasing

2019-03-13 Thread Roman Gushchin
On Wed, Mar 13, 2019 at 12:00:17PM -0400, Johannes Weiner wrote: > On Tue, Mar 12, 2019 at 03:34:02PM -0700, Roman Gushchin wrote: > > Flush percpu stats and events data to corresponding before releasing > > percpu memory. > > > > Although per-cpu stats are never exactly precise, dropping them on

Re: [PATCH v2 5/6] mm: flush memcg percpu stats and events before releasing

2019-03-13 Thread Johannes Weiner
On Tue, Mar 12, 2019 at 03:34:02PM -0700, Roman Gushchin wrote: > Flush percpu stats and events data to corresponding before releasing > percpu memory. > > Although per-cpu stats are never exactly precise, dropping them on > floor regularly may lead to an accumulation of an error. So, it's > safer

[PATCH v2 5/6] mm: flush memcg percpu stats and events before releasing

2019-03-12 Thread Roman Gushchin
Flush percpu stats and events data to corresponding before releasing percpu memory. Although per-cpu stats are never exactly precise, dropping them on floor regularly may lead to an accumulation of an error. So, it's safer to flush them before releasing. To minimize the number of atomic updates,