#!/bin/bash
set -e
set -x
set -o pipefail
cd strace-8.0.2-lts-8.5-a
mkdir ../edo
find . -name '*.lz' -print0 | nice time xargs -0 -n1 -P4 bash /mit/ghc/src/random/strace-single-lz-process.sh
# P4 was faster than P4.  Total time 2 h 5 min
#consider omitting 00-10ghcconfigure
cd ../edo
# sort -S6G can speed things up
find . -name '*.ken1' -not -name '00-*ghcinstall*' -print0 | nice time sort --files0-from=- | uniq -c > ../sedo
# 3 minutes to sort 298% CPU
