Skip to content

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented May 26, 2021

The original implementation method removes files one by one using sftp.
If the latency of the remote server is high, it is very slow.
Thus, it's better to use system's rm to remove a directory, which may
save a lot of time.

Also, in some supercomputers, it's very slow to remove large numbers of files
(e.g. directory containing trajectory) due to bad I/O performance.
So an asynchronously option is provided.

Implement deepmodeling/dpgen#385. Close deepmodeling/dpgen#385.

The original implementation method removes files one by one using sftp.
If the latency of the remote server is high, it is very slow.
Thus, it's better to use system's `rm` to remove a directory, which may
save a lot of time.

Also, in some supercomputers, it's very slow to remove large numbers of files
(e.g. directory containing trajectory) due to bad I/O performance.
So an asynchronously option is provided.

Implement deepmodeling/dpgen#385. Close deepmodeling/dpgen#385.
@codecov-commenter
Copy link

codecov-commenter commented May 26, 2021

Codecov Report

Merging #26 (77d400b) into master (288d3e8) will increase coverage by 0.08%.
The diff coverage is 11.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   48.55%   48.64%   +0.08%     
==========================================
  Files          20       20              
  Lines        1697     1694       -3     
==========================================
  Hits          824      824              
+ Misses        873      870       -3     
Impacted Files Coverage Δ
dpdispatcher/ssh_context.py 16.94% <11.11%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 288d3e8...77d400b. Read the comment docs.

@felix5572 felix5572 merged commit 0bbe9a4 into deepmodeling:master May 26, 2021
@njzjz njzjz deleted the dpgen-385 branch June 5, 2021 17:57
njzjz pushed a commit to njzjz/dpdispatcher that referenced this pull request Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants