[lxc-devel] [PATCH] procfs in containers based on fuse
Zhou Kang(研究院)
kangzhou at sohu-inc.com
Fri Sep 12 09:15:39 UTC 2014
Hi
This patch is for procfs in per container. It is based on Daniel Lezcano’s code which use fsue. ( https://github.com/hallyn/procfs ), but we made the following improvements.
l The fuse_main is started by lxc_start, so it’s easier to manage the container
l We mount the /proc path in /tmp instead of rootfs, the path is uniq.
l We rewrite the following files: meminfo, stat, cpuinfo, sysrq-trigger. The command ‘top’ can show the right info in the container.
l /proc/ sysrq-trigger is unwritable.
We tested this patch on hundreds of containers for a long time, it had worked very well.
________________________________
Kang Zhou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140912/7af204bf/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: procfs.patch
Type: application/octet-stream
Size: 146295 bytes
Desc: procfs.patch
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140912/7af204bf/attachment-0001.obj>
More information about the lxc-devel
mailing list