vhost_net使ってみる - やり方だけ

    • 環境
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
# uname -rmv
2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686
# dpkg -l qemu-kvm
ii  qemu-kvm          0.14.0+noroms-0ub Full virtualization on i386 and amd64 hardware
    • netperfを取得
// linux用
$ wget ftp://ftp.netperf.org/netperf/netperf-2.4.5.tar.gz
$ tar xzvf netperf-2.4.5.tar.gz
$ cd !$
$ ./configure
$ make
$ ./src/netserver
Starting netserver at port 12865

// windows用
$ wget ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/binaries/2.1pl1/win32/x86/netperf-2.1pl1.exe
$ wget ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/binaries/2.1pl1/win32/x86/netserver-2.1pl1.exe
    • vhost_netモジュールをインストールを起動(?)
# modprobe vhost_net
# lsmod | grep vhost_net
vhost_net              26954  0
マシン情報 vhost-net導入前 vhost-net導入後 備考
Ubuntu-natty-11.04 - - netperfサーバー
Windows7 58.37(Mbit/s) 76.22(Mbit/s) netperfクライアント 仮想マシン
- - - -

…? 数回分の平均値だけれど、ものすごいばらつきがあるので当てにならないかも。環境がまずいのか。