[Devel] ctop: a tool like top for cgroup

KAMEZAWA Hiroyuki kamezawa.hiroyu at jp.fujitsu.com
Tue Feb 24 19:23:00 PST 2009


Hi,

Attached files are script to show information on console by curses.
written in ruby.
 - ctop.rb
 - cgroup.rb

How to use
 0. mount some cgroup (cpu,memory,cpuacct,cpuset subsystems are supported)
 1. put ctop.rb and cgroup.rb to a directory.
 2. ruby ctop.rb
 3. read help (No Manuals..)

I wrote this only for myself but someone may find this useful.
Because the code is dirty and comments in codes is not enough, this is not
for review. Just for sharing. (But you can rewrite this for your own freely)

cpu,memory,cpuacct,cpuset subsystems are supported.

Any feedback is welcome. 

Thanks
-Kame
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctop.rb
Type: application/octet-stream
Size: 18086 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/devel/attachments/20090225/97397c30/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgroup.rb
Type: application/octet-stream
Size: 10512 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/devel/attachments/20090225/97397c30/attachment-0003.obj>
-------------- next part --------------
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers


More information about the Devel mailing list