Re: [External] Re: [RESEND PATCH v2 09/12] mm: memcontrol: convert vmstat slab counters to bytes

2020-12-07 Thread Muchun Song
On Tue, Dec 8, 2020 at 3:46 AM Roman Gushchin wrote: > > On Sun, Dec 06, 2020 at 06:14:48PM +0800, Muchun Song wrote: > > the global and per-node counters are stored in pages, however memcg > > and lruvec counters are stored in bytes. This scheme looks weird. > > So convert all vmstat slab counter

Re: [RESEND PATCH v2 09/12] mm: memcontrol: convert vmstat slab counters to bytes

2020-12-07 Thread Roman Gushchin
On Mon, Dec 07, 2020 at 11:46:22AM -0800, Roman Gushchin wrote: > On Sun, Dec 06, 2020 at 06:14:48PM +0800, Muchun Song wrote: > > the global and per-node counters are stored in pages, however memcg > > and lruvec counters are stored in bytes. This scheme looks weird. > > So convert all vmstat slab

Re: [RESEND PATCH v2 09/12] mm: memcontrol: convert vmstat slab counters to bytes

2020-12-07 Thread Roman Gushchin
On Sun, Dec 06, 2020 at 06:14:48PM +0800, Muchun Song wrote: > the global and per-node counters are stored in pages, however memcg > and lruvec counters are stored in bytes. This scheme looks weird. > So convert all vmstat slab counters to bytes. There is a reason for this weird scheme: percpu cac

[RESEND PATCH v2 09/12] mm: memcontrol: convert vmstat slab counters to bytes

2020-12-06 Thread Muchun Song
the global and per-node counters are stored in pages, however memcg and lruvec counters are stored in bytes. This scheme looks weird. So convert all vmstat slab counters to bytes. Signed-off-by: Muchun Song --- include/linux/vmstat.h | 17 ++--- mm/vmstat.c| 21 ++

[PATCH v2 09/12] mm: memcontrol: convert vmstat slab counters to bytes

2020-12-06 Thread Muchun Song
the global and per-node counters are stored in pages, however memcg and lruvec counters are stored in bytes. This scheme looks weird. So convert all vmstat slab counters to bytes. Signed-off-by: Muchun Song --- include/linux/vmstat.h | 17 ++--- mm/vmstat.c| 21 ++