Re: [PATCH] BUG: Turnoff khugepaged before start tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 17, 2010 at 06:40:05PM -0400, jzupka wrote:
> ---
>  client/tests/kvm/tests/ksm_overcommit.py |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)


Looks good for me. Except some trailing whitespace :)

After disable transparent hugepage, ksm_parallel can pass.

ksm_serial always fail of 'copy_files_to failed', but single file transfer test can pass.
Lucas, do you touch this kind of problem ?

 
> diff --git a/client/tests/kvm/tests/ksm_overcommit.py b/client/tests/kvm/tests/ksm_overcommit.py
> index 2b49a65..b8bee42 100644
> --- a/client/tests/kvm/tests/ksm_overcommit.py
> +++ b/client/tests/kvm/tests/ksm_overcommit.py
> @@ -367,11 +367,16 @@ def run_ksm_overcommit(test, params, env):
>  
>      # Main test code
>      logging.info("Starting phase 0: Initialization")
> -    new_ksm = False
> +    new_ksm = False 
>      if (os.path.exists("/sys/kernel/mm/ksm/run")):
>          utils.run("echo 50 > /sys/kernel/mm/ksm/sleep_millisecs")
>          utils.run("echo 5000 > /sys/kernel/mm/ksm/pages_to_scan")
>          utils.run("echo 1 > /sys/kernel/mm/ksm/run")
> +        
> +        if (os.path.exists("/sys/kernel/mm/transparent_hugepage/enabled")):
> +            utils.run("echo 'never' > /sys/kernel/mm/transparent_hugepage/enabled ")
> +        if (os.path.exists("/sys/kernel/mm/redhat_transparent_hugepage/enabled")):
> +            utils.run("echo 'never' > /sys/kernel/mm/redhat_transparent_hugepage/enabled ")
>          new_ksm = True
>      else:
>          try:
> -- 
> 1.6.5.2
> 
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux