summaryrefslogtreecommitdiff
path: root/src/core/automount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-07-24 03:13:57 +0200
committerLennart Poettering <lennart@poettering.net>2015-07-24 03:13:57 +0200
commitdbf5cc473f94972c041a4b9beb299e94d66cba7f (patch)
treea60b642e326164fc374b50f37a07a48618308dab /src/core/automount.c
parentc5f44880ca35bc0246ddf90cbf2af45b10e4a4d5 (diff)
automount: lower the idle polling frequency a bit
The autofs kernel idle logic requires us to poll the kernel for idleness. This is of course suboptimal, but cannot be fixed without kernel change. Currently the polling frequency is set to 1/10 of the idle timeout. This is quite high, as seen in #571. Let's lower this to 1/3.
Diffstat (limited to 'src/core/automount.c')
-rw-r--r--src/core/automount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/automount.c b/src/core/automount.c
index 90b331f70e..342dd8f0a9 100644
--- a/src/core/automount.c
+++ b/src/core/automount.c
@@ -672,7 +672,7 @@ static int automount_start_expire(Automount *a) {
assert(a);
- timeout = now(CLOCK_MONOTONIC) + MAX(a->timeout_idle_usec/10, USEC_PER_SEC);
+ timeout = now(CLOCK_MONOTONIC) + MAX(a->timeout_idle_usec/3, USEC_PER_SEC);
if (a->expire_event_source) {
r = sd_event_source_set_time(a->expire_event_source, timeout);