Skip to content

Commit 123bb68

Browse files
author
Danielle Sikich
authored
Merge pull request #76 from hpc/freeing-sync-lists
Freeing sync lists
2 parents ce8f525 + 1bf9bc8 commit 123bb68

File tree

14 files changed

+173
-124
lines changed

14 files changed

+173
-124
lines changed

doc/man/man1/dbcast.1

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Automatically generated by Pandoc 1.19.1
1+
.\" Automatically generated by Pandoc 1.19.2
22
.\"
33
.TH "DBCAST" "1" "" "" ""
44
.hy
@@ -7,40 +7,52 @@
77
dbcast \- distributed broadcast
88
.SH SYNOPSIS
99
.PP
10-
\f[B]dbcast CHUNK_SIZE SRC_FILE DEST_FILE\f[]
10+
\f[B]dbcast [OPTION] SRC DEST\f[]
1111
.SH DESCRIPTION
1212
.PP
13-
Parallel MPI application to recursively broadcast a file from a global
14-
file system to node\-local storage.
13+
Parallel MPI application to recursively broadcast a single file from a
14+
global file system to node\-local storage, like ramdisk or an SSD.
1515
.PP
16-
dbcast helps one copy a source file to node\-local storage on each
17-
compute node.
18-
.PP
19-
The file is logically sliced at chunk boundaries as specified by
20-
CHUNK_SIZE and collectively copied from a global file system to
16+
The file is logically sliced into chunks and collectively copied from a
17+
global file system to node\-local storage.
18+
The source file SRC must be readable by all MPI processes.
19+
The destination file DEST should be the full path of the file in
2120
node\-local storage.
22-
The CHUNK_SIZE parameter should be specified in bytes, and one may use
23-
units like "MB" or "GB".
24-
It is recommended to use the stripe size of a file if this is known.
25-
The path to the source file should be given in SRC_FILE.
26-
The source file should be in a path readable by all MPI processes.
27-
The destination path is given in DEST_FILE.
28-
The destination file should be a path to a node\-local storage location,
29-
like ramdisk or an SSD.
30-
.PP
31-
In its current implementation, the tool requires at least two MPI
32-
processes per compute node, and all compute nodes should have the same
21+
If needed, parent directories for the destination file will be created
22+
as part of the broadcast.
23+
.PP
24+
In the current implementation, dbcast requires at least two MPI
25+
processes per compute node, and all compute nodes must run an equal
3326
number of MPI processes.
3427
.SH OPTIONS
28+
.TP
29+
.B \-s, \-\-size SIZE
30+
The chunk size in bytes used to segment files during the broadcast.
31+
Units like "MB" and "GB" should be immediately follow the number without
32+
spaces (ex.
33+
2MB).
34+
The default size is 1MB.
35+
It is recommended to use the stripe size of a file if this is known.
36+
.RS
37+
.RE
38+
.TP
39+
.B \-h, \-\-help
40+
Print the command usage, and the list of options available.
41+
.RS
42+
.RE
3543
.SH EXAMPLES
3644
.IP "1." 3
37-
To broadcast a file to /ssd on each node slicing at 1MB chunks:
45+
To broadcast a file to /ssd on each node:
3846
.PP
39-
mpirun \-np 128 dbcast 1MB /global/path/to/filenane /ssd/filename
47+
mpirun \-np 128 dbcast /global/path/to/filenane /ssd/filename
4048
.IP "2." 3
49+
Same thing, but slicing at 10MB chunks:
50+
.PP
51+
mpirun \-np 128 dbcast \-s 10MB /global/path/to/filenane /ssd/filename
52+
.IP "3." 3
4153
To read the current striping parameters of a file on Lustre:
4254
.PP
43-
lfs getstripe /path/to/file
55+
lfs getstripe /global/path/to/filename
4456
.SH SEE ALSO
4557
.PP
4658
\f[C]dbcast\f[] (1).

doc/man/man1/dchmod.1

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Automatically generated by Pandoc 1.19.1
1+
.\" Automatically generated by Pandoc 1.19.2
22
.\"
33
.TH "DCHMOD" "1" "" "" ""
44
.hy
@@ -10,7 +10,7 @@ dchmod \- distributed tool to set permissions and group
1010
\f[B]dchmod [OPTION] PATH...\f[]
1111
.SH DESCRIPTION
1212
.PP
13-
Parallel MPI application to recurseively change permissions and/or group
13+
Parallel MPI application to recursively change permissions and/or group
1414
from a top level directory.
1515
.PP
1616
dchmod provides functionality similar to \f[I]chmod(1)\f[] and
@@ -31,19 +31,23 @@ Change group to specified GROUP name.
3131
.RE
3232
.TP
3333
.B \-m, \-\-mode MODE
34-
The mode that you want the file or directory to be.
34+
The mode to apply to each item.
3535
MODE may be octal or symbolic syntax similar to chmod(1).
3636
In symbolic notation, "ugoa" are supported as are "rwxX".
37+
As with chmod, if no leading letter "ugoa" is provided, mode bits are
38+
combined with umask to determine the actual mode.
3739
.RS
3840
.RE
3941
.TP
4042
.B \-\-exclude REGEX
41-
Do not modify items whose full path matches REGEX (regexec).
43+
Do not modify items whose full path matches REGEX, processed by
44+
regexec(3).
4245
.RS
4346
.RE
4447
.TP
4548
.B \-\-match REGEX
46-
Only modify items whose full path matches REGEX (regexec).
49+
Only modify items whose full path matches REGEX, processed by
50+
regexec(3).
4751
.RS
4852
.RE
4953
.TP
@@ -55,10 +59,9 @@ full path.
5559
.TP
5660
.B \-v, \-\-verbose
5761
Run in verbose mode.
58-
Prints a list of statistics/timing data for the command.
59-
How many files walked, how many levels there are in the tree, and how
60-
many files the command operated on.
61-
This option also prints the files/sec for each of those.
62+
Prints a list of statistics including the number of files walked, the
63+
number of levels there are in the directory tree, and the number of
64+
files the command operated on, and the files/sec rate for each of those.
6265
.RS
6366
.RE
6467
.TP
@@ -72,13 +75,12 @@ Use octal mode to change permissions:
7275
.PP
7376
mpirun \-np 128 dchmod \-\-mode 755 /directory
7477
.IP "2." 3
75-
Use symbolic mode to change permissions (you can list modes for user,
76-
group, etc if you separate them with a comma):
78+
Set group and mode in a single command using symbolic mode:
7779
.PP
78-
mpirun \-np 129 dchmod \-\-group mygroup \-\-mode u+r,g+rw /directory
80+
mpirun \-np 128 dchmod \-\-group mygroup \-\-mode u+r,g+rw /directory
7981
.IP "3." 3
80-
Change permissions to u+rw on all files/directories EXCEPT those whose
81-
name match regex:
82+
Change permissions to u+rw on all items EXCEPT those whose name match
83+
regex:
8284
.PP
8385
mpirun \-np 128 dchmod \-\-name \-\-exclude \[aq]afilename\[aq] \-\-mode
8486
u+rw /directory

doc/man/man1/dcmp.1

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Automatically generated by Pandoc 1.19.1
1+
.\" Automatically generated by Pandoc 1.19.2
22
.\"
33
.TH "DCMP" "1" "" "" ""
44
.hy
@@ -7,28 +7,22 @@
77
dcmp \- distributed compare
88
.SH SYNOPSIS
99
.PP
10-
\f[B]dcmp [OPTION] SOURCE DEST \f[]
10+
\f[B]dcmp [OPTION] SRC DEST \f[]
1111
.SH DESCRIPTION
1212
.PP
13-
Parallel MPI application to compare two files or to recurseively compare
14-
files with same prefix path within two different directories.
15-
This tool is similar to \f[I]cmp(1)\f[].
16-
It reports how many files in two different directories are the same (or
17-
different).
13+
Parallel MPI application to compare two files or to recursively compare
14+
files with same relative paths within two different directories.
1815
.PP
1916
dcmp provides functionality similar to a recursive \f[I]cmp(1)\f[].
17+
It reports how many files in two different directories are the same (or
18+
different).
2019
.SH OPTIONS
2120
.TP
2221
.B \-b, \-\-base
2322
Do a base comparison.
2423
.RS
2524
.RE
2625
.TP
27-
.B \-o, \-\-output <FIELD0=STATE0@FIELD1=STATE1,FIELD2=STATE2:FILE>
28-
write output fields and states to a file.
29-
.RS
30-
.RE
31-
.TP
3226
.B \-v, \-\-verbose
3327
Run in verbose mode.
3428
Prints a list of statistics/timing data for the command.

doc/man/man1/dcp.1

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Automatically generated by Pandoc 1.19.1
1+
.\" Automatically generated by Pandoc 1.19.2
22
.\"
33
.TH "DCP" "1" "" "" ""
44
.hy
@@ -7,7 +7,7 @@
77
dcp \- distributed copy
88
.SH SYNOPSIS
99
.PP
10-
\f[B]dcp [OPTION] SOURCE DEST\f[]
10+
\f[B]dcp [OPTION] SRC DEST\f[]
1111
.SH DESCRIPTION
1212
.PP
1313
Parallel MPI application to recursively copy files and directories.
@@ -51,11 +51,11 @@ Print a brief message listing the \f[I]dcp(1)\f[] options and usage.
5151
.SH RESTRICTIONS
5252
.PP
5353
If a long\-running copy is interrupted, one should delete the partial
54-
copy and rerun dcp from the beginning.
54+
copy and run dcp again from the beginning.
5555
One may use drm to quickly remove a partial copy of a large directory
5656
tree.
5757
.PP
58-
To ensure the copy was successful, one should run dcmp after dcp
58+
To ensure the copy is successful, one should run dcmp after dcp
5959
completes to verify the copy, especially if dcp was not run with the \-s
6060
option.
6161
.SH EXAMPLES
@@ -76,9 +76,7 @@ mpirun \-np 128 dcp \-p /source/dir1/ /dest/dir2
7676
Using the \-S option for sparse files does not work yet at LLNL.
7777
If you try to use it then dcp will default to a normal copy.
7878
.PP
79-
The \-g option is still being developed.
80-
.PP
81-
The maximum supported filename length for any file transfered is
79+
The maximum supported file name length for any file transferred is
8280
approximately 4068 characters.
8381
This may be less than the number of characters that your operating
8482
system supports.

doc/man/man1/dfilemaker.1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Automatically generated by Pandoc 1.19.1
1+
.\" Automatically generated by Pandoc 1.19.2
22
.\"
33
.TH "DFILEMAKER" "1" "" "" ""
44
.hy
@@ -19,7 +19,7 @@ they actually exist? Unless there is another version of the code
1919
somewhere?\f[]
2020
.TP
2121
.B \-d, \-\-depth=\f[I]min\f[]\-\f[I]max\f[]
22-
Specify the depth of the filesystem tree to generate.
22+
Specify the depth of the file system tree to generate.
2323
The depth will be selected at random within the bounds of min and max.
2424
The default depth is set to 10 min, 20 max.
2525
.RS
@@ -60,7 +60,7 @@ The default file size is set from 1MB to 5MB.
6060
.RE
6161
.TP
6262
.B \-w, \-\-width=\f[I]min\f[]\-\f[I]max\f[]
63-
Specify the width of the filesystem tree to generate.
63+
Specify the width of the file system tree to generate.
6464
The width will be selected at random within the bounds of min and max.
6565
The width of the tree is determined by counting directories.
6666
The default width is set to 10 min, 20 max.
@@ -88,4 +88,4 @@ Print version information and exit.
8888
\f[C]dwalk\f[] (1).
8989
.PP
9090
The mpiFileUtils source code and all documentation may be downloaded
91-
from <http://fileutils.io>
91+
from <https://github.com/hpc/mpifileutils>

doc/man/man1/dfind.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Automatically generated by Pandoc 1.19.1
1+
.\" Automatically generated by Pandoc 1.19.2
22
.\"
33
.TH "DFIND" "1" "" "" ""
44
.hy

doc/man/man1/dgrep.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Automatically generated by Pandoc 1.19.1
1+
.\" Automatically generated by Pandoc 1.19.2
22
.\"
33
.TH "DGREP" "1" "" "" ""
44
.hy

doc/man/man1/dparallel.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Automatically generated by Pandoc 1.19.1
1+
.\" Automatically generated by Pandoc 1.19.2
22
.\"
33
.TH "DPARALLEL" "1" "" "" ""
44
.hy
@@ -35,4 +35,4 @@ Print version information and exit.
3535
\f[C]dwalk\f[] (1).
3636
.PP
3737
The mpiFileUtils source code and all documentation may be downloaded
38-
from <http://fileutils.io>
38+
from <https://github.com/hpc/mpifileutils>

doc/man/man1/drm.1

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" Automatically generated by Pandoc 1.19.1
1+
.\" Automatically generated by Pandoc 1.19.2
22
.\"
33
.TH "DRM" "1" "" "" ""
44
.hy
@@ -13,12 +13,8 @@ drm \- distributed remove
1313
Parallel MPI application to recursively delete a directory and its
1414
contents.
1515
.PP
16-
drm is a tool for removing files recurseivly in parallel.
17-
drm is similar to \f[I]rm(1)\f[], but unlike \f[I]rm(1)\f[] there is no
18-
need to pass a recursive option as files will be removed from the top
19-
level directory to the bottom of the file tree by default.
20-
.PP
21-
Be careful: it behaves like \f[I]rm \-rf\f[], but it is much faster.
16+
drm is a tool for removing files recursively in parallel.
17+
Be careful: drm behaves like \f[I]rm \-rf\f[], but it is much faster.
2218
.SH OPTIONS
2319
.TP
2420
.B \-i, \-\-input FILE
@@ -36,14 +32,15 @@ Walk file system without stat.
3632
.IP
3733
.nf
3834
\f[C]
39-
Do\ not\ remove\ items\ whose\ full\ path\ matches\ REGEX\ (regexec).
35+
Do\ not\ remove\ items\ whose\ full\ path\ matches\ REGEX,\ processed\ by\ regexec(3).
4036
\f[]
4137
.fi
4238
.RS
4339
.RE
4440
.TP
4541
.B \-\-match REGEX
46-
Only remove items whose full path matches REGEX (regexec).
42+
Only remove items whose full path matches REGEX, processed by
43+
regexec(3).
4744
.RS
4845
.RE
4946
.TP
@@ -54,9 +51,10 @@ full path.
5451
.RE
5552
.TP
5653
.B \-d, \-\-dryrun
57-
Print out a list of files that \f[B]would\f[] be deleted.
54+
Print a list of files that \f[B]would\f[] be deleted without deleting
55+
them.
5856
This is useful to check list of items satisfying \-\-exclude or
59-
\-\-match options without deleting them.
57+
\-\-match options before actually deleting anything.
6058
.RS
6159
.RE
6260
.TP
@@ -80,7 +78,7 @@ directory tree:
8078
.PP
8179
mpirun \-np 128 drm \-\-match \[aq].core$\[aq] /dir/to/delete/from
8280
.IP "3." 3
83-
List items that would be deleted, without removing them:
81+
List items that would be deleted without removing them:
8482
.PP
8583
mpirun \-np 128 drm \-\-dryrun \-\-match \[aq].core$\[aq]
8684
/dir/to/delete/from

0 commit comments

Comments
 (0)