On Sat, 6 Feb 2010 19:43:54 +0100 Claudio Jeker <[email protected]> wrote:
> > >> Thank you for the clear answer. Anyway, trying to act on > > >> tcp.sendspace isn't affecting the upload capabilities of my > > >> OpenBSD server. I tried downloading a file through httpd, via > > >> ftp but results are still disappointing: 60-70 kbps between two > > >> boxes on the same switch. > > >> > > >> The box is going to become a webserver, could you please give me > > >> more hints about tuning network performance? > > >> > > > > > > Check your links. This sounds like a full-duplex issue between > > > switch and machines. On a LAN even with default tcp > > > send/recvspace you should get easily get up to 200Mbps. > > > > > > > Just logged through ssh on the server, ifconfig reports: > > > > re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > > lladdr 00:b0:c2:02:5e:a0 > > priority: 0 > > groups: egress > > media: Ethernet autoselect (100baseTX > > full-duplex,rxpause,txpause) status: active > > inet 192.167.132.99 netmask 0xffffff00 broadcast > > 192.167.132.255 inet6 fe80::2b0:c2ff:fe02:5ea0%re0 prefixlen 64 > > scopeid 0x2 > > > > As from the name, nic is a common Realtek card (OpenBSD just got it > > without need of doing anything). So I suppose nic is running in full > > duplex. > > Hints? > > > > Check interface statistics on interface and switch, look for excessive > errors or collisions. Both should not happen on a full-duplex link. > > Back in the office, I made a simple test: using the integrated card (bge) and not the realtek one (re), I now get almost full speed from the server (8-9 MBps). Are there some issues with that driver? ifconfig even reported it was going 100Base TX. Extract from dmesg: re0 at pci5 dev 0 function 0 "Realtek 8169" rev 0x10: RTL8169/8110SB (0x1000), a pic 4 int 21 (irq 11), address 00:b0:c2:02:5e:a0 rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 3

