Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak GNU parallel arguments #328

Closed
holtgrewe opened this issue Jan 10, 2023 · 2 comments · Fixed by #331 or #337
Closed

Tweak GNU parallel arguments #328

holtgrewe opened this issue Jan 10, 2023 · 2 comments · Fixed by #331 or #337

Comments

@holtgrewe
Copy link
Member

Sometimes GNU parallel fails because multiple hosts touch the same file in $HOME:

parallel: This should not happen. You have found a bug. Please follow
https://www.gnu.org/software/parallel/man.html#reporting-bugs

Include this in the report:
* The version number: 20221122
* The bugid: Cannot read /data/gpfs-1/users/holtgrem_c/.parallel/tmp/sshlogin/hpc-cpu-144/linelen
* The command line being run
* The files being read (put the files on a webserver if they are big)

We should rather use a custom --workdir and --plain.

For example:

mkdir -p $TMPDIR/parallel
cat $TMPDIR/final_intervals.txt \
| parallel --workdir $TMPDIR/parallel --plain -j $num_threads 'run-shard {{#}} {{}}'
holtgrewe added a commit that referenced this issue Jan 10, 2023
This actually overrides TMPDIR in the called bash functions.
holtgrewe added a commit that referenced this issue Jan 10, 2023
This actually overrides TMPDIR in the called bash functions.
@holtgrewe holtgrewe reopened this Jan 10, 2023
@holtgrewe
Copy link
Member Author

holtgrewe commented Jan 10, 2023

We probably need to

  • report the bug
  • put a random sleep before the invocation

@holtgrewe
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant