hotplug_mem.cfg 5.6 KB
Newer Older
X
Xu Tian 已提交
1
# Notes:
2 3 4 5
#    Before start testing, please ensure your host OS support hugepage,
#    and ensure you host memory more than 6GB.
#    And memory hotplug need guest OS support, so please ensure your
#    guest OS really supported it.
X
Xu Tian 已提交
6 7
- hotplug_memory:
    type = hotplug_mem
8
    mem_fixed = 4096
X
Xu Tian 已提交
9 10 11 12 13
    slots_mem = 4
    size_mem = 1G
    maxmem_mem = 32G
    mem_devs = mem1
    login_timeout = 600
14
    pre_command = "sync && echo 3 > /proc/sys/vm/drop_caches"
X
Xu Tian 已提交
15
    no Host_RHEL.6
16
    no RHEL.5
X
Xu Tian 已提交
17 18
    no Windows..i386
    no WinXP Win2000 Win2003 WinVista
19 20 21
    # Notes:
    #    The threshold on ppc was confirmed with developer
    #    since crashkernel size is much bigger than x86
22 23
    ppc64,ppc64le,aarch64:
        threshold = 0.20
X
Xu Tian 已提交
24
    sub_test_wait_time = 0
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
    variants:
        - @default:
        - op_on:
            dump_mem = yes
            merge_mem = yes
            prealloc_mem = yes
            share_mem = yes
            discard-data = yes
            only one
            only no_policy
        - op_off:
            dump_mem = no
            merge_mem = no
            prealloc_mem = no
            share_mem = no
            discard-data = no
            only one
            only no_policy
X
Xu Tian 已提交
43 44 45 46 47 48 49
    variants numa_nodes:
        - one:
            guest_numa_nodes = "node0"
            del numa_mem
            del numa_cpus
            del numa_nodeid
            only after
50
            only guest_reboot
X
Xu Tian 已提交
51 52 53 54 55
        - two:
            guest_numa_nodes = "node0 node1"
            del numa_mem
            del numa_cpus
            numa_nodeid = 0
56
            mem_devs += " mem2"
X
Xu Tian 已提交
57 58 59 60
            node_dimm_mem2 = 0
            node_dimm_mem1 = 1
            numa_nodeid_node0 = 0
            numa_nodeid_node1 = 1
61 62
            node_dimm_plug1 = 0
            node_dimm_plug2 = 1
X
Xu Tian 已提交
63 64 65 66 67 68
    variants:
        - policy_default:
            policy_mem = default
        - policy_bind:
            policy_mem = bind
            host-nodes = 0
Y
Yumei Huang 已提交
69
            target_nodes = 0
X
Xu Tian 已提交
70 71 72
        - policy_interleave:
            policy_mem = interleave
            host-nodes = 0
Y
Yumei Huang 已提交
73
            target_nodes = 0
74
            only guest_reboot
X
Xu Tian 已提交
75 76 77 78
            only after
        - policy_preferred:
            policy_mem = preferred
            host-nodes = 0
Y
Yumei Huang 已提交
79
            target_nodes = 0
80
            only guest_reboot
X
Xu Tian 已提交
81 82 83
            only after
        - no_policy:
            del policy_mem
84
            only guest_reboot
X
Xu Tian 已提交
85 86 87 88
            only after
    variants:
        - backend_ram:
            backend_mem = memory-backend-ram
89
            del discard-data
X
Xu Tian 已提交
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
        - 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
            pre_command = "echo 3 > /proc/sys/vm/drop_caches"
            pre_command_noncritical = yes
    variants operation:
        - unplug:
            no Windows
            variants:
                - buildin_memory:
                    mem_devs += " buildin"
107
                    target_mems = "buildin"
X
Xu Tian 已提交
108 109
                - pluged_memory:
                    plug_mem = "plug"
110
                    target_mems = "plug"
X
Xu Tian 已提交
111
                - unused_memory:
112 113
                    target_mems = "unused"
                    mem_devs += " ${target_mems}"
X
Xu Tian 已提交
114 115
                    use_mem_unused = no
        - hotplug:
116
            target_mems = "plug1 plug2"
X
Xu Tian 已提交
117
    variants sub_test:
X
Xu Tian 已提交
118
        - vm_system_reset:
X
Xu Tian 已提交
119 120 121
            sub_type = boot
            reboot_method = system_reset
            sleep_before_reset = 0
X
Xu Tian 已提交
122
        - guest_reboot:
X
Xu Tian 已提交
123 124 125 126
            sub_type = boot
            reboot_method = shell
            kill_vm_on_error = yes
            reboot_count = 1
127
        - guest_migration:
X
Xu Tian 已提交
128
            sub_type = migration
Y
Yumei Huang 已提交
129
            max_vms = 2
130 131 132 133 134 135 136 137 138 139
            Linux:
                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
            Windows:
                migration_test_command = ver && vol
                migration_bg_command = start ping -t localhost
                migration_bg_check_command = tasklist | find /I "ping.exe"
                migration_bg_kill_command = taskkill /IM ping.exe /F
X
Xu Tian 已提交
140 141 142 143 144 145 146 147 148
            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
X
Xu Tian 已提交
149
            pause_time = 300
X
Xu Tian 已提交
150
            wait_resume_timeout = "${pause_time}"
X
Xu Tian 已提交
151
            sub_test_wait_time = 60
X
Xu Tian 已提交
152
        - stress:
X
Xu Tian 已提交
153
            sub_test_wait_time = 60
154 155 156 157
            Windows:
                timeout = 600
                autostress = yes
                sub_type = win_heavyload
158 159
                backup_image_before_testing = yes
                restore_image_after_testing = yes
160 161 162 163 164 165 166 167
                install_path = "C:\Program Files (x86)\JAM Software\HeavyLoad"
                config_cmd = 'setx -m path "%PATH%;${install_path};"'
                install_cmd = "start /wait DRIVE:\HeavyLoadSetup.exe /verysilent"
                x86_64:
                    install_path = "C:\Program Files (x86)\JAM Software\HeavyLoad"
                i386, i686:
                    install_path = "C:\Program Files\JAM Software\HeavyLoad"
            Linux:
168
                sub_type = linux_stress
169
                test_timeout = 1800
X
Xu Tian 已提交
170 171 172 173
    variants stage:
        - before:
        - after:
        - during: