View Full Version : maximum configuration for 1gbit?
testdrive
11-14-2007, 09:37 PM
Hi i was wondering anybody know what settings i should have to be able to use my 1gbit switch as most as possible?
- NIC speed ?
- Disks speed ?
testdrive
11-15-2007, 04:28 AM
well its local network so all nics have 1gbit, the router also support jumbo frames. The discs usually max out at 50-60mb/s
if your NIC card support gbit speed, you shouln have problem maxing those disks speed.
testdrive
11-15-2007, 09:17 AM
yeah sure but what send buffer and that should i use to max it?
Try adjusting these options under the [FTP] section of the .ini file.
Transfer_Buffer = 131072
DataSocket_Send_Buffer = 32864
DataSocket_Recv_Buffer = 32864
The send/recv buffer sizes I believe are limited to 64k, but on a fast local connection go ahead and raise these. Over the internet raising these may actually decrease performance if you get packet loss since a single dropped packet winds up with a retransmission of everything in the buffer from the point of the dropped packet...
Increasing the size of the internal transfer buffer may help optimize disk accesses.
testdrive
11-15-2007, 02:38 PM
thanks Yil gonna try it
Transfer_Buffer = 231072
DataSocket_Send_Buffer = 231072
DataSocket_Recv_Buffer = 231072
get 47mb/s now instead of 27mb/s
thanks alot :D
Is there some util around to optimize those settings for really fast connections? 1-10Gbit internet connections
thanks Yil gonna try it
Transfer_Buffer = 231072
DataSocket_Send_Buffer = 231072
DataSocket_Recv_Buffer = 231072
get 47mb/s now instead of 27mb/s
thanks alot :D
Whutt??? these are the lines above you use and gain 20mbit?, no errors on connection and files??
testdrive
11-17-2007, 04:08 PM
Well i use it only for internalnetwork and no i really dont get 47mb/s all the time.
It's a matter of lan verse wan. A 100mbit connection with remote 10mbit users connected to it is a very different thing than a gbit lan.
I don't believe send/recv buffers go above 64k so not sure that really makes much of a difference but I haven't looked into that on windows and in ioFTPD specifically so I'm just going on what I know of generic socket implementations. Ftp clients often default to 32k as well for the same reasons I outlined earlier. It is true that the internet for the most part is FAR more reliable about packet delivery than it was a decade ago so perhaps maxing the buffer sizes makes sense now.
On the other hand transfer buffers are internal and raising them may see a noticable difference especially on multi-core CPUs. In particular if the server is fast enough to max out a drives b/w streaming data then the larger IO requests probably helps with disk caching and user/kernel overhead. I'd definitely raise the transfer buffer size, and if we get a few other datapoints I might increase the default.
The one drawback is ioFTPD doesn't use memory pools for those large allocations and memory fragmentation/growth will go up with such large buffers. I wouldn't worry about that since even in bad cases the server still uses very little memory.
another thing to look at is jumbo frames - norm thery are 1500(default) but can be larger - norm 9000, my intel nic can do 16000 but the nvidia cards max at 9000
Windows XP/2000 Server/Server 2003
The magical location for TCP settings in the registry editor is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters
We need to add a registry DWORD named TcpWindowSize, and enter a sufficiently large size. 131400 (make sure you click on 'decimal') should be enough. Tcp1323Opts should be set to 3. This enables both rfc1323 scaling and timestamps.
One last important note for Windows XP users: If you've installed Service Pack 2, then there is another likely culprit for poor network performance. Explained in [knowledge base article 842264(http://support.microsoft.com/?kbid=842264), Microsoft says that disabling Internet Connection Sharing after an SP2 install should fix performance issues.
without the tweaks by yil and the ones i have posted max i have had from windows to windows pc is Transferred: xxxx.xxxxx.xxxx.rar 47.68 MB in 0.77 seconds (62.33 MB/s), windows to linux Transferred: xxxx.xxxxx.xxxx.r06 47.68 MB in 0.56 seconds (84.70 MB/s), although you cant always go by what flash tells you :p
testdrive
01-07-2008, 12:58 PM
Carpo Tcp1323Opts is that in ioftpd or should i make a dword with it?
all need to be DWORD under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.