LXC-Web-Panel icon indicating copy to clipboard operation
LXC-Web-Panel copied to clipboard

Show CPU usage by containers

Open sergey-dryabzhinsky opened this issue 12 years ago • 3 comments

We can successfully read CPU usage from cgroup cpuacct and show it:

initial commit: 9f2cd598c5927493fb0fcb6bf1ab931092ce562a fix: b070a221d32c1296e8d740c8b81f0fe2eb330664 some html part: 719273a0e1f066f680614fb377423c09ac58fcfa final fix: e47bc570dd4904d1199101c77f7dce718c98fcc0

In the end we read files fast and not call commands. It's solve some my LXC+LVM problems.

Sorry for messing with commits.

sergey-dryabzhinsky avatar Jul 15 '13 20:07 sergey-dryabzhinsky

Please wait. I'll fix some performance issues.

sergey-dryabzhinsky avatar Jul 16 '13 16:07 sergey-dryabzhinsky

Ok, thanks for this feature :+1:

ElieDeloumeau avatar Jul 16 '13 17:07 ElieDeloumeau

  1. Fixed overwait while calculate containers CPU usage: b7750bc630670b154406e38eef49208804beaa76
  2. Don't wait them on page load: f8902f988acc8f94da4aea956872feeb9d94492b
  3. And finally - don't check every container for stopped state - it's useless here: 141ff1daaf1cb6687a589a1b7178f0b0d1ce06e3

sergey-dryabzhinsky avatar Jul 16 '13 20:07 sergey-dryabzhinsky