From: Glauber Costa <glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
To: Kamezawa Hiroyuki
<kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
Cc: David Rientjes <rientjes-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
mhocko-AlSwsSmVLrQ@public.gmane.org,
linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org,
hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org,
cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
KOSAKI Motohiro
<kosaki.motohiro-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org,
containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: [PATCH] meminfo: show /proc/meminfo base on container's memcg
Date: Thu, 31 May 2012 12:59:33 +0400 [thread overview]
Message-ID: <4FC732F5.6080706@parallels.com> (raw)
In-Reply-To: <4FC73110.6010107-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
On 05/31/2012 12:51 PM, Kamezawa Hiroyuki wrote:
>> One think to keep in mind: A file in memcg does not need to follow the
>> same format
>> of /proc/meminfo so we can bind mount. We should be able to
>> reconstruct that in
>> userspace based on information available from the kernel. You can
>> even collect that
>> from multiple locations, and *then* you bind mount.
>
> I'm sorry I couldn't fully understand. Could you explain more ?
> Do you mean
> - bind mount memory cgroup directory into the container for exporting
> information
> - Some user-space apps, FUSE-procfs or some, can provide enough
> information
>
Implementation details aside, the idea is to have something like FUSE to
hook the read(), and then construct the information it needs to present
in the proper format.
Alternatively, for files that doesn't change a lot, you can create a
file /container-storage-area/my_copy_of_meminfo at container creation,
and bind mount *that* file.
There is no reason to bind mount a kernel-provided file directly.
next prev parent reply other threads:[~2012-05-31 8:59 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1338260214-21919-1-git-send-email-gaofeng@cn.fujitsu.com>
[not found] ` <alpine.DEB.2.00.1205301433490.9716@chino.kir.corp.google.com>
[not found] ` <alpine.DEB.2.00.1205301433490.9716-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2012-05-30 23:20 ` [PATCH] meminfo: show /proc/meminfo base on container's memcg Kirill A. Shutemov
2012-05-31 0:08 ` Kamezawa Hiroyuki
[not found] ` <4FC6B68C.2070703-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2012-05-31 0:22 ` KOSAKI Motohiro
[not found] ` <CAHGf_=pFbsy4FO_UNu6O1-KyTd6O=pkmR8=3EGuZB5Reu3Vb9w@mail.gmail.com>
[not found] ` <CAHGf_=pFbsy4FO_UNu6O1-KyTd6O=pkmR8=3EGuZB5Reu3Vb9w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-05-31 0:33 ` Kamezawa Hiroyuki
[not found] ` <4FC6BC3E.5010807@jp.fujitsu.com>
[not found] ` <4FC6BC3E.5010807-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2012-05-31 0:44 ` David Rientjes
[not found] ` <alpine.DEB.2.00.1205301737530.25774@chino.kir.corp.google.com>
[not found] ` <alpine.DEB.2.00.1205301737530.25774-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2012-05-31 0:53 ` Kamezawa Hiroyuki
[not found] ` <4FC6C111.2060108@jp.fujitsu.com>
[not found] ` <4FC6C111.2060108-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2012-05-31 1:31 ` David Rientjes
[not found] ` <alpine.DEB.2.00.1205301831270.25774-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2012-05-31 2:33 ` Kamezawa Hiroyuki
[not found] ` <4FC6D881.4090706-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2012-05-31 5:02 ` David Rientjes
[not found] ` <alpine.DEB.2.00.1205302156090.25774@chino.kir.corp.google.com>
[not found] ` <alpine.DEB.2.00.1205302156090.25774-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2012-05-31 5:36 ` Kamezawa Hiroyuki
[not found] ` <4FC70355.70805@jp.fujitsu.com>
[not found] ` <4FC70355.70805-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2012-05-31 6:17 ` David Rientjes
[not found] ` <alpine.DEB.2.00.1205302314190.25774-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2012-05-31 6:23 ` KOSAKI Motohiro
[not found] ` <4FC70E5E.1010003-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-05-31 6:28 ` David Rientjes
[not found] ` <alpine.DEB.2.00.1205302325500.25774-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2012-05-31 6:37 ` KOSAKI Motohiro
[not found] ` <4FC711A5.4090003-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-05-31 6:56 ` David Rientjes
[not found] ` <alpine.DEB.2.00.1205302351510.25774-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2012-05-31 7:09 ` KOSAKI Motohiro
[not found] ` <CAHGf_=qVDVT6VW2j9gE3bQKwizW24iivrDryiCKoxVu4m_fWKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-05-31 7:35 ` David Rientjes
[not found] ` <alpine.DEB.2.00.1205310028420.8864@chino.kir.corp.google.com>
[not found] ` <alpine.DEB.2.00.1205310028420.8864-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2012-05-31 7:42 ` KOSAKI Motohiro
[not found] ` <4FC720EE.3010307@gmail.com>
[not found] ` <4FC720EE.3010307-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-05-31 7:57 ` Johannes Weiner
2012-05-31 7:58 ` Gao feng
[not found] ` <4FC724B1.70508@cn.fujitsu.com>
[not found] ` <4FC724B1.70508-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-05-31 8:32 ` Glauber Costa
[not found] ` <4FC72CA4.6080708@parallels.com>
[not found] ` <4FC72CA4.6080708-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-05-31 8:51 ` Kamezawa Hiroyuki
2012-05-31 8:55 ` Gao feng
[not found] ` <4FC73203.2070009@cn.fujitsu.com>
[not found] ` <4FC73203.2070009-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-05-31 8:56 ` Glauber Costa
[not found] ` <4FC73110.6010107@jp.fujitsu.com>
[not found] ` <4FC73110.6010107-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2012-05-31 8:59 ` Glauber Costa [this message]
2012-05-31 7:07 ` Kamezawa Hiroyuki
[not found] ` <4FC718BA.8060608@jp.fujitsu.com>
[not found] ` <4FC718BA.8060608-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2012-05-31 7:23 ` KOSAKI Motohiro
2012-05-31 8:29 ` Glauber Costa
[not found] ` <20120530232004.GA15423@shutemov.name>
[not found] ` <20120530232004.GA15423-oKw7cIdHH8eLwutG50LtGA@public.gmane.org>
2012-05-31 0:35 ` David Rientjes
[not found] ` <1338260214-21919-1-git-send-email-gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-05-29 8:24 ` Glauber Costa
2012-05-30 21:38 ` David Rientjes
2012-06-07 23:18 ` Zhu Yanhai
2012-05-29 2:56 Gao feng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FC732F5.6080706@parallels.com \
--to=glommer-bzqdu9zft3wakbo8gow8eq@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
--cc=kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org \
--cc=kosaki.motohiro-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org \
--cc=mhocko-AlSwsSmVLrQ@public.gmane.org \
--cc=rientjes-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox