hotplug_mem.cfg 6.0 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 = 1024
X
Xu Tian 已提交
9 10 11 12 13 14 15 16 17
    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
18 19 20 21 22
    # Notes:
    #    The threshold on ppc was confirmed with developer
    #    since crashkernel size is much bigger than x86
    ppc64,ppc64le:
        threshold = 0.15
X
Xu Tian 已提交
23
    sub_test_wait_time = 0
X
Xu Tian 已提交
24 25 26 27 28 29 30
    variants numa_nodes:
        - one:
            guest_numa_nodes = "node0"
            del numa_mem
            del numa_cpus
            del numa_nodeid
            only after
31
            only guest_reboot
X
Xu Tian 已提交
32 33 34 35 36
        - two:
            guest_numa_nodes = "node0 node1"
            del numa_mem
            del numa_cpus
            numa_nodeid = 0
37
            memdevs += " mem2"
X
Xu Tian 已提交
38 39 40 41 42 43 44 45 46 47 48 49 50
            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
51
            only guest_reboot
X
Xu Tian 已提交
52 53 54 55
            only after
        - policy_preferred:
            policy_mem = preferred
            host-nodes = 0
56
            only guest_reboot
X
Xu Tian 已提交
57 58 59
            only after
        - no_policy:
            del policy_mem
60
            only guest_reboot
X
Xu Tian 已提交
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
            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
            pre_command = "echo 3 > /proc/sys/vm/drop_caches"
            pre_command_noncritical = yes
76
            variants:
77
                - 2M_hugepage:
78 79 80 81 82
                    # default pagesize is 2M, 2G guest memory need to allocate
                    # in hugepage, so page nubmer is:
                    #    target_hugepages = (size_mem / page_size) * 2 + 10
                    target_hugepages = 2058
                    expected_hugepage_size = 2048
83 84 85 86
                - 16M_hugepage:
                    only pseries
                    target_hugepages = 266
                    expected_hugepage_size = 16384
87 88 89 90 91 92 93 94 95 96
                - 1G_hugepage:
                    # Warning:
                    #     Please don't forget to update host kernel line to enable
                    # 1G hugepage support before lanuch this test, else test will
                    # failed.
                    target_hugepages = 5
                    expected_hugepage_size = 1048576
                    only one
                    only guest_reboot
                    only no_policy
97
                    no pseries
X
Xu Tian 已提交
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
    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:
X
Xu Tian 已提交
115
        - vm_system_reset:
X
Xu Tian 已提交
116 117 118
            sub_type = boot
            reboot_method = system_reset
            sleep_before_reset = 0
X
Xu Tian 已提交
119
        - guest_reboot:
X
Xu Tian 已提交
120
            sub_test_wait_time = 2
X
Xu Tian 已提交
121 122 123 124
            sub_type = boot
            reboot_method = shell
            kill_vm_on_error = yes
            reboot_count = 1
125
        - guest_migration:
X
Xu Tian 已提交
126
            sub_type = migration
127 128 129 130 131 132 133 134 135 136
            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 已提交
137 138 139 140 141 142 143 144 145
            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 已提交
146
            pause_time = 300
X
Xu Tian 已提交
147
            wait_resume_timeout = "${pause_time}"
X
Xu Tian 已提交
148
            sub_test_wait_time = 60
X
Xu Tian 已提交
149
        - stress:
X
Xu Tian 已提交
150
            sub_test_wait_time = 60
151 152 153 154
            Windows:
                timeout = 600
                autostress = yes
                sub_type = win_heavyload
155 156
                backup_image_before_testing = yes
                restore_image_after_testing = yes
157 158 159 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:
                sub_type = autotest_control
                test_control_file = stress.control
                test_timeout = 1800
X
Xu Tian 已提交
168 169 170 171
    variants stage:
        - before:
        - after:
        - during: