Bug#704125: parallel: stdout of commands is not deterministic

2015-01-07 Thread Nicolas Schier
#define _GNU_SOURCE #include #include #include #include #include #include #include void fork_child(unsigned nr) { char *s; pid_t pid; off_t pos[2]; int len, r; pid = fork(); if (pid < 0) error(EXIT_FAILURE, errno, "fork"); if (pid) return; len = asprintf(&s, "This is fork %u

Bug#704125: parallel: stdout of commands is not deterministic

2015-01-07 Thread Nicolas Schier
Dear Thomas, thanks for your detailed description. I could reproduce the behaviour on a 48 core machine. Even when running a dummy program (attached) that forks a lot and lets each fork simply output a line to stderr, I can reproduce the loss of output lines. For analysis I let the child pr

Bug#704125: parallel: stdout of commands is not deterministic

2013-03-28 Thread Thomas Lange
Package: moreutils Version: 0.41 I have a huge number of files in a directory (which is tmpfs mounted) > ls |wc -l 9010 > du -sh 12G > ls *.out |wc -l 5003 This is a 96GB RAM dual CPU hexacore machine, so I have 12 cores in all. Now I like to compute the md5sum of all files *.out in parallel