Re: [libvirt] [PATCH] qemu: Set swap_hard_limit before hard_limit

2012-07-23 Thread Martin Kletzander
On 07/12/2012 11:37 AM, Osier Yang wrote: > On 2012年07月12日 17:19, Hu Tao wrote: >> On Thu, Jul 12, 2012 at 05:03:52PM +0800, Osier Yang wrote: >>> Setting hard_limit larger than previous swap_hard_limit must fail, >>> it's not that good if one wants to change the swap_hard_limit >>> and hard_limit

[libvirt] [PATCH] qemu: Set swap_hard_limit before hard_limit

2012-07-12 Thread Osier Yang
Setting hard_limit larger than previous swap_hard_limit must fail, it's not that good if one wants to change the swap_hard_limit and hard_limit together. E.g. % virsh memtune rhel6 hard_limit : 100 soft_limit : 100 swap_hard_limit: 100 % virsh memtune rhel6 --hard-limit 12

Re: [libvirt] [PATCH] qemu: Set swap_hard_limit before hard_limit

2012-07-12 Thread Osier Yang
On 2012年07月12日 17:19, Hu Tao wrote: On Thu, Jul 12, 2012 at 05:03:52PM +0800, Osier Yang wrote: Setting hard_limit larger than previous swap_hard_limit must fail, it's not that good if one wants to change the swap_hard_limit and hard_limit together. E.g. % virsh memtune rhel6 hard_limit : 1

Re: [libvirt] [PATCH] qemu: Set swap_hard_limit before hard_limit

2012-07-12 Thread Hu Tao
On Thu, Jul 12, 2012 at 05:03:52PM +0800, Osier Yang wrote: > Setting hard_limit larger than previous swap_hard_limit must fail, > it's not that good if one wants to change the swap_hard_limit > and hard_limit together. E.g. > > % virsh memtune rhel6 > hard_limit : 100 > soft_limit : 1