Re: [libvirt] [PATCH] manage number of virtual CPUs

2008-08-20 Thread Daniel Veillard
On Thu, Aug 14, 2008 at 06:31:31PM +0400, Evgeniy Sokolov wrote: > >> On Wed, Aug 13, 2008 at 05:04:45PM +0400, Evgeniy Sokolov wrote: >>> +static int openvzGetMaxVCPUs(virConnectPtr conn, const char *type) { >>> +if (STRCASEEQ(type, "openvz")) >>> +return 4096; //OpenVZ has no limitati

Re: [libvirt] [PATCH] manage number of virtual CPUs

2008-08-14 Thread Evgeniy Sokolov
On Wed, Aug 13, 2008 at 05:04:45PM +0400, Evgeniy Sokolov wrote: +static int openvzGetMaxVCPUs(virConnectPtr conn, const char *type) { +if (STRCASEEQ(type, "openvz")) +return 4096; //OpenVZ has no limitation This should be 1024 since that's the max CPUs exposed by the kernel to us

Re: [libvirt] [PATCH] manage number of virtual CPUs

2008-08-14 Thread Daniel P. Berrange
On Wed, Aug 13, 2008 at 05:04:45PM +0400, Evgeniy Sokolov wrote: > +static int openvzGetMaxVCPUs(virConnectPtr conn, const char *type) { > +if (STRCASEEQ(type, "openvz")) > +return 4096; //OpenVZ has no limitation This should be 1024 since that's the max CPUs exposed by the kernel to u

[libvirt] [PATCH] manage number of virtual CPUs

2008-08-13 Thread Evgeniy Sokolov
OpenVZ containers use all CPUs available in system by default. Limitations may be caused only by Linux kernel limitation. There is way to artificially limit number of CPUs. patch add cpu management functionality to OpenVZ driver. Index: openvz_conf.c =