Hi all, I have been trying to set cpu_exclusive flag. Now I can do it using "echo". I want to know is there any other way (an API) to set this flag? Is it possible to set this flag using API? Thanks. ~Peeyush Gupta
Daniel P. Berrange
2013-Jul-24 11:05 UTC
Re: [libvirt-users] API to set cpuset.cpu_exclusive flag
On Wed, Jul 24, 2013 at 06:59:29PM +0800, Peeyush Gupta wrote:> Hi all, > > I have been trying to set cpu_exclusive flag. Now I can do it > using "echo". I want to know is there any other way (an API) > to set this flag? Is it possible to set this flag using API?There's no API in libvirt for setting this, and I don't really see the point in this cgroup setting at all. It doesn't offer any critical functionality that you can't achieve by just explicitly configuring cgroups to not overlap. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Peeyush Gupta
2013-Jul-24 11:44 UTC
Re: [libvirt-users] API to set cpuset.cpu_exclusive flag
I guess it could be helpful. I mean I wont have to do it through virsh/echo/explicitly everytime. If I have an API for cgroup settings, I can do it easily through my code. Thanks. ~Peeyush Gupta ________________________________ From: Daniel P. Berrange <berrange@redhat.com> To: Peeyush Gupta <gpeeyush@ymail.com> Cc: "libvirt-users@redhat.com" <libvirt-users@redhat.com> Sent: Wednesday, 24 July 2013 4:35 PM Subject: Re: [libvirt-users] API to set cpuset.cpu_exclusive flag On Wed, Jul 24, 2013 at 06:59:29PM +0800, Peeyush Gupta wrote:> Hi all, > > I have been trying to set cpu_exclusive flag. Now I can do it > using "echo". I want to know is there any other way (an API) > to set this flag? Is it possible to set this flag using API?There's no API in libvirt for setting this, and I don't really see the point in this cgroup setting at all. It doesn't offer any critical functionality that you can't achieve by just explicitly configuring cgroups to not overlap. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|