Skip to content

Benchmarking Server Config

Lukas Rytz edited this page May 16, 2017 · 15 revisions

BIOS

IRC, Adriaan did

  • Load "optimized defaults"
  • Disable Hyper-Threading
  • Disable "Turbo Mode" (Turbo Boost)

System

scala@scalabench:~$ cat /etc/debian_version
8.8

scala@scalabench:~$ uname -a
Linux scalabench 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux

Init System

Debian 8 uses systemd by default.

  • systemctl to list all services
  • systemctl status cron to show status of a service

Configuration

Some changes done to the system

Allow scala to sudo without password

Run sudo visudo and added a line scala ALL=(ALL) NOPASSWD: ALL (https://askubuntu.com/a/147265).

Disable nfs

  • sudo systemctl disable nfs-common
  • sudo systemctl disable rpcbind

Disable exim4

sudo systemctl disable exim4

Installed packages

  • sudo apt-get install git
  • perf: sudo apt-get install linux-tools-3.16
  • cset: sudo apt-get install cpuset
  • sudo apt-get install numactl

Install Java

Following http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html

sudo nano /etc/apt/sources.list.d/java-webupd8team.list, add

deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886

scala@scalabench:~$ sudo apt-get update
scala@scalabench:~$ sudo apt-get install oracle-java8-installer

If there are multiple versions installed, update-alternatives --config java can be used to select one.

Install sbt

Following http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Linux.html

  • sudo nano /etc/apt/sources.list.d/sbt.list, add deb https://dl.bintray.com/sbt/debian /.
  • sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
  • sudo apt-get install apt-transport-https to support apt-get update over https
  • sudo apt-get update
  • sudo apt-get install sbt

Jenkins Slave

ssh [email protected]
sudo adduser jenkins

ssh [email protected]
mkdir .ssh
chmod 700 .ssh
cd .ssh
touch authorized_keys
chmod 600 authorized_keys
nano authorized_keys

Add

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDDdAtS0v8iZpZS7zNU2VogH6GznIqH7ILZLF1J0eef9W1oo3G9euLCcOYYv7YgzWdVkaynuwatnUvUAt1B5EgS9L106J2pcRkLvx0sOQIY7QsnqIffzwBviuV0dLO6CAkncoH0R+Q/rywF/ialsknAnZKXQQwVEPHfFzfOcIwqvXdKxVlFYEjcB8dxrflxGh0Ncxf+iuHRb1kgP3hvGcaYu21jiUIzJbsjkvqypZLsKxGWVhSbLJGzFrWJ9HjiM5Uhgek8t/3fdO68zGUolqdRDWYIxR/KBUTMC37WAiUmSWrx8gM0L0OPz2QLYwapTbqSJ92o95woLkprvO7iqyEyg5UB3mxRJzD2WDNC9nLQFpV7C1Xo+yWorQt3M3g3f01t7kehlwHCKpdKW06o7uVCLdb+qxVJiYnbjmTZSD2sr/u2vet6vrIdYatlj/C++qkfQGwrUcGD318cZ8Nl/s0LOj3T5UPapq9nmjrrZIXznCbZI/kOzZReM6EussGLAoI0MeMuMMywtpW6QhhRVG6zJT1afdyqsyN1l5cXFtHpWQo6Dd+x8ANYncJBKYND2npG8n1a0FzixViBGWHRpga4EY3r2LZG4mD3OQVy+6mtre3hoT4bgn/vIRmtqsx1aHmFVQaIRCm0lzKfhgQY8LYIEop6iYLEBLJjdwvRySZsLQ==
Clone this wiki locally