[Bug 217055] Consolidate random sleeps in periodic scripts

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 13 05:28:03 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217055

            Bug ID: 217055
           Summary: Consolidate random sleeps in periodic scripts
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: conf
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: asomers at FreeBSD.org

On my system, there are three separate periodic scripts that try to sleep for a
random amount of time to reduce congestion on a download server somewhere:
300.statistics (from sysutils/bsdstat), 410.pkg-audit (from ports-mgmt/pkg),
and 480.leapfile-ntpd (from the base).  There may be more throughout the ports
tree.  A single sleep would be sufficient, but if all three scripts decide to
sleep, the total sleep time can get quite long.

I propose we add a 000.anticongestion periodic script, enabled by default for
daily, weekly, and monthly.  It will sleep for 0 - 60 minutes, unless periodic
is being run interactively.  Then we can remove the sleep in 480.leapfile-ntpd,
and conditionalize the ports sleeps on __FreeBSD_version.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list