Comment 3 for bug 1166730

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1166730] [NEW] lxc not modified memory.limit_in_bytes

Thanks for your question. This is definately a FAQ.

free reports information it finds in /proc/meminfo. /proc/meminfo does
not reflect cgroup-imposed restrictions.

There is a fuse-based proc overlay filesystem you can use which should
offer a filtered /proc/meminfo ( see
http://sourceforge.net/mailarchive/forum.php?viewmonth=201002&viewday=&forum_name=lxc-users&style=nested
) however that isn't really supported.

Upstream kernel developers have so far rejected the idea of filtering
the /proc file results based on cgroup limits. It is recommended
to update the userspace applications to look at cgroup limits instead.

I will mark this bug ad affecting the kernel and mark it wishlist so
that others looking for this info can find it.

 importance: wishlist
 status: confirmed
 affects: linux
 importance: wishlist