Skip to contentSkip to conversation

cgroups aware /proc/loadavg

DISCUSSION Marian Marinov 1 participant 1 message Jan 11, 2014 cgroup

lore
Share & tools
lore
#0 lore raw

Hello,

I'm working on making /proc/loadavg cgroup aware.

I have already done so with cpuinfo, sched, interrupts and partially meminfo:
https://github.com/1HLtd/linux/tree/cgroup-aware-proc

However patching the loadavg is not a trivial task and I need some assistance.

After much reading I'm wondering, if it would be easier to patch the cpu or cpuacct cgroups to include an array in which we can hold a per cgroup avenrun array and use that information in the /proc/loadavg when it is displayed to a process that is not in the base cgroup.

Best regards,
Marian

Signature · 5 lines
Marian Marinov
Founder & CEO of 1H Ltd.
Jabber/GTalk: hackman-/[email protected]
ICQ: 7556201
Mobile: +359 886 660 270