[lxc-devel] RFC: cgroups aware proc
Marian Marinov
mm at yuhu.biz
Sat Jan 4 04:28:57 UTC 2014
Happy new year guys.
I need to have /proc cgroups aware, as I want to have LXC containers that see only the resources that are given to them.
In order to do that I had to patch the kernel. I decided to start with cpuinfo, stat and interrupts and then continue
with meminfo and loadavg.
I managed to patch the Kernel (linux 3.12.0) and make /proc/cpuinfo, /proc/stat and /proc/interrupts be cgroups aware.
Attached are the patches that make the necessary changes.
The change for /proc/cpuinfo and /proc/interrupts is currently done only for x86 arch, but I will patch the rest of the
architectures if the style of the patches is acceptable.
Tomorrow I will check if the patches apply and build with the latest kernel.
Best regards,
Marian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-arch-x86-kernel-cpu-proc.c-Make-proc-cpuinfo-display.patch
Type: text/x-patch
Size: 1546 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140104/71ba9410/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-arch-x86-kernel-irq.c-Made-proc-interrupts-to-be-cgr.patch
Type: text/x-patch
Size: 5846 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140104/71ba9410/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fs-proc-stat.c-kernel-sched-stats.c-List-only-the-CP.patch
Type: text/x-patch
Size: 2759 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140104/71ba9410/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-arch-x86-kernel-cpu-proc.c-Added-Kconfig-option-hand.patch
Type: text/x-patch
Size: 1382 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140104/71ba9410/attachment-0003.bin>
More information about the lxc-devel
mailing list