netperf.cfg 6.2 KB
Newer Older
1
- netperf: install setup image_copy unattended_install.cdrom
2
    virt_test_type = qemu libvirt
3 4 5
    type = netperf
    kill_vm = yes
    image_snapshot = yes
6
    setup_ksm = no
7 8
    take_regular_screendumps = no
    store_vm_register = no
Y
Yunping Zheng 已提交
9 10
    # Please update following comments params when you need special cfg for
    # your test nic cards
11
    # nic1 is for control, nic2 is for data connection
Y
Yunping Zheng 已提交
12
    nics += ' nic2'
13 14
    # queues = 4
    enable_msix_vectors = yes
15
    #Configure different types of network adapters.
Y
Yunping Zheng 已提交
16
    nic_model_nic1 = virtio
17
    nic_model_nic2 = e1000
Y
Yunping Zheng 已提交
18 19 20 21 22 23 24 25 26 27 28 29
    netdst_nic1 = private
    netdst_nic2 = switch
    # please fix the mac for nic2 if you needed with this, this can be empty
    # nic_mac_nic2 =
    # please add the physical nic you want to add to your private bridge
    # this can be empty
    # physical_nic =
    # bridge_force_create=yes
    # bridge_nic1 =
    #numa configration
    numa_node = -1
    netperf_with_numa = yes
A
Amos Kong 已提交
30 31 32 33
    # configure netperf test parameters, some seconds will be took to
    # wait all the clients work, this wait time should be less than
    # 0.5 * l, the wait time will augments if you have move
    # threads. So experientially suggest l should be not less than 60.
34
    l = 60
Y
Yunping Zheng 已提交
35
    #Test protocol and test data configration
36 37 38 39 40
    protocols = "TCP_STREAM TCP_MAERTS TCP_RR"
    sessions = "1 2 4 8"
    sessions_rr = "1 25 50"
    sizes = "64 256 1024 4096 16384 65535"
    sizes_rr = "64 256 4096"
Y
Yunping Zheng 已提交
41 42
    #client configuration
    client = localhost
A
Amos Kong 已提交
43 44 45 46 47
    username_client = root
    password_client = 123456
    shell_client_client = ssh
    shell_port_client = 22
    shell_prompt_client =  \[root@.{0,50}][\#\$]
Y
Yunping Zheng 已提交
48
    #host configuration
A
Amos Kong 已提交
49 50 51 52 53 54
    shell_port_host = 22
    password_host = 123456
    username_host = root
    os_type_client = linux
    os_type_host = linux
    shell_prompt_host =  \[root@.{0,50}][\#\$]
Y
Yunping Zheng 已提交
55
    #Test base env configration
56
    ver_cmd = rpm -q qemu-kvm
Y
Yunping Zheng 已提交
57
    netperf_version = 2.6.0
58
    netperf_pkg = performance/netperf-2.6.0.tar.bz2
Y
Yunping Zheng 已提交
59
    setup_cmd = "cd /tmp && rm -rf netperf-2.6.0 && tar xvfj netperf-2.6.0.tar.bz2 && cd netperf-2.6.0 && ./configure --enable-burst --enable-demo=yes && make"
60 61 62 63
    ppc64:
        setup_cmd = "cd /tmp && rm -rf netperf-2.6.0 && tar xvfj netperf-2.6.0.tar.bz2 && cd netperf-2.6.0 && ./configure --build=ppc64 --enable-burst --enable-demo=yes  && make"
    ppc64le:
        setup_cmd = "cd /tmp && rm -rf netperf-2.6.0 && tar xvfj netperf-2.6.0.tar.bz2 && cd netperf-2.6.0 && ./configure --build=ppc64le --enable-burst --enable-demo=yes  && make"
64
    log_hostinfo_script = scripts/rh_perf_log_hostinfo_script.sh
65 66 67 68 69
    # Now the get status functions are implemented for RHEL and Fedora guests.
    # Not test with other guests, please set this depends on your guest os
    # environment.
    RHEL, Fedora:
        get_status_in_guest = yes
W
Wenli Quan 已提交
70
    Linux:
71 72 73
    #    log_guestinfo_script = scripts/rh_perf_log_guestinfo_script.sh
    #    log_guestinfo_exec = bash
    #    log_guestinfo_path = /tmp/log_guestinfo.sh
W
Wenli Quan 已提交
74 75
        server_mtu_cmd = "ifconfig %s mtu %s"
    Windows:
76 77 78
    #    log_guestinfo_script = scripts/rh_perf_log_guestinfo_script.bat
    #    log_guestinfo_exec = cmd /c
    #    log_guestinfo_path = C:\log_guestinfo.bat
W
Wenli Quan 已提交
79 80 81
        server_mtu_cmd = "netsh interface ipv4 set subinterface "%s" mtu=%s"
    client_mtu_cmd = "ifconfig %s mtu %s"
    host_mtu_cmd = "ifconfig %s mtu %s"
82 83
    variants:
        - guest_guest:
Y
Yunping Zheng 已提交
84 85 86
            no Jeos
            only Linux
            client = vm2
87 88 89
            vms += " vm2"
            nics = 'nic1'
        - host_guest:
Y
Yunping Zheng 已提交
90 91 92 93
            Windows:
                netserv_start_cmd = "start /b %s:\netserver-2.6.0.exe"
                guest_ver_cmd = "ver"
                use_cygwin = no
94
            variants:
Y
Yunping Zheng 已提交
95 96 97 98 99 100 101
                - @default_setting:
                    Linux:
                        no Jeos
                        # to test exthost <-> guest:
                        # client = <external host ip>
                    Windows:
                        #client = <external host/guest ip>
102
                - best_registry_setting:
Y
Yunping Zheng 已提交
103
                    only Windows
104
                    reboot_after_config = yes
Y
Yunping Zheng 已提交
105 106
                    # For more information about windows registry setting document,
                    #please refer to http://www.linux-kvm.org/page/WindowsGuestDrivers/kvmnet/registry
107 108 109 110 111 112 113 114 115 116 117
                    config_cmds = afd_cmd1,afd_cmd2,afd_cmd3, tcpip_cmd1,tcpip_cmd2
                    afd_cmd1 = reg add "HKLM\SYSTEM\CurrentControlSet\Services\AFD\Parameters" /v DefaultSendWindow /d 0x00100000 /t REG_DWORD /f
                    afd_cmd2 = reg add "HKLM\SYSTEM\CurrentControlSet\Services\AFD\Parameters" /v DefaultReceiveWindow /d 0x00100000 /t REG_DWORD /f
                    afd_cmd3 = reg add "HKLM\SYSTEM\CurrentControlSet\Services\AFD\Parameters" /v FastSendDatagramThreshold /d 0x00004000 /t REG_DWORD /f
                    tcpip_cmd1 = reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v Tcp1323Opts /d 0x00000001 /t REG_DWORD /f
                    tcpip_cmd2 = reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v TcpWindowSize /d 0x00100000 /t REG_DWORD /f
                    disable_tcp_heuristics_cmd = "netsh int tcp set heuristics disabled"
                    disabled_tcp_autotuning_cmd = "netsh int tcp set global autotuninglevel=disabled"
                    enable_ctcp_cmd = "netsh int tcp set global congestionprovider=ctcp"
                    Win2008, Win2008r2, Win7:
                        config_cmds += ,disable_tcp_heuristics_cmd,disabled_tcp_autotuning_cmd,enable_ctcp_cmd
Y
Yunping Zheng 已提交
118 119 120 121 122 123 124 125 126
                - cygwin:
                    only Windows
                    use_cygwin = yes
                    netperf_src = %s:\netperf\netperf-2.6.0
                    cygwin_root = C:\rhcygwin\home\Administrator
                    netserver_path = C:\rhcygwin\usr\local\bin
                    cygwin_start = C:\rhcygwin\Cygwin.bat -i /Cygwin-Terminal.ico -
                    netserv_start_cmd = netserver
                    netperf_install_cmd = cd netperf-2.6.0; ./configure --enable-burst --enable-demo=yes; make; make install
W
Wenli Quan 已提交
127 128 129 130 131 132
    variants:
        - jumbo:
            mtu = 9000
            # please config physical nic name of client for jumbo frame case by uncommenting it
            # client_physical_nic = <your_client_physical_nic>
        - default: