hotplug_mem.cfg 3.6 KB
Newer Older
X
Xu Tian 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
# Notes:
#    Before start testing, please ensure systemd is your guest OS
#    is support memory hotplug;
- hotplug_memory:
    type = hotplug_mem
    slots_mem = 4
    size_mem = 1G
    maxmem_mem = 32G
    mem_devs = mem1
    login_timeout = 600
    no Host_RHEL.6
    no RHEL.5 RHEL.6
    no Windows..i386
    no WinXP Win2000 Win2003 WinVista
    variants numa_nodes:
        - one:
            guest_numa_nodes = "node0"
            del numa_mem
            del numa_cpus
            del numa_nodeid
            only after
            only reboot
        - two:
            guest_numa_nodes = "node0 node1"
            del numa_mem
            del numa_cpus
            numa_nodeid = 0
            node_dimm_mem2 = 0
            node_dimm_mem1 = 1
            numa_nodeid_node0 = 0
            numa_nodeid_node1 = 1
    variants:
        - policy_default:
            policy_mem = default
        - policy_bind:
            policy_mem = bind
            host-nodes = 0
        - policy_interleave:
            policy_mem = interleave
            host-nodes = 0
            only reboot
            only after
        - policy_preferred:
            policy_mem = preferred
            host-nodes = 0
            only reboot
            only after
        - no_policy:
            del policy_mem
            only reboot
            only after
    variants:
        - backend_ram:
            backend_mem = memory-backend-ram
        - backend_file:
            # Notes:
            #     Before start testing, please ensure your host
            # kernel has support hugpage and have enough memory
            # to create guest memory
            backend_mem = memory-backend-file
            setup_hugepages = yes
            # mem path should be the hugpage path
            mem-path = /mnt/kvm_hugepage
            # default pagesize is 2M, 2G guest memory need to allocate
            # in hugepage, so page nubmer is:
            #    target_hugepages = size_mem / page_size + 10
            target_hugepages = 1034
            pre_command = "echo 3 > /proc/sys/vm/drop_caches"
            pre_command_noncritical = yes
    variants operation:
        - unplug:
            no Windows
            variants:
                - buildin_memory:
                    mem_devs += " buildin"
                    target_mem = "buildin"
                - pluged_memory:
                    plug_mem = "plug"
                    target_mem = "plug"
                - unused_memory:
                    target_mem = "unused"
                    mem_devs += " ${target_mem}"
                    use_mem_unused = no
        - hotplug:
            target_mem = "plug"
    variants sub_test:
        - system_reset:
            sub_type = boot
            reboot_method = system_reset
            sleep_before_reset = 0
        - reboot:
            sub_type = boot
            reboot_method = shell
            kill_vm_on_error = yes
            reboot_count = 1
        - migration:
            sub_type = migration
            migration_test_command = help
            migration_bg_command = "cd /tmp; nohup tcpdump -q -i any -t ip host localhost"
            migration_bg_check_command = pgrep tcpdump
            migration_bg_kill_command = pkill -9 tcpdump
            kill_vm_on_error = yes
            iterations = 2
            used_mem = 1024
            mig_timeout = 3600
            ping_pong = 1
            migration_protocol = "tcp"
            only after
        - pause_vm:
            sub_type = stop_continue
            pause_time = 30
            wait_resume_timeout = "${pause_time}"
        - stress:
    variants stage:
        - before:
        - after:
        - during: