[PATCH 2/2] KVM test: Fix hugepages variant post command

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

 



First try to umount the large pages directory, then,
if that succeeds, free the used large pages by
writing 0 to proc/sys/vm/nr_hugepages.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@xxxxxxxxxx>
---
 client/tests/kvm/tests_base.cfg.sample |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample
index fb4afec..e5520e4 100644
--- a/client/tests/kvm/tests_base.cfg.sample
+++ b/client/tests/kvm/tests_base.cfg.sample
@@ -1471,7 +1471,7 @@ variants:
     - @smallpages:
     - hugepages:
         pre_command += " scripts/hugepage.py /mnt/kvm_hugepage;"
-        post_command += " echo 0 > /proc/sys/vm/nr_hugepages; umount /mnt/kvm_hugepage;"
+        post_command += " umount /mnt/kvm_hugepage && echo 0 > /proc/sys/vm/nr_hugepages;"
         extra_params += " -mem-path /mnt/kvm_hugepage"
 
 
-- 
1.7.1.1

--
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