[Devel] [PATCH vz8.4 3/4] ve/memcg: Cleanup /proc/vmstat virtualization
Kirill Tkhai
ktkhai at virtuozzo.com
Fri Jul 23 18:48:36 MSK 2021
On 22.07.2021 17:23, Konstantin Khorenko wrote:
> To_merge: ("5f48326db336 ve/memcg: Virtualize /proc/vmstat view inside CT")
>
> https://jira.sw.ru/browse/PSBM-131992
>
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
Reviewed-by: Kirill Tkhai <ktkhai at virtuozzo.com>
> ---
> mm/memcontrol.c | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/mm/memcontrol.c b/mm/memcontrol.c
> index c1e23f0bbe91..9c966e8ece3e 100644
> --- a/mm/memcontrol.c
> +++ b/mm/memcontrol.c
> @@ -4191,9 +4191,7 @@ void mem_cgroup_fill_vmstat(struct mem_cgroup *memcg, unsigned long *stats)
> NR_VM_NODE_STAT_ITEMS +
> NR_VM_WRITEBACK_STAT_ITEMS;
>
> -
> -
> - zone_stats[NR_FREE_PAGES] = memory > limit ? 0 : limit- memory;
> + zone_stats[NR_FREE_PAGES] = memory > limit ? 0 : limit - memory;
>
> for (i = LRU_BASE; i < NR_LRU_LISTS; i++) {
> node_stats[NR_LRU_BASE + i] =
> @@ -4201,9 +4199,9 @@ void mem_cgroup_fill_vmstat(struct mem_cgroup *memcg, unsigned long *stats)
> }
>
> node_stats[NR_ANON_MAPPED] = node_stats[NR_ACTIVE_ANON] +
> - node_stats[NR_INACTIVE_ANON];
> - node_stats[NR_FILE_PAGES] = node_stats[NR_ACTIVE_FILE] +
> - node_stats[NR_INACTIVE_FILE];
> + node_stats[NR_INACTIVE_ANON];
> + node_stats[NR_FILE_PAGES] = node_stats[NR_ACTIVE_FILE] +
> + node_stats[NR_INACTIVE_FILE];
>
> node_stats[NR_SLAB_RECLAIMABLE_B] = mem_page_state_recursive(
> memcg, NR_SLAB_RECLAIMABLE_B);
>
More information about the Devel
mailing list