Skip to content

Commit

Permalink
load 8
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Feb 22, 2024
1 parent d4523d4 commit 0f947a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ your [personal access token](https://docs.github.com/en/github/authenticating-to
```bash
$ docker run --detach --name=cam --rm --volume "$(pwd):/dataset" \
-e "TOKEN=XXX" -e "TOTAL=1000" -e "TARGET=/dataset" \
--oom-kill-disable --memory=16g --memory-swap=32g --cpus=16 \
--oom-kill-disable --memory=16g --memory-swap=16g \
yegor256/cam:0.9.0 "make -e >/dataset/make.log 2>&1"
```

Expand Down
8 changes: 7 additions & 1 deletion help/parallel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs=$1
x=$2
if [ -z "${x}" ]; then x=1; fi

args=('--halt-on-error=now,fail=1' "--max-procs=$(echo "$(nproc) * ${x}" | bc)")
args=(
'--halt-on-error=now,fail=1'
'--halt=now,fail=1'
'--retries=3'
'--load=8'
"--max-procs=$(echo "$(nproc) * ${x}" | bc)"
)

uniq "${jobs}" | parallel "${args[@]}" "${SHELL}" -c
2 changes: 1 addition & 1 deletion steps/jpeek-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ done
start=$(date +%s%N)

if ! collect; then
echo "Failed to calculate jpeek metrics in ${repo} (${pos}/${total}) due to jpeek.jar error$("${LOCAL}/help/tdiff.sh" "${start}")"
echo "Failed to calculate jPeek metrics in ${repo} (${pos}/${total}) due to jpeek.jar error$("${LOCAL}/help/tdiff.sh" "${start}")"
exit
fi

Expand Down

0 comments on commit 0f947a6

Please sign in to comment.