Skip to content

Commit f615205

Browse files
committed
Add README
1 parent 3fffe21 commit f615205

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--
2+
Copyright lowRISC contributors.
3+
4+
SPDX-License-Identifier: MIT OR Apache-2.0
5+
-->
6+
7+
# parallel-cp
8+
9+
This is a very simple tool that performs parallel local file copy.
10+
11+
It's aimed at speeding up copying when one of the locally mounted file system is actually over network and therefore has high latency and `cp` or `rsync` is using tiny fraction of your network bandwidth or disk IO.
12+
13+
Being a simple tool, it has minimal error handling -- use with care.
14+
15+
## Usage
16+
17+
`parallel-cp <SRC> <DST>`
18+
19+
Both `<SRC>` and `<DST>` should be directories.
20+
They're not interpreted like `cp`: if you run `parallel-cp a b` and `b` is an existing directory, it does not copy `a` to `b/a`.
21+
This operates like `cp --no-target-directory`.
22+
Files nested under `<SRC>` with path `<SRC>/foo/bar` will be copied to `<DST>/foo/bar`.
23+
24+
By default this tool has parallel equal to the number of CPU cores.
25+
For network file systems, this might be further increased to improve throughput.
26+
You can set `RAYON_NUM_THREADS` to override the default.

0 commit comments

Comments
 (0)