Skip to content

scp is slow when 5.4.1 and 5.5.0, but OK when 5.4.0 #883

Closed

Description

@wangyugui-e16

scp is slow when 5.4.1 and 5.5.0, but OK when 5.4.0

1MB/s when 5.5.0 and 5.4.1,
12MB/s when 5.4.0

cpu usage is not high.

Best Regards

Activity

  1. wangyugui-e16 commented on Sep 18, 2025

    @wangyugui-e16
    Author

    default ini
    ; Sendfile DelayType NoDelay/PerChar/PerLine/PerSendSize
    SendfileDelayType=NoDelay
    ; Sendfile Delay (ms)
    SendfileDelayTick=0
    ; Sendfile size when PerSendSize
    SendfileSize=4096
    ; Sendfile file reading method
    SendfileSequential=off

    still slow when SendfileSize=409600, SendfileSequential=on

  2. nmaya commented on Sep 19, 2025

    @nmaya
    Member

    @zmatsuo @hkanou 報告のように、5.4.0では早く5.4.1では遅いのが確認できました。
    この間に、このような影響が出そう修正はあったでしょうか?

  3. added theissue type on Sep 19, 2025
  4. zmatsuo commented on Sep 19, 2025

    @zmatsuo
    Member

    sendmem系が疑わしいかと思いましたが
    scpはttxsshへファイル名を渡す作りになっているので scp.h
    ttermproではないのではなように思います。

    ttxssh.dllプラグイン内にも大きな変更がなかった気がします。

  5. nmaya commented on Sep 19, 2025

    @nmaya
    Member

    この修正から遅くなっています。 e2bbb24

  6. zmatsuo commented on Sep 19, 2025

    @zmatsuo
    Member

    scpの処理とメッセージの処理が関係あるんですね。
    調べます。

  7. zmatsuo commented on Sep 19, 2025

    @zmatsuo
    Member

    scp の処理とメッセージの処理は綿密な関係がありました。
    ウィンドウメッセージを使って色々処理を行っていました。

    ダイアログのGUI処理に加えて
    転送処理をウィンドウメッセージを使って行っています。
    分離したほうがよさそうです。(でもすぐに手を入れられそうにないです)

    メッセージ処理側に手を入れました。
    最後のウィンドウメッセージを処理した後
    少し(20ms)の間、処理を全力で行うようにしました。

    手もとでは同様な動作になりました。
    試していただけないでしょうか。

    https://github.com/TeraTermProject/teraterm/actions/runs/17864179853

  8. nmaya commented on Sep 19, 2025

    @nmaya
    Member

    修正ありがとうございます。
    スピードが戻りました。

  9. added
    Needs MFCThe nature of this issue requires a merge into the stable branch
    on Sep 19, 2025
  10. added this to the 5.6.0 milestone on Sep 19, 2025
  11. wangyugui-e16 commented on Sep 19, 2025

    @wangyugui-e16
    Author

    https://github.com/TeraTermProject/teraterm/actions/runs/17864179853
    works well here too.

    and the performance of 'SendfileSize=40960' is not bigger than default 'SendfileSize=4096' becuase the cpu usage is already high.

    Thanks a lot.

  12. nmaya commented on Sep 20, 2025

    @nmaya
    Member

    These are the remaining tasks.

    • write changelog
    • merge to main
    • merge to stable branch
  13. reopened this on Sep 20, 2025
  14. zmatsuo commented on Sep 23, 2025

    @zmatsuo
    Member

    main, stable_5_5 にもマージしました。
    クローズします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs ChangelogNeeds MFCThe nature of this issue requires a merge into the stable branch

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions