[Devel] Re: [lxc-devel] Memory Resources
KAMEZAWA Hiroyuki
kamezawa.hiroyu at jp.fujitsu.com
Tue Aug 25 18:43:12 PDT 2009
On Mon, 24 Aug 2009 16:11:15 +0200
Daniel Lezcano <daniel.lezcano at free.fr> wrote:
>
>
> [ snip ]
> >>> i think that /proc/meminfo should be mounted after /proc . why? i think
> >>> that, because mounting /proc may override /proc/meminfo
> >>> Am I right? :)
> >>>
> >>>
> >>>
> >> Ha ! haha ! arrgh ! no way ! You are right :/
> >>
> >>
> >
> > Hehe ;)
> >
> >
> >> In the case of application container, lxc mounts /proc but in the case of
> >> system container it is the system who do that so after the /proc/meminfo has
> >> been mounted.
> >>
> >> Maybe we can look at modifying fs/proc/meminfo.c instead. Let me do a small
> >> patch for the kernel...
> >>
> >>
> >>
> > Okey. I am waiting for your patch :)
>
> Quick and dirty patch but at least working. It is no synced on the
> latest kernel version.
> I do not really like to touch fs/proc/meminfo.c but it's an example here.
>
I'll strongly Nack to this.
plz find a way to
ln -s /path_to_cgroup/memory.meminfo /mycontainer/meminfo
or something which doesn't affect users who don't use namespaces.
Thanks,
-Kame
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list