Re: [PATCH 15/18] mm: memcontrol: make swap tracking an integral part of memory control

From: Alex Shi
Date: Wed Apr 22 2020 - 09:44:32 EST




å 2020/4/22 äå9:30, Johannes Weiner åé:
>> Also as to the RSS account name change, I don't know if it's good to polish
>> them in docs.
> I didn't actually change anything user-visible, just the internal name
> of the counters:
>
> static const unsigned int memcg1_stats[] = {
> NR_FILE_PAGES, /* was MEMCG_CACHE */
> NR_ANON_MAPPED, /* was MEMCG_RSS */
> NR_ANON_THPS, /* was MEMCG_RSS_HUGE */
> NR_SHMEM,
> NR_FILE_MAPPED,
> NR_FILE_DIRTY,
> NR_WRITEBACK,
> MEMCG_SWAP,
> };
>
> static const char *const memcg1_stat_names[] = {
> "cache",
> "rss",
> "rss_huge",
> "shmem",
> "mapped_file",
> "dirty",
> "writeback",
> "swap",
> };
>
> Or did you refer to something else?

With about 'was MEMCG_RSS' etc. I believe curious user would know where
the concept from. :)

Thanks for this comments!
Aelx