netperf.cfg 5.8 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
Y
Yunping Zheng 已提交
6 7
    # Please update following comments params when you need special cfg for
    # your test nic cards
8
    # nic1 is for control, nic2 is for data connection
Y
Yunping Zheng 已提交
9
    nics += ' nic2'
10 11
    # queues = 4
    enable_msix_vectors = yes
12
    #Configure different types of network adapters.
Y
Yunping Zheng 已提交
13
    nic_model_nic1 = virtio
14
    nic_model_nic2 = e1000
Y
Yunping Zheng 已提交
15 16 17 18 19 20 21 22 23 24 25 26
    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 已提交
27 28 29 30
    # 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.
31
    l = 60
Y
Yunping Zheng 已提交
32
    #Test protocol and test data configration
33
    protocols = "TCP_STREAM TCP_MAERTS TCP_RR TCP_CRR"
34 35 36 37
    sessions = "1 2 4"
    sessions_rr = "50 100 250 500"
    sizes = "64 256 512 1024"
    sizes_rr = "64 256 512 1024"
Y
Yunping Zheng 已提交
38 39
    #client configuration
    client = localhost
A
Amos Kong 已提交
40 41 42 43 44
    username_client = root
    password_client = 123456
    shell_client_client = ssh
    shell_port_client = 22
    shell_prompt_client =  \[root@.{0,50}][\#\$]
Y
Yunping Zheng 已提交
45
    #host configuration
A
Amos Kong 已提交
46 47 48 49 50 51
    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 已提交
52
    #Test base env configration
53
    ver_cmd = rpm -q qemu-kvm
Y
Yunping Zheng 已提交
54
    netperf_version = 2.6.0
55
    netperf_download_link = ftp://ftp.netperf.org/netperf/archive/netperf-2.6.0.tar.bz2
Y
Yunping Zheng 已提交
56 57
    pkg_md5sum = 9654ffdfd4c4f2c93ce3733cd9ed9236
    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"
58 59 60 61
    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"
62
    log_hostinfo_script = scripts/rh_perf_log_hostinfo_script.sh
63 64 65 66 67
    # 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
68 69 70 71 72 73 74 75
    #Linux:
    #    log_guestinfo_script = scripts/rh_perf_log_guestinfo_script.sh
    #    log_guestinfo_exec = bash
    #    log_guestinfo_path = /tmp/log_guestinfo.sh
    #Windows:
    #    log_guestinfo_script = scripts/rh_perf_log_guestinfo_script.bat
    #    log_guestinfo_exec = cmd /c
    #    log_guestinfo_path = C:\log_guestinfo.bat
76 77
    variants:
        - guest_guest:
Y
Yunping Zheng 已提交
78 79 80
            no Jeos
            only Linux
            client = vm2
81 82 83
            vms += " vm2"
            nics = 'nic1'
        - host_guest:
Y
Yunping Zheng 已提交
84 85 86 87
            Windows:
                netserv_start_cmd = "start /b %s:\netserver-2.6.0.exe"
                guest_ver_cmd = "ver"
                use_cygwin = no
88
            variants:
Y
Yunping Zheng 已提交
89 90 91 92 93 94 95
                - @default_setting:
                    Linux:
                        no Jeos
                        # to test exthost <-> guest:
                        # client = <external host ip>
                    Windows:
                        #client = <external host/guest ip>
96
                - best_registry_setting:
Y
Yunping Zheng 已提交
97
                    only Windows
98
                    reboot_after_config = yes
Y
Yunping Zheng 已提交
99 100
                    # For more information about windows registry setting document,
                    #please refer to http://www.linux-kvm.org/page/WindowsGuestDrivers/kvmnet/registry
101 102 103 104 105 106 107 108 109 110 111
                    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 已提交
112 113 114 115 116 117 118 119 120
                - 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