From 8d2bb4c8bb46ee0e212133001badd89ed5405f44 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Fri, 30 Mar 2018 12:22:42 -0500 Subject: [PATCH] Add mount options for better machinectl performance The machinectl default options, while functional, could be tuned for better overall performance. This change adds several options which will ensure container workloads are using the lest amount of storage with the best possible performance. For more information on the options being used see * https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs(5)#MOUNT_OPTIONS Change-Id: Idb47c008819a3f9e917fe1cac46e228d83683d21 Signed-off-by: Kevin Carter --- tests/roles/bootstrap-host/tasks/prepare_loopback_machines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/roles/bootstrap-host/tasks/prepare_loopback_machines.yml b/tests/roles/bootstrap-host/tasks/prepare_loopback_machines.yml index 969248f1c9..f414f7dfc4 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_loopback_machines.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_loopback_machines.yml @@ -35,7 +35,7 @@ systemd_mounts: - what: "/openstack/machines.img" where: "/var/lib/machines" - options: "loop" + options: "loop,defaults,noatime,nodiratime,compress=lzo,commit=120,{{ (ansible_kernel is version_compare('4.5', '>=')) | ternary('space_cache=v2', 'space_cache') }}" type: "btrfs" state: 'started' enabled: true