Page 1 of 1

FTP Plugin: High CPU load during download from local server

Posted: 14 Feb 2006, 13:17
by crystalidea
While I copy a file (300 MB) from a local FTP server, the process salamand.exe eats 99% of cpu time.

Re: FTP Plugin bug

Posted: 14 Feb 2006, 14:47
by cincura.net
XPiS wrote:While I copy a file (300 MB) from a local FTP server, the process salamand.exe eats 99% of cpu time.
And if you use another FTP client, there's no huge load?

PS: If the transfer is very fast, the computer must be loaded.

Posted: 14 Feb 2006, 15:00
by Petr Solin
Yes, FTP is optimized for lower speeds (e.g. up to 1 MB/s) than local transfers (e.g. 30 MB/s), so processor load is high during such transfers.

What is transfer speed for this your transfer?

Posted: 14 Feb 2006, 16:05
by crystalidea
Transfer rate is about 5 MB/s, well what's the solution?

Posted: 14 Feb 2006, 16:22
by Jan Rysavy
XPiS wrote:Transfer rate is about 5 MB/s, well what's the solution?
Could you please test another FTP clients (FileZilla, TC)?
1) Measure the transfer speed (if it is limited by CPU load in the SS case)
2) Measure the CPU load
3) Could you test the upload too? (including SS)

Thank you.

Which FTP server are you using?

Posted: 14 Feb 2006, 16:35
by crystalidea
TC:
Download: 9 MB/s, CPU Load: 10-15%
Upload: 5.5 MB/s, CPU Load: 25-30%

SS:

Download: 5 MB/s, Cpu Load: 60-70%
Upload: 4-4.5 MB/s, CPU Load: 30%

FTP Server: Titan FTP Server 4

Posted: 14 Feb 2006, 16:38
by Jan Rysavy
Which FTP server are you using?

Could you describe the structure of copied files? (a lot of small files/directories or one big file?)

Posted: 14 Feb 2006, 16:41
by Jan Rysavy
XPiS wrote:While I copy a file (300 MB) from a local FTP server, the process salamand.exe eats 99% of cpu time.
XPiS wrote:TC:
Download: 9 MB/s, CPU Load: 10-15%
Upload: 5.5 MB/s, CPU Load: 25-30%

SS:

Download: 5 MB/s, Cpu Load: 60-70%
Upload: 4-4.5 MB/s, CPU Load: 30%
You wrote that SS eats 99% of CPU. Then 60-70%. I don't understand...

Posted: 14 Feb 2006, 16:53
by Jan Rysavy
Moderator: More detailed subject.

Posted: 14 Feb 2006, 16:55
by crystalidea
FTP Server: Titan FTP Server 4
One big file (a couple of hundreds megabytes).
look at the perfomance graph (procexp):
www.xpis.alfaspace.net/untitled.png_
(it grew hi when I started copying)

Posted: 14 Feb 2006, 17:03
by Jan Rysavy
Are you using Servant Salamander 2.5 beta 11?
(Petr Solin did several optimizations in FTP plugin)

Posted: 14 Feb 2006, 17:08
by crystalidea
Of cause. like new logos :)

Posted: 14 Feb 2006, 20:14
by Jan Rysavy
Could you please measure the total transfer time in SS and TC?

I can reproduce the higher CPU load of SS compares to TC (we know that, as Petr Solin wrote above, it is by plugin design) but the total transfer time is nearly SAME in both FTP clients (in my test case).
XPiS wrote:local FTP server
Do you run the FTP server on the same machine as FTP client? Or do you mean the local network?

Posted: 14 Feb 2006, 23:48
by crystalidea
Local server means within our office local network. The server runs Windows 2003 Server.

Posted: 15 Feb 2006, 09:23
by Jan Rysavy
We don't see the problem here. Please look at following CPU load charts from our office.

Image

There are many factors in the game: used operating systems on both server and client sides, network settings, actual network load, disks fragmentation, used FTP server, etc. Results will differ from case to case.