Re: [libvirt] [PATCH v4 12/13] Adding memtune command to virsh tool

2010-10-19 Thread Eric Blake
On 10/08/2010 06:16 AM, Nikunj A. Dadhania wrote: +static int +cmdMemtune(vshControl *ctl, const vshCmd *cmd) +{ +virDomainPtr dom; +int hard_limit, soft_limit, swap_hard_limit; This is inherently limited to 32 bits. +hard_limit = vshCommandOptInt(cmd, VIR_DOMAIN_MEMORY_HARD_LIMI

Re: [libvirt] [PATCH v4 12/13] Adding memtune command to virsh tool

2010-10-12 Thread Daniel Veillard
On Fri, Oct 08, 2010 at 05:46:51PM +0530, Nikunj A. Dadhania wrote: > From: Nikunj A. Dadhania > > The command helps to control the memory/swap parameters for the system, for > eg. hard_limit (max memory the vm can use), soft_limit (limit during memory > contention), swap_hard_limit(max swap the

[libvirt] [PATCH v4 12/13] Adding memtune command to virsh tool

2010-10-08 Thread Nikunj A. Dadhania
From: Nikunj A. Dadhania The command helps to control the memory/swap parameters for the system, for eg. hard_limit (max memory the vm can use), soft_limit (limit during memory contention), swap_hard_limit(max swap the vm can use) v4: + virDomainSet/GetMemoryParameters prototype change + Move ex