Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-14-2007, 09:37 PM   #1
testdrive
Member
 
Join Date: Sep 2007
Posts: 62
Default maximum configuration for 1gbit?

Hi i was wondering anybody know what settings i should have to be able to use my 1gbit switch as most as possible?
testdrive is offline   Reply With Quote
Old 11-15-2007, 03:04 AM   #2
Flow
Senior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Flow's Avatar
 
Join Date: Dec 2001
Posts: 306
Default

- NIC speed ?
- Disks speed ?
Flow is offline   Reply With Quote
Old 11-15-2007, 04:28 AM   #3
testdrive
Member
 
Join Date: Sep 2007
Posts: 62
Default

well its local network so all nics have 1gbit, the router also support jumbo frames. The discs usually max out at 50-60mb/s
testdrive is offline   Reply With Quote
Old 11-15-2007, 05:37 AM   #4
Flow
Senior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Flow's Avatar
 
Join Date: Dec 2001
Posts: 306
Default

if your NIC card support gbit speed, you shouln have problem maxing those disks speed.
Flow is offline   Reply With Quote
Old 11-15-2007, 09:17 AM   #5
testdrive
Member
 
Join Date: Sep 2007
Posts: 62
Default

yeah sure but what send buffer and that should i use to max it?
testdrive is offline   Reply With Quote
Old 11-15-2007, 02:08 PM   #6
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

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.
Yil is offline   Reply With Quote
Old 11-15-2007, 02:38 PM   #7
testdrive
Member
 
Join Date: Sep 2007
Posts: 62
Default

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

Last edited by testdrive; 11-15-2007 at 03:41 PM.
testdrive is offline   Reply With Quote
Old 11-17-2007, 01:25 PM   #8
pion
Senior Member
 
Join Date: Feb 2006
Posts: 138
Default

Is there some util around to optimize those settings for really fast connections? 1-10Gbit internet connections
pion is offline   Reply With Quote
Old 11-17-2007, 02:34 PM   #9
Flow
Senior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Flow's Avatar
 
Join Date: Dec 2001
Posts: 306
Default

Quote:
Originally Posted by testdrive View Post
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
Whutt??? these are the lines above you use and gain 20mbit?, no errors on connection and files??
Flow is offline   Reply With Quote
Old 11-17-2007, 04:08 PM   #10
testdrive
Member
 
Join Date: Sep 2007
Posts: 62
Default

Well i use it only for internalnetwork and no i really dont get 47mb/s all the time.
testdrive is offline   Reply With Quote
Old 11-17-2007, 04:12 PM   #11
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

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.
Yil is offline   Reply With Quote
Old 01-02-2008, 04:19 AM   #12
ArtX
Senior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Jan 2004
Posts: 301
Default

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

Last edited by ArtX; 01-02-2008 at 04:30 AM.
ArtX is offline   Reply With Quote
Old 01-07-2008, 12:58 PM   #13
testdrive
Member
 
Join Date: Sep 2007
Posts: 62
Default

Carpo Tcp1323Opts is that in ioftpd or should i make a dword with it?
testdrive is offline   Reply With Quote
Old 01-07-2008, 04:47 PM   #14
ArtX
Senior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Jan 2004
Posts: 301
Default

all need to be DWORD under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters
ArtX is offline   Reply With Quote
Reply

Tags
1gbit, configuration, settings, switch, wondering

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:41 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)