Improve performance for batch jobs 11/6711/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 5 Oct 2016 19:35:34 +0000 (21:35 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 5 Oct 2016 19:35:34 +0000 (21:35 +0200)
Change-Id: I352912676901cf7c13c8da2431a777b7d51b0ea6
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
packer/provision/agl_dependencies.sh

index 26a5dcb..fa2113a 100644 (file)
@@ -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