Skip to content

Commit 49e060f

Browse files
authored
Merge pull request #743 from Kobzol/rustc-perf-disable-swap
Disable swap on rustc-perf
2 parents 8cee6be + 3f47996 commit 49e060f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ansible/playbooks/rustc-perf.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,17 @@
124124
daemon_reload: yes
125125
become: yes
126126

127+
- name: Disable swap for current session
128+
command: swapoff -a
129+
become: true
130+
131+
- name: Disable swap permanently, persist reboots
132+
replace:
133+
path: /etc/fstab
134+
regexp: '^(\s*)([^#\n]+\s+)(\w+\s+)swap(\s+.*)$'
135+
replace: '#\1\2\3swap\4'
136+
backup: yes
137+
127138
# Periodically clean old entries in /tmp
128139
- name: Configure systemd-tmpfiles to clean old /tmp dirs
129140
copy:

0 commit comments

Comments
 (0)