SFTP - high CPU while copying
Moderators: white, Hacker, petermad, Stefan2
SFTP - high CPU while copying
Hi,
I copy a file over SSH in local network (on raspberrypi), and CPU usage is ~50%
Image: http://i.imgur.com/p8ObBUU.png
If I pause the copying process then CPU drops.
I use latest TC.
Any ideas?
I copy a file over SSH in local network (on raspberrypi), and CPU usage is ~50%
Image: http://i.imgur.com/p8ObBUU.png
If I pause the copying process then CPU drops.
I use latest TC.
Any ideas?
- ghisler(Author)
- Site Admin
- Posts: 48138
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: SFTP - high CPU while copying
Please use the option "SCP for transfers" in the connection settings. SFTP transfers are quite CPU intensive because they send the data in small separate packets. SCP is sending/receiving in one stream, which is both faster and less CPU intensive.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: SFTP - high CPU while copying
SCP option is already enabled: Image: https://i.imgur.com/LqppywR.png
Re: SFTP - high CPU while copying
Actually disabling ZLIB compression solves the problem
Re: SFTP - high CPU while copying
Oh, above is not true, it just go high after is starts copying.
It's 1GB file if that matters...
It's 1GB file if that matters...
- ghisler(Author)
- Site Admin
- Posts: 48138
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: SFTP - high CPU while copying
Strange, I don't have this problem with SCP transfers. Maybe you resumed a download? SCP doesn't support that, so TC has to revert to regular SFTP.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: SFTP - high CPU while copying
I see the same issue with large files. I'm running 9.22a 64bit and ftp plugin version 2.50 (32 bit+64 bit) on Windows 10.
When I copy a file Total Commander uses 20-25% CPU consistently on 2 cores Intel i5-6300U with HT enabled, when running SFTP and SCP. I have tried coping to mutilple hosts running Linux, FreeBSD and OpenBSD.
When coping the same files to the same hosts using puttys scp I don't get this high CPU usage. When using WinSCP i peaks at 12% on my system and is otherwise not using very much CPU.
When I copy a file Total Commander uses 20-25% CPU consistently on 2 cores Intel i5-6300U with HT enabled, when running SFTP and SCP. I have tried coping to mutilple hosts running Linux, FreeBSD and OpenBSD.
When coping the same files to the same hosts using puttys scp I don't get this high CPU usage. When using WinSCP i peaks at 12% on my system and is otherwise not using very much CPU.
Re: SFTP - high CPU while copying
I just did a little testing. The tested speed transferred a huge file between two computers that are connected by a 1 Gbit network (Win7 x64 / Ubuntu 14).
Tested the transfer in the following programs:
1) TotalCmd 9.22a x64 + SFTP 2.50
2) TotalCmd 9.22a x64 + SFTP4TC 1.4.67.4
3) WinSCP 5.15.5
4) Bitvise SSH Client 7.15
Results:
Tested the transfer in the following programs:
1) TotalCmd 9.22a x64 + SFTP 2.50
2) TotalCmd 9.22a x64 + SFTP4TC 1.4.67.4
3) WinSCP 5.15.5
4) Bitvise SSH Client 7.15
Results:
Code: Select all
TotalCmd+SFTP (SFTP mode) 1100 KB/s ( 50% load 1 CPU core)
TotalCmd+SFTP (SCP mode) 3200 KB/s ( 50% load 1 CPU core)
TotalCmd+SFTP4TC 25000 KB/s (100% load 1 CPU core)
WinSCP (SFTP mode) 680 KB/s (100% load 1 CPU core)
WinSCP (SCP mode) 22000 KB/s (100% load 1 CPU core)
Bitvise (SFTP mode) 40000 KB/s (100% load 1 CPU core)
Re: SFTP - high CPU while copying
Same experience here for quite a long time... SCP data exchange with any server is CPU intensive, like 100% on one core. In contrast, with FileZilla the CPU usage is almost negligible. But I love the flexible side-by-side sync UI too much.
#147523