File tree 3 files changed +14
-1
lines changed
fixtures/ansible/roles/drop-caches
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ Drops the page cache and SLAB objects as documented in https://www.kernel.org/doc/Documentation/sysctl/vm.txt.
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Run sync to minimize the number of dirty objects on the system
3
+ command : /bin/sync
4
+ become : true
5
+
6
+ # Give sync a little bit of time to finish. For rationale see notes in https://linux.die.net/man/8/sync.
7
+ - pause :
8
+ seconds : 3
9
+
10
+ - name : Free slab objects and pagecache
11
+ command : echo 3 > /proc/sys/vm/drop_caches
12
+ become : true
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ NIGHT_RALLY_HOME="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
29
29
# Night Rally is *always* the master for assets
30
30
ASSET_SOURCE=" ${NIGHT_RALLY_HOME} /external/pages/*"
31
31
32
- ANSIBLE_ALL_TAGS=(encryption-at-rest initialize-data-disk trim)
32
+ ANSIBLE_ALL_TAGS=(encryption-at-rest initialize-data-disk trim drop-caches )
33
33
ANSIBLE_SKIP_TAGS=( )
34
34
ANSIBLE_SKIP_TAGS_STRING=" "
35
35
SELF_UPDATE=NO
You can’t perform that action at this time.
0 commit comments