Go Back   FlashFXP Forums > >

General Discussion Need help? Have a problem? Let us help you. Bug reports and feature requests should be made using the Bug Tracker or Feature Tracker

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 01-20-2011, 11:46 AM   #1
rco133
Member
FlashFXP Beta Tester
 
Join Date: Oct 2006
Posts: 38
Default SSL file transfer CPU usage?

Hi.

I am running FlashFXP version 4.0.0 build 1526, and today I noticed something weird.

I downloaded some files from a FTP server using "secure file transfers".

I noticed that my CPU fan started to run faster than normal, and when I checked the CPU usage, FlashFXP used between 40 and 50 % CPU. And that is on my 3 GHz Core 2 Duo.

I then tried to download the exact same file using FalshFXP 3.7.9 build 1348, and here the CPU usage stays below 2 %.

With the 3.7.9 version I can't really tell the difference between "secure file transfers" and normal transfers. It is around 1-2 % CPU usage.

But with 4.0.0 build 1526 it is a total different story.

I am running Windows XP Pro with SP3 in case that matters.

I would really like a solution, as I use "secure file transfers" a lot.

I have no idea how long the issue has been there. I just noticed it today, but it may have been there for a while, and I just didn't notice the CPU load.

Best regards

rco133
rco133 is offline  
Old 01-21-2011, 04:42 PM   #2
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

Hello,

At what speed are the files being transfered? In 3.7.9 high speed transfers were being throttled so the code was reworked to provide faster throughput.

Also what is your receive TCP/IP Buffer size in Preferences dialog under Connection. It should be set to default, if you upgraded from 3.7.9 it might be 32KB.
bigstar is offline  
Old 01-22-2011, 03:39 AM   #3
rco133
Member
FlashFXP Beta Tester
 
Join Date: Oct 2006
Posts: 38
Default

Hi Bigstar.

I have a 10 Mbit line, and both versions of FlashFXP maxes out the line when I download.

In 3.7.9 build 1348 the TCP/IP buffersizes are Send 64 KB and Receive is 128 KB.

In 4.0.0 build 1525, which I am using now and also has the same issue, the TCP/IP buffersizes are Send 64 KB and Receive is 128 KB.

I have tried default and auto for both Send and Receive, but the CPU load is still between 40 and 50 %.

I have also tried to ise the SSL files from the old version, but that doesn't change anything either.

rco133
rco133 is offline  
Old 01-22-2011, 12:46 PM   #4
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

Thanks for the information.

So roughly 1.25MB/s transfer speed?

I will investigate this issue further and get back to you.
bigstar is offline  
Old 01-22-2011, 01:50 PM   #5
rco133
Member
FlashFXP Beta Tester
 
Join Date: Oct 2006
Posts: 38
Default

Quote:
Originally Posted by bigstar View Post
Thanks for the information.

So roughly 1.25MB/s transfer speed?

I will investigate this issue further and get back to you.

Yes. It is just above 1 MB/s.

rco133
rco133 is offline  
Old 04-02-2011, 07:48 PM   #6
jcony
Junior Member
FlashFXP Beta Tester
 
Join Date: Nov 2006
Posts: 26
Default

I just wanted to bump this thread. I experience high CPU usage when downloading with SSL (AUTH TLS) too. I have a 3GHz Quad core CPU. Eyeballing the task manager with 3 instances of FlashFXP downloading at 100-300kb/s, each instance takes up about 15% (half core) and may spike to 25% (full core) CPU usage. Additionally, the "System" process is over 10% usage. If I close out of all instances of FlashFXP, it drops to almost nothing. I am using the latest build v4 build 1548.

Any updates on this? Why does v3 use so much less CPU power? I like using a lot of instances but this kills system performance with v4.
jcony is offline  
Old 04-02-2011, 08:10 PM   #7
jcony
Junior Member
FlashFXP Beta Tester
 
Join Date: Nov 2006
Posts: 26
Default

I see there are numerous threads like this one. I took the suggestion of setting the receive window size to the default of 32kb. After that, using the same 3 queues, instances are running on average at 0% CPU usage. System process is also at 0%.

It is unfortunate that the higher receive window uses so much CPU in v4. I was able to drastically increase download speeds with the high receive window from certain locations. I was using a 512kb window originally.

Any news on this would be nice!
jcony is offline  
Old 04-03-2011, 08:56 AM   #8
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

The TCP/IP buffer size adjustment logic was flawed in v3.x and it didn't work as designed, there were so many issues that prevented this feature from working as intended. And because of this its impossible to compare this feature in v3.x to v4.x.

If your TCP/IP buffer is too big/small it will result in high CPU usage. Which is why with v4.0 we made the default value "(default)" which is the OS default, rather than a fixed size of 32kb.

While FlashFXP offers a wide range of TCP/IP buffer sizes most are unrealistic, On my gigabit lan 128KB is enough to reach over 100MB/s, however all networks are different.

At 1MB/s default would probably be the most practical value but there are other factors as well, You mentioned you're using Windows XP its difficult to compare the TCP/IP stack in XP to Windows 7 as they are quite different, it also depends on how your TCP/IP stack is configured, such as using one of the many tweak tools.

Every setup is unique because there are so many different factors involved.
Hardware, Operating system, Firewall, anti-virus software, etc
bigstar is offline  
Old 04-03-2011, 09:21 AM   #9
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

In addition one of the biggest factors that can effect performance is the network card.

Some network cards let you configure the "Max IRQ per Second" and from my experience this value is usually set to a value that provides average performance with a typical range of 1000 to 30000.

The default might be 5,000 or 10,000, however increasing this value can improve performance as much as 10-30% depending on the quality of the network card/motherboard and how well the operating system can handle the IRQ requests.
bigstar is offline  
Old 04-03-2011, 09:35 AM   #10
jcony
Junior Member
FlashFXP Beta Tester
 
Join Date: Nov 2006
Posts: 26
Default

Thanks, good info. For the record, I'm running Win7 Ultimate 64bit.
jcony is offline  
Old 02-24-2012, 04:28 PM   #11
benjamin3
Senior Member
FlashFXP Beta Tester
 
Join Date: Jul 2005
Posts: 106
Default

interesting thread, while im experiencing similar issue in latest beta 1719 ... let me check network card and for that setting and update drivers aswell... in my case the AV scanner mcafee bugs with 50% if running fxp transfer ssl'ed.
benjamin3 is offline  
Old 02-24-2012, 04:41 PM   #12
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

This thread is specific to direct ssl downloads and uploads..

If you're performing a direct ssl fxp transfer then none of this would apply to you.
bigstar is offline  
Old 02-24-2012, 04:43 PM   #13
benjamin3
Senior Member
FlashFXP Beta Tester
 
Join Date: Jul 2005
Posts: 106
Default

check my recent bug , it issues on ssl/non-ssl fxp and downloads , i go for NIC driver update, let's see. not sure what mcafee mcshield.exe bugging to 50% if ffxp transfer a file. yoiu have experience on AV products and analysing your ffxp ?
benjamin3 is offline  
Old 02-24-2012, 04:46 PM   #14
benjamin3
Senior Member
FlashFXP Beta Tester
 
Join Date: Jul 2005
Posts: 106
Default

Quote:
Originally Posted by bigstar View Post
In addition one of the biggest factors that can effect performance is the network card.

Some network cards let you configure the "Max IRQ per Second" and from my experience this value is usually set to a value that provides average performance with a typical range of 1000 to 30000.

The default might be 5,000 or 10,000, however increasing this value can improve performance as much as 10-30% depending on the quality of the network card/motherboard and how well the operating system can handle the IRQ requests.
my marvell yukon's driver were from 2010 , having now january 2012 drivers, i have that default value on 5000 , perhaps i play around witrh the values lets see if this helps ,

let's focus on my other thread, regarding mcshield.exe , damn AV tool ;-)
benjamin3 is offline  
Old 02-27-2012, 12:29 PM   #15
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

I discovered an issue that can result in higher than normal CPU usage when connected to two servers, specifically when connecting to both servers at the same time.

During the connection and login process CPU usage was max for the core/cpu, once logged in the CPU usage returned to normal.

I have not seen this issue during any site to site transfers, however that doesn't mean it didn't occur.

I am preparing a beta update with some improvements to prevent this type of situation.
bigstar is offline  
Closed Thread

Tags
cpu, download, file, flashfxp, ftp

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 11:12 AM.

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