From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-f197.google.com (mail-ua0-f197.google.com [209.85.217.197]) by kanga.kvack.org (Postfix) with ESMTP id 5EC006B0008 for ; Thu, 26 Jul 2018 02:41:37 -0400 (EDT) Received: by mail-ua0-f197.google.com with SMTP id c4-v6so157671uan.21 for ; Wed, 25 Jul 2018 23:41:37 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id q16-v6sor160181uaq.127.2018.07.25.23.41.35 for (Google Transport Security); Wed, 25 Jul 2018 23:41:36 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20180717212307.d6803a3b0bbfeb32479c1e26@linux-foundation.org> <20180718104230.GC1431@dhcp22.suse.cz> From: Bruce Merry Date: Thu, 26 Jul 2018 08:41:35 +0200 Message-ID: Subject: Re: Showing /sys/fs/cgroup/memory/memory.stat very slow on some machines Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: "Singh, Balbir" Cc: Shakeel Butt , Michal Hocko , Andrew Morton , LKML , Linux MM , Johannes Weiner , Vladimir Davydov On 26 July 2018 at 02:55, Singh, Balbir wrote: > Do you by any chance have use_hierarch=1? memcg_stat_show should just rely on counters inside the memory cgroup and the the LRU sizes for each node. Yes, /sys/fs/cgroup/memory/memory.use_hierarchy is 1. I assume systemd is doing that. Bruce -- Bruce Merry Senior Science Processing Developer SKA South Africa