X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lists.alpinelinux.org (Postfix) with ESMTP id 9DC175C4478 for ; Thu, 16 Mar 2017 02:26:31 +0000 (GMT) Received: from piha.riseup.net (unknown [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 0C4AF1A2152; Thu, 16 Mar 2017 02:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1489631191; bh=d7g/M24SFppn7QVN3chJR38K9AbXqM0NwfqUp6ofLzg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kNrPjKRtmdQC+MFmXcGCalJFZ3JZRoZFLfgiHKhgWm++pxaVsPFJndQ1kbxiQ1297 oqri8LpfjP53mmZ0UCNcFHsDddsJkmqRf8nZhTcuvPwplQFzzJBPaX+9eYGgFAdS8t 2ju+KDdKE2DLjPHRk+64vtO4QtitdajezRz5H7nc= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: pickfire) with ESMTPSA id 696D01C05AD Date: Thu, 16 Mar 2017 10:26:13 +0800 From: Ivan Tham To: duanyao@ustc.edu Cc: alpine-devel@lists.alpinelinux.org, developer@it-offshore.co.uk Subject: Re: Re: [alpine-devel] Chronyd blocks boot for ~5s. How can I improve this? Message-ID: <20170316022613.5yGfYYkzo%pickfire@riseup.net> References: <7e90b44b-070f-12f0-76a4-c7ee7485759e@it-offshore.co.uk> In-Reply-To: Mail-Followup-To: Ivan Tham , duanyao@ustc.edu, developer@it-offshore.co.uk, alpine-devel@lists.alpinelinux.org X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I didn't notice slowdown with chronyd as I had enable rc_parallel. But I did notice that I have to wait for tor to finish starting up which to= ok some time and as well it is the last service to be started on boot. By the way duan yao, do you use IME in alpine? =E6=AE=B5=E5=9E=9A wrote: > =E5=9C=A8 2017/3/15 22:08, Stuart Cardall =E5=86=99=E9=81=93: >=20 > > I noticed this with chronyd too - now I use sntpc with: > > > > SNTPC_INTERVAL=3D"21600" > > > > set in /etc/conf.d/sntpc > > > > Stuart Cardall. > > > > > Great to know sntp. >=20 > I also found that I can workaround this issue by add `--background`=20 > option to `start-stop-daemon` in `/etc/init.d/chronyd`. > However don't know whether this breaks anything. >=20 > > On 03/15/2017 06:50 AM, =E6=AE=B5=E5=9E=9A wrote: > >> Hi, > >> > >> I'm new to Apline and just installed Apline 3.5.2 to hard disk (in=20 > >> Virtualbox, x86_64) with default options. During the boot, I note=20 > >> that chronyd takes ~5 seconds to start, which I think is too much.=20 > >> How can I improve this? > >> > >> Wireshark shows that there are 3~4 NTP requests sent during the boot= =20 > >> with a interval ~2s, I think this explains why chronyd takes so much= =20 > >> time to start. But why can't it do this in background? > >> > >> I try to start chronyd in command line, it also takes >5s before=20 > >> going to background: > >> > >> # rc-service chronyd stop > >> * Stopping chronyd ... > >> # time chronyd > >> real 0m 7.37s > >> user 0m 0.00s > >> sys 0m 0.00s > >> > >> However I failed to find an option for command line or configure file= =20 > >> to change this behavior. --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---