Linux cgroups (control groups) allow limiting and accounting for resources on a system, including CPU, memory, and block I/O.
2
votes
2answers
259 views
Measuring CPU and Memory per user to distribute “cost” of a server
How should I implement approximately correct per-user monitoring on a server? I want a way to split the cost of a server between the users based on their usage. On newer machines (RHEL6) I would use ...
2
votes
0answers
129 views
cpu time measurement with wait4 vs. cpuacct cgroup
I want to start a process and measure the cpu time (user+sys) it needs until it terminates.
I know I can use the wait4 system call, which returns a struct with user and system time (I use the sum of ...
1
vote
0answers
43 views
cgroups: blkio.weight doesn't seem to have the expected effect
I've got 2 LXC containers with these cgroup settings:
lxc.cgroup.blkio.weight = 200
lxc.cgroup.cpu.shares = 200
and
lxc.cgroup.blkio.weight = 800
lxc.cgroup.cpu.shares = 800
I have verified in ...
1
vote
0answers
80 views
cgroups, cpuset changing the cpuset of some processes fail
I am trying to "reserve" a core on a CPU for performance measurement. I have mounted a cpuset cgroups vfs. I created two subgroups like this:
/cpuset.cpu_exclusive 1
/cpuset.cpus 0-3
...
1
vote
0answers
56 views
reserve resources for admin console
My servers is often almost DOS'ed by crawlers. I have not yet managed to figure out what exactly is responsible for the high load. CPU, memory and disk IO are not at the limit (could be network ...