util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] fstrim: add random delay to systemd timer
@ 2018-12-17 12:44 Christian Hesse
  2018-12-17 20:45 ` Ruediger Meier
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Hesse @ 2018-12-17 12:44 UTC (permalink / raw)
  To: util-linux; +Cc: Christian Hesse

The fstrim timer tends to fire simultaneously with other timers like
updatedb. As fstrim is not time criticaly let's add a random delay of
up to an hour.

Signed-off-by: Christian Hesse <mail@eworm.de>
---
 sys-utils/fstrim.timer | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys-utils/fstrim.timer b/sys-utils/fstrim.timer
index 3a3762d5c..dd3328e2a 100644
--- a/sys-utils/fstrim.timer
+++ b/sys-utils/fstrim.timer
@@ -5,6 +5,7 @@ Documentation=man:fstrim
 [Timer]
 OnCalendar=weekly
 AccuracySec=1h
+RandomizedDelaySec=1h
 Persistent=true
 
 [Install]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-18  9:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-17 12:44 [PATCH 1/1] fstrim: add random delay to systemd timer Christian Hesse
2018-12-17 20:45 ` Ruediger Meier
2018-12-17 21:15   ` Christian Hesse
2018-12-17 22:13     ` Ruediger Meier
2018-12-18  9:45       ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).