summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Halstead <mhalstead@linuxfoundation.org>2022-05-11 11:52:53 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-11 19:59:44 +0100
commit7b48f329aedc7fcb277302ba6ff167f22e5b1f22 (patch)
tree2437ce4421bd66e902256d5748539e3596a9f533
parent936ed093007c45761eea58911779d2fc06bb4b3e (diff)
downloadpoky-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>
-rwxr-xr-xscripts/autobuilder-worker-prereq-tests15
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
53fi 53fi
54OPEN_FILES=$(ulimit -n)
55if (( $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
60fi
61MAX_PROCESSES=$(ulimit -u)
62if (( $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
67fi
68
54mkdir -p tmp/deploy/images/qemux86-64 69mkdir -p tmp/deploy/images/qemux86-64
55pushd tmp/deploy/images/qemux86-64 70pushd tmp/deploy/images/qemux86-64
56if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then 71if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then