From owner-freebsd-pkg@freebsd.org Mon Feb 13 07:01:45 2017 Return-Path: Delivered-To: freebsd-pkg@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 2297FCDCD4E for ; Mon, 13 Feb 2017 07:01:45 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 06657E55 for ; Mon, 13 Feb 2017 07:01:45 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: by mailman.ysv.freebsd.org (Postfix) id 05BA5CDCD48; Mon, 13 Feb 2017 07:01:45 +0000 (UTC) Delivered-To: pkg@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 0565ACDCD47 for ; Mon, 13 Feb 2017 07:01:45 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A4398E54; Mon, 13 Feb 2017 07:01:44 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id dAdnc4v1GVQuxdAdoczfE4; Mon, 13 Feb 2017 00:01:42 -0700 X-Authority-Analysis: v=2.2 cv=BNTDlBYG c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=kj9zAlcOel0A:10 a=n2v9WMKugxEA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=vdLto_AOBGNaTLomfUkA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 8EA7C288; Sun, 12 Feb 2017 23:01:39 -0800 (PST) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id v1D71d4Y056355; Sun, 12 Feb 2017 23:01:39 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201702130701.v1D71d4Y056355@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Alan Somers cc: scrappy@freebsd.org, Brian Somers , freebsd-bugzilla@ayaken.net, cy@freebsd.org, pkg@freebsd.org Subject: Re: Bug 217055 - Consolidate random sleeps in periodic scripts In-Reply-To: Message from Alan Somers of "Sun, 12 Feb 2017 22:32:11 -0700." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 12 Feb 2017 23:01:39 -0800 X-CMAE-Envelope: MS4wfDlsGk5AfOzgSbl6ACj7o/0YT/nKyBEaSCLCYH2eig6nqDspl0oj/yYwp0xzMmFseLp3heE1yFrvs8kzxzERmtEWnKftCmvgQ7WMvBWGh4T2Dp3vSufi 7zOlSuyZ4P90xDi9uHooDifHWo+Gs3q/C2ui8Rk8G/uoT7Llvxe7MrTJAIr6k9hXMVeEo5Q9JCydRMy5t2DPZ13wUecYmfKWxXWEvqPGfp9Hy7Fb0Vy2gQh3 Y/6wWoPoYyNZNwDB1e9YYgk2PR6u/hWVXIlkoNaGiB2xn6ggoYhYAWT9yfLjw9LtX5zJqhwe/WPIUDPNHsOOx3rrs+XhpGHyv2qatTtPDPU= X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2017 07:01:45 -0000 In message , Alan Somers writes: > I propose that we remove the various anti-congestion sleeps from > different periodic scripts, and add a single anti-congestion sleep to > the very beginning. Does this sound like a good idea to all of you? > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217055 I think the problem with the sleeps is simply the sleeps. My original plan to put my sleep/fetch in the background was shot down by some who thought it wasn't simple enough. Secondly, we don't need sleeps every boot. Ntpd for example only needs a sleep twice a year max to fetch a new leapfile so, to have a sleep every boot would be annoying. The best solution to replace sleeps would be to put a list of files:URLs into a queue to be fetched by fetcher script which would fetch only needed files that boot (or in the case of ntp via periodic.conf twice a year). A single script with a queue of files to fetch with one anti-congestion sleep, preferably in the background. NTP, btw can (will) use the leapfile in /etc/ntp until a fresher copy is fetched. Let's remove all fetching functions from the various rc scripts and queue them up early in a fetcher rc script, preferably in the background if at all possible. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.