From owner-freebsd-pkg@freebsd.org Mon Feb 13 15:54:22 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 9B020CDD83C for ; Mon, 13 Feb 2017 15:54:22 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 797001C2F for ; Mon, 13 Feb 2017 15:54:22 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 75C20CDD83A; Mon, 13 Feb 2017 15:54:22 +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 75654CDD839 for ; Mon, 13 Feb 2017 15:54:22 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 312891C2D; Mon, 13 Feb 2017 15:54:22 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-yw0-x233.google.com with SMTP id w75so52034495ywg.1; Mon, 13 Feb 2017 07:54:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Hrtkf7MT3jYZ3HzT3oforrSF3ur7PDCsF/rIw/D3iEA=; b=nI2ISLMZQL8XO5kIVeGysUteK7Zy69ZTeuiyT9yCoF1og8WqWACJLVBOIAd3la8jAg 7g5YdGA1zPKtCV4bM/mT+lh4Jg6dXvE1cm93xHfIIOvovhWttNAFD3ABFi61ZzmeqbnZ PFXxkXKC2pvmWh2e9/H+K0stylqtyILCI1rU494Gzc8qdRw2W5MhtZD+ONa+AtQZqaPg BOM0Zx8qeTbqg6LnaUZ4uNVeoEWDgLeRuurvLhZDosEe9mJ0IsHA9laajihk4iDdJqDf KL7NXUio8X/m8JjohwX9wTIBW7pz+emEHWYmUpf5jRHrA71kNCabo7u1EH4VOrP4JcWI mLvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Hrtkf7MT3jYZ3HzT3oforrSF3ur7PDCsF/rIw/D3iEA=; b=tJZmR3j1/D5mAZogSmbRJ6Hdkzmb6/g8uJhgtwr6PftQeyPTbm9YzsVQmfHkk2H3fN bLFDLnxEmIEdefvK7i39METo6Ck514fo7jqtluSInDRc/XHRQdT/+mnSYG0+3hIOjNop yPn2v8tTcW518xj0T4AxfY/fgNa2ddYKifYTbJEwd1HJnLKRaepoEyKbNbukSMwLS7oG 0qZto9RXfA7wAN2UD1eUVVqoloqukqdsiXHTXwc04wItNsuXxFvioDi3y5bj96psjnj8 kbtfukRDYXHD8/DjyWvmUYAZMo/p+ysGzX4jAOaA4DNZ/lQzzOIbNG1cQ1oNV3Cl/QkS MUJQ== X-Gm-Message-State: AMke39nL7rzaN0d2Fq3bT8dYWQlZsFhUTAd89xsGWuN4IFv4IEBaBjyQDl2r1HXZA4xTl1mbltWi2t++Ye60KA== X-Received: by 10.129.141.6 with SMTP id d6mr17599432ywg.36.1487001261316; Mon, 13 Feb 2017 07:54:21 -0800 (PST) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.129.38.133 with HTTP; Mon, 13 Feb 2017 07:54:20 -0800 (PST) In-Reply-To: <201702130701.v1D71d4Y056355@slippy.cwsent.com> References: <201702130701.v1D71d4Y056355@slippy.cwsent.com> From: Alan Somers Date: Mon, 13 Feb 2017 08:54:20 -0700 X-Google-Sender-Auth: WBHMi-MH1mC-ZkC_EY3h-YKMQsI Message-ID: Subject: Re: Bug 217055 - Consolidate random sleeps in periodic scripts To: Cy Schubert Cc: scrappy@freebsd.org, Brian Somers , freebsd-bugzilla@ayaken.net, Cy Schubert , pkg@freebsd.org Content-Type: text/plain; charset=UTF-8 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 15:54:22 -0000 On Mon, Feb 13, 2017 at 12:01 AM, Cy Schubert wrote: > In message om> > , 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. Unfortunately that won't work, Cy. Some scripts may need to dynamically determine what files to fetch, in a way that we can't do in a single separate fetcher script. Worse, some scripts, like 300.statistics from sysutils/bsdstats, need to _post_ a URL, not get one. -Alan