aboutsummaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2016-10-05 21:35:34 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2016-10-05 21:35:34 +0200
commite40491768ca581740a3fdbe323cf5cbe0d8a72d2 (patch)
treef38983bbc4ccc634c51b2eb75a9e071c3a95b35a /packer
parent673242493efc32b731ef94a5ac8a8eed0707cd59 (diff)
Improve performance for batch jobs
Change-Id: I352912676901cf7c13c8da2431a777b7d51b0ea6 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'packer')
-rw-r--r--packer/provision/agl_dependencies.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/packer/provision/agl_dependencies.sh b/packer/provision/agl_dependencies.sh
index 26a5dcb5..fa2113ac 100644
--- a/packer/provision/agl_dependencies.sh
+++ b/packer/provision/agl_dependencies.sh
@@ -33,6 +33,15 @@ cat <<EOFHOSTS >> /etc/hosts
EOFHOSTS
+cat <<EOFSYSCTL >> /etc/sysctl.conf
+# we have a lot of make jobs, this helps a lot
+kernel.sched_child_runs_first = 1
+# smooth over a lot of I/O requests and do less blocking
+vm.dirty_background_ratio = 5
+vm.dirty_ratio = 80
+
+EOFSYSCTL
+
# clone lava-boot to /opt/AGL/
mkdir -p /opt/AGL/
cd /opt/AGL/
@@ -41,7 +50,8 @@ cd lava-boot
sed -i '16iimport ssl' lava-boot
sed -i '17issl._create_default_https_context = ssl._create_unverified_context' lava-boot
-
+# AGL specific lab integration. To be moved into git repo and cloned or the like.
+#################################################################################
mkdir -p /opt/AGL/lava-agl/
cat <<EOFBR >> /opt/AGL/lava-agl/boardready.py
#!/usr/bin/python