On Mon, Aug 02, 2010 at 12:31:35PM +0530, Nikunj A. Dadhania wrote: > On Mon, 2 Aug 2010 11:47:20 +0530, Balbir Singh <[email protected]> > wrote: > > * Nikunj A. Dadhania <[email protected]> [2010-08-02 11:12:11]: > > > > > To do: > > > - A clean patch for libvirt to switch to libcgroup. > > > - Application to be provided a single handle which can be used for > > > further > > > cgroup API calls. > > > > > > > I think this is a good step forward, as a first step, could we list > > > > 1. cgroup API's being used by libvirt and lxc and systemd - look at > > them for abstractions to create > > Current implementation of libvirt is using following cgroup functionality: > 1) to create cgroup directory > a) Creating libvirt or libvirt-`username` > b) Creating driver cgroup libvirt/lxc or libvirt/qemu > c) Creating cgroup per VM in the respective driver > > 2) to add task to cgroup > 3) to set memory limit > 4) to read current memory usage > 5) to allow/deny devices > 6) to set/get CPU Shares > 7) to get CPU usage > 8) to set/get freezer state > 9) to remove cgroup directory
The libvirt internal APIs are here: http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/util/cgroup.h;hb=HEAD Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
