[ 
https://issues.apache.org/jira/browse/SSHD-812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16432280#comment-16432280
 ] 

Guillaume Nodet commented on SSHD-812:
--------------------------------------

I've pushed a performance improvement, see 
https://github.com/apache/mina-sshd/commit/3c9efa8a53ded17622b0b193e9439eeda7a21218

This raise by 50% the read throughput in my simple case.
You can also raise the packet-size and window-size properties on the SSH server 
a bit, the window-size in particular might be a bit small for huge transfers, 
try with 16777216 also improves the throughput a bit.

Compared to my native OS sftp, the transfer throughput is 15% slower when 
reading, but similar when writing.
I haven't really tested your middle-man scenario, but the above commit may 
already help quite a bit.  

Could you try it (along with raising the window-size for both the server and 
client maybe) and see if this also lead to an improvement in your case ?
There may be additional room for improvements because there's no disk i/o in 
your specific use case, so the HDD can't be a bottleneck.

> support asynchronous mode for sftp subsystem
> --------------------------------------------
>
>                 Key: SSHD-812
>                 URL: https://issues.apache.org/jira/browse/SSHD-812
>             Project: MINA SSHD
>          Issue Type: New Feature
>    Affects Versions: 1.7.0
>         Environment: java1.8, linux
>            Reporter: Zhenliang Su
>            Assignee: Goldstein Lyor
>            Priority: Minor
>              Labels: asynchronous, sftp
>         Attachments: Main.java, doRead.png
>
>
> I used SSHD as a middleman between client and target sftp server.
> I found that, when filezilla client directly connect to the target sftp 
> server, it transfers fast. When filezilla client connect to the middleman, it 
> transfers slow.
> I analyzed the source code of 
> org.apache.sshd.server.subsystem.sftp.SftpSubsystem#doRead, and I found it 
> behaves like block mode, and client's other SSH_FXP_READ request blocked in 
> the same thread.
>  
> my middleman code:
>  [^Main.java]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to