From owner-freebsd-questions@freebsd.org Tue Oct 31 08:43:58 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 85C8EE52553 for ; Tue, 31 Oct 2017 08:43:58 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from gate.utahime.jp (ipq210.utahime.jp [183.180.29.210]) by mx1.freebsd.org (Postfix) with ESMTP id 5803869746 for ; Tue, 31 Oct 2017 08:43:57 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) by gate.utahime.jp (Postfix) with ESMTP id 0E46E18225; Tue, 31 Oct 2017 17:43:55 +0900 (JST) Received: from eastasia.home.utahime.org (localhost [127.0.0.1]) by localhost-backdoor.home.utahime.org (Postfix) with ESMTP id B3A802E48B; Tue, 31 Oct 2017 17:43:55 +0900 (JST) Received: from localhost (rolling.home.utahime.org [192.168.174.11]) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 69C9B2E48A; Tue, 31 Oct 2017 17:43:55 +0900 (JST) Date: Tue, 31 Oct 2017 17:43:01 +0900 (JST) Message-Id: <20171031.174301.1258442492129242359.yasu@utahime.org> To: freebsd-questions@freebsd.org Subject: Re: Ways to help investigating behavior of periodic scripts From: Yasuhiro KIMURA In-Reply-To: <656232e3-33bc-2301-ab4a-b6f390cbe581@qeng-ho.org> References: <20171031.080731.85349314815802482.yasu@utahime.org> <656232e3-33bc-2301-ab4a-b6f390cbe581@qeng-ho.org> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Oct 2017 08:43:58 -0000 From: Arthur Chance Subject: Re: Ways to help investigating behavior of periodic scripts Date: Tue, 31 Oct 2017 08:02:50 +0000 > If you're using the pkg system (which most people do) then the periodic > script > > /usr/local/etc/periodic/security/410.pkg-audit > > has at line 60 > > sleep `jot -r 1 0 3600` > > which sleeps for a random time between 0 seconds and 1 hour. This is to > avoid the "thundering herd" problem at the servers, and obviously can > cause the completion time to jitter by up to an hour. Yes, pkg is installed on my home server. So this is probably what I would like to investigate. Thank you for letting me know. --- Yasuhiro KIMURA