Skip to content

Commit

Permalink
ansible: upgrade test-nearform_intel-ubuntu1604-x64-1
Browse files Browse the repository at this point in the history
Upgrade the first benchmark machine to Ubuntu 18.04.
  • Loading branch information
richardlau committed Oct 14, 2022
1 parent 45137d5 commit c7e4ed9
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ hosts:
user: admin
remote_env:
PATH: /opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
intel-ubuntu1604-x64-1: {ip: 92.51.196.114, build_test_v8: yes}
intel-ubuntu1804-x64-1: {ip: 92.51.196.114, build_test_v8: yes}
intel-ubuntu1604-x64-2: {ip: 92.51.196.115}


Expand Down
1 change: 1 addition & 0 deletions ansible/playbooks/jenkins/worker/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@

- hosts:
- test-*-ubuntu1604-x*
- test-*intel-ubuntu1804-x*
roles:
- linux-perf

Expand Down
10 changes: 10 additions & 0 deletions ansible/roles/build-test-v8/tasks/partials/ubuntu1804.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

#
# Install packages for V8 builds.
#

- name: install httplib2
ansible.builtin.apt:
name: ['python-httplib2', 'python3-httplib2']
state: present
6 changes: 6 additions & 0 deletions ansible/roles/linux-perf/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---

# sysctl handler

- name: update sysctl settings
ansible.builtin.command: sysctl -p /etc/sysctl.d/20-perf.conf
11 changes: 11 additions & 0 deletions ansible/roles/linux-perf/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,14 @@
file:
state: absent
path: "{{ tmp_folder }}"

- name: Allow monitoring
ansible.builtin.lineinfile:
create: yes
dest: "/etc/sysctl.d/20-perf.conf"
line: "{{ item.line }}"
regexp: "{{ item.regexp }}"
notify: update sysctl settings
with_items:
- { regexp: "kernel.perf_event_paranoid", line: "kernel.perf_event_paranoid = 2" }
tags: linux_perf

0 comments on commit c7e4ed9

Please sign in to comment.