Periodic jobs lockf timeout

RW rwmaillists at googlemail.com
Tue Oct 24 15:08:00 UTC 2017


On Tue, 24 Oct 2017 11:07:31 +0200
Borja Marcos wrote:

> Hi,
> 
> I’ve come across a problem with the “daily” security job. On an
> overloaded system with lots of ZFS datasets, lots of files, heavy
> system load and, to add insult to injury, a ZFS crub going on the
> find’s issued by the periodic checks can take forever. They can take
> so long, I have found several lockf’s waiting.
> 
> Is it sane to have an unlimited timeout for lockf? Probably it would
> be better to have at least a configurable timeout 

What problem does this solve?


> 
> There’s even a parameter on /etc/defaults/periodic.conf but it seems
> it’s not used right now.
> 
> # Max time to sleep to avoid causing congestion on download servers
> anticongestion_sleeptime=3600

In 11.1  it's used in the file it's defined in:

   sleep `jot -r 1 0 ${anticongestion_sleeptime}`


More information about the freebsd-hackers mailing list