why did you decrease SNDBUF? Does that yeild better performance?

Adjusting both linux and windows TCP/IP parameters helps a lot.

Also, look at a patch for scp for increased thruput with that program.

-Sunil

Jason <jason@cougarcorp.net> wrote:
George P Boutwell wrote:
> In addition there was a thread/conversation in the list a few weeks
> about about some interesting finds that a user had where they tweaked
> things and go some really good performance out of coLinux network
> connections. So check the archives a bit.
>

I found a thread on TCPWindowSize, was that the one you were refering too?

Regardless, I did a bunch of testing today with iperf, iozone, and
dstat. iperf and iozone both reported that individually, the subsystems
were working "Fast enough", so I started poking at Samba some.

I found I greatly increased my Samba performance in coLinux with this:
socket options = TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=2048
IPTOS_LOWDELAY
(for the record, previously I was using socket options = TCP_NODELAY
SO_RCVBUF=8192 SO_SNDBUF=8192)

This works pretty good. The numbers seem unbalanced though. I saw some
discussions in a previous thread about how traffic in one direction
seemed to be better than the other. ioperf showed me the same thing, and
dstat showed the the following when copying large files between Windows
and Linux now (dperf was running in coLinux boot)
----total-cpu-usage---- -disk/total -net/total- ---paging-- ---system--
usr sys idl wai hiq siq|_read write|_recv _send|__in_ _out_|_int_ _csw_
From Linux to Windows:
9 0 91 0 0 0|2436k 60k| 50k 2513k| 0 0 | 994 1731
3 0 97 0 0 0|2180k 0 | 43k 2190k| 0 0 | 879 1499
1 0 99 0 0 0|1664k 0 | 35k 1750k| 0 0 | 725 1193
12 0 88 0 0 0|1024k 0 | 23k 1128k| 0 0 | 505 777
14 0 86 0 0 0|3972k 0 | 80k 4056k| 0 0 |1537 2770
1 0 99 0 0 0|1412k 40k| 30k 1501k| 0 0 | 639 1030
From Windows to Linux:
39 1 60 0 0 0| 0 0 | 22M 96k| 0 0 | 16k 1874
18 48 34 0 0 0| 0 54M| 17M 75k| 0 0 | 12k 1502
26 1 73 0 0 0| 0 0 | 9.8M 50k| 0 0 |7141 1028
47 5 47 0 0 1| 0 0 | 17M 74k| 0 0 | 12k 1488
28 0 71 0 0 1| 0 0 | 22M 98k| 0 0 | 16k 1937
22 1 77 0 0 0| 0 43M| 21M 86k| 0 0 | 15k 1717


For some reason, transferring files from Windows to Linux is a whole
order of magnitue larger in speed. (~10x). When performing my iperf
tests, transferring files from Windows to Linux was only double (~2x). I
should do some Samba tests to see if this is consistent in a native boot
somehow to see how much Samba might be influencing things.

Either way, with the above mentioned samba tweak, I found my file
transfer throughput from Linux to Windows improve by ~84%. Windows to
Unix improved a fair bit as well (but that direction was always much
faster). It'd be nice if I could ultimately get it so that I can
maintain ~20M/s in either direction.

Jason



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
coLinux-users mailing list
coLinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/colinux-users


Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2/min or less.