diff options
author | Michael Halstead <mhalstead@linuxfoundation.org> | 2022-05-11 11:52:53 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-11 19:59:44 +0100 |
commit | 7b48f329aedc7fcb277302ba6ff167f22e5b1f22 (patch) | |
tree | 2437ce4421bd66e902256d5748539e3596a9f533 /scripts/autobuilder-worker-prereq-tests | |
parent | 936ed093007c45761eea58911779d2fc06bb4b3e (diff) | |
download | poky-7b48f329aedc7fcb277302ba6ff167f22e5b1f22.tar.gz |
scripts/autobuilder-worker-prereq-tests: add additional limit testing
Check that open file and user process limits are greater than or equal to what
the autobuilder uses.
(From OE-Core rev: 6149bd4d4e23f69371b645d4c5fc6706e2413130)
Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/autobuilder-worker-prereq-tests')
-rwxr-xr-x | scripts/autobuilder-worker-prereq-tests | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/autobuilder-worker-prereq-tests b/scripts/autobuilder-worker-prereq-tests index 3956349b30..572227dccd 100755 --- a/scripts/autobuilder-worker-prereq-tests +++ b/scripts/autobuilder-worker-prereq-tests | |||
@@ -51,6 +51,21 @@ if (( $WATCHES < 65000 )); then | |||
51 | echo 'Need to increase watches (echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf' | 51 | echo 'Need to increase watches (echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf' |
52 | exit 1 | 52 | exit 1 |
53 | fi | 53 | fi |
54 | OPEN_FILES=$(ulimit -n) | ||
55 | if (( $OPEN_FILES < 65535 )); then | ||
56 | echo 'Increase maximum open files in /etc/security/limits.conf' | ||
57 | echo '* soft nofile 131072' | ||
58 | echo '* hard nofile 131072' | ||
59 | exit 1 | ||
60 | fi | ||
61 | MAX_PROCESSES=$(ulimit -u) | ||
62 | if (( $MAX_PROCESSES < 514542 )); then | ||
63 | echo 'Increase maximum user processes in /etc/security/limits.conf' | ||
64 | echo '* hard nproc 515294' | ||
65 | echo '* soft nproc 514543' | ||
66 | exit 1 | ||
67 | fi | ||
68 | |||
54 | mkdir -p tmp/deploy/images/qemux86-64 | 69 | mkdir -p tmp/deploy/images/qemux86-64 |
55 | pushd tmp/deploy/images/qemux86-64 | 70 | pushd tmp/deploy/images/qemux86-64 |
56 | if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then | 71 | if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then |