Sizes larger than rsize result in parallel IO’s
64K Rather than 32K rsize gives ??? improvement (depends on userland read size no?)
Install ttcp on the Mac
lovebox-3:~ gjl$ sudo port install ttcp ---> Fetching ttcp ---> Attempting to fetch ttcp.c from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ttcp ---> Attempting to fetch ttcp.1 from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ttcp ---> Attempting to fetch README from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/ttcp ---> Verifying checksum(s) for ttcp ---> Extracting ttcp ---> Configuring ttcp ---> Building ttcp ---> Staging ttcp into destroot ---> Installing ttcp @1.10_0 ---> Activating ttcp @1.10_0 ---> Cleaning ttcp
Install nttcp on Linux
gjl@gjl-desktop:~$ sudo apt-get install nttcp [sudo] password for gjl: Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: openbsd-inetd inet-superserver The following NEW packages will be installed: nttcp 0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded. Need to get 25.4kB of archives. After this operation, 98.3kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse nttcp 1.47-12 [25.4kB] Fetched 25.4kB in 0s (56.6kB/s) Selecting previously deselected package nttcp. (Reading database ... 243192 files and directories currently installed.) Unpacking nttcp (from .../nttcp_1.47-12_i386.deb) ... Processing triggers for man-db ... Setting up nttcp (1.47-12) ...
Usage
On the server
gjl@gjl-desktop:~$ nttcp -i -p 5001
On the client
lovebox-3:~ gjl$ ttcp -s -t 10.0.1.4 -v -l 4096 -p 5002
Output
ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp -> 10.0.1.4 ttcp-t: socket ttcp-t: connect ttcp-t: 16777216 bytes in 6.41 real seconds = 2554.32 KB/sec +++ ttcp-t: 2048 I/O calls, msec/call = 3.21, calls/sec = 319.29 ttcp-t: 0.0user 0.2sys 0:06real 3% 0i+0d 202752maxrss 0+2pf 6593+53csw
Wifi
lovebox-3:~ gjl$ ttcp -s -t 10.0.1.4 -v -l 4096 -p 5002 ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp -> 10.0.1.4 ttcp-t: socket ttcp-t: connect ttcp-t: 16777216 bytes in 12.77 real seconds = 1282.91 KB/sec +++ ttcp-t: 2048 I/O calls, msec/call = 6.39, calls/sec = 160.36 ttcp-t: 0.0user 0.2sys 0:12real 1% 0i+0d 202752maxrss 0+3pf 5549+69csw
5Ghz network
lovebox-3:~ gjl$ ttcp -s -t 10.0.1.4 -v -l 4096 -p 5002 ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp -> 10.0.1.4 ttcp-t: socket ttcp-t: connect ttcp-t: 16777216 bytes in 5.31 real seconds = 3083.91 KB/sec +++ ttcp-t: 2048 I/O calls, msec/call = 2.66, calls/sec = 385.49 ttcp-t: 0.0user 0.1sys 0:05real 3% 0i+0d 202752maxrss 0+2pf 1185+318csw lovebox-3:~ gjl$ ttcp -s -t 10.0.1.4 -v -l 4096 -p 5002