Re: [External] Re: [PATCH] mm: memcontrol: optimize per-lruvec stats counter memory usage

2020-12-07 Thread Muchun Song
On Mon, Dec 7, 2020 at 11:09 PM Michal Hocko wrote: > > On Mon 07-12-20 20:56:58, Muchun Song wrote: > > On Mon, Dec 7, 2020 at 8:36 PM Michal Hocko wrote: > > > > > > On Sun 06-12-20 16:56:39, Muchun Song wrote: > > > > The vmstat threshold is 32 (MEMCG_CHARGE_BATCH), so the type of s32 > > > >

Re: [External] Re: [PATCH] mm: memcontrol: optimize per-lruvec stats counter memory usage

2020-12-07 Thread Michal Hocko
On Mon 07-12-20 20:56:58, Muchun Song wrote: > On Mon, Dec 7, 2020 at 8:36 PM Michal Hocko wrote: > > > > On Sun 06-12-20 16:56:39, Muchun Song wrote: > > > The vmstat threshold is 32 (MEMCG_CHARGE_BATCH), so the type of s32 > > > of lruvec_stat_cpu is enough. And introduce struct per_cpu_lruvec_s

Re: [External] Re: [PATCH] mm: memcontrol: optimize per-lruvec stats counter memory usage

2020-12-07 Thread Muchun Song
On Mon, Dec 7, 2020 at 8:36 PM Michal Hocko wrote: > > On Sun 06-12-20 16:56:39, Muchun Song wrote: > > The vmstat threshold is 32 (MEMCG_CHARGE_BATCH), so the type of s32 > > of lruvec_stat_cpu is enough. And introduce struct per_cpu_lruvec_stat > > to optimize memory usage. > > How much savings