From 9668ebed9fe7a947ea9a165eeb7fdbc654f97b95 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Thu, 18 Jun 2015 13:37:31 +0000 Subject: [PATCH] Decrease vfs_cache_pressure on mm backend systems To decrease the crawl duration on the mirrors we have been recommending to lower the default value of vfs_cache_pressure from 100 to 10. This causes the kernel to prefer to keep dentries when under memory pressure. Let's also set it on the mm backend systems as umdl is mainly looking at the metadata. --- roles/mirrormanager/backend/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/mirrormanager/backend/tasks/main.yml b/roles/mirrormanager/backend/tasks/main.yml index 7958f005a5..1db228f430 100644 --- a/roles/mirrormanager/backend/tasks/main.yml +++ b/roles/mirrormanager/backend/tasks/main.yml @@ -63,3 +63,10 @@ tags: - config when: env != 'staging' + +# To decrease the crawl duration on the mirrors we have been +# recommending to lower the default value of vfs_cache_pressure +# from 100 to 10. This causes the kernel to prefer to keep dentries +# when under memory pressure. Let's also set it on the mm backend +# systems as umdl is also mainly looking at the metadata. +- sysctl: name=vm.vfs_cache_pressure value=10 state=present sysctl_set=yes reload=yes