4 3

[alpine-devel] Chronyd blocks boot for ~5s. How can I improve this?

段垚
Details
Message ID
<c41959f4-67b7-20f0-42c9-e61b9ecb8b6a@ustc.edu>
Sender timestamp
1489560602
DKIM signature
missing
Download raw message
Hi,

I'm new to Apline and just installed Apline 3.5.2 to hard disk (in 
Virtualbox, x86_64) with default options. During the boot, I note that 
chronyd takes ~5 seconds to start, which I think is too much. How can I 
improve this?

Wireshark shows that there are 3~4 NTP requests sent during the boot 
with a interval ~2s, I think this explains why chronyd takes so much 
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 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 to 
change this behavior.

Regards,
Duan, Yao




---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Stuart Cardall
Details
Message ID
<7e90b44b-070f-12f0-76a4-c7ee7485759e@it-offshore.co.uk>
In-Reply-To
<c41959f4-67b7-20f0-42c9-e61b9ecb8b6a@ustc.edu> (view parent)
Sender timestamp
1489586916
DKIM signature
missing
Download raw message
I noticed this with chronyd too - now I use sntpc with:

SNTPC_INTERVAL="21600"

set in /etc/conf.d/sntpc

Stuart Cardall.


On 03/15/2017 06:50 AM, 段垚 wrote:
> Hi,
>
> I'm new to Apline and just installed Apline 3.5.2 to hard disk (in
> Virtualbox, x86_64) with default options. During the boot, I note that
> chronyd takes ~5 seconds to start, which I think is too much. How can
> I improve this?
>
> Wireshark shows that there are 3~4 NTP requests sent during the boot
> with a interval ~2s, I think this explains why chronyd takes so much
> 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 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
> to change this behavior.
>
> Regards,
> Duan, Yao
>
>
>
>
> ---
> Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
> Help:         alpine-devel+help@lists.alpinelinux.org
> ---
>
段垚
Details
Message ID
<d1840b04-f706-1431-65f2-8d47bb45bcfb@ustc.edu>
In-Reply-To
<7e90b44b-070f-12f0-76a4-c7ee7485759e@it-offshore.co.uk> (view parent)
Sender timestamp
1489591481
DKIM signature
missing
Download raw message
在 2017/3/15 22:08, Stuart Cardall 写道:

> I noticed this with chronyd too - now I use sntpc with:
>
> SNTPC_INTERVAL="21600"
>
> set in /etc/conf.d/sntpc
>
> Stuart Cardall.
>
>
Great to know sntp.

I also found that I can workaround this issue by add `--background` 
option to `start-stop-daemon` in `/etc/init.d/chronyd`.
However don't know whether this breaks anything.

> On 03/15/2017 06:50 AM, 段垚 wrote:
>> Hi,
>>
>> I'm new to Apline and just installed Apline 3.5.2 to hard disk (in 
>> Virtualbox, x86_64) with default options. During the boot, I note 
>> that chronyd takes ~5 seconds to start, which I think is too much. 
>> How can I improve this?
>>
>> Wireshark shows that there are 3~4 NTP requests sent during the boot 
>> with a interval ~2s, I think this explains why chronyd takes so much 
>> 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 
>> 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 
>> to change this behavior.
>>
>> Regards,
>> Duan, Yao
>>
>>
>>
>>
>> ---
>> Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
>> Help: alpine-devel+help@lists.alpinelinux.org
>> ---
>>
>

Re: Re: [alpine-devel] Chronyd blocks boot for ~5s. How can I improve this?

Ivan Tham
Details
Message ID
<20170316022613.5yGfYYkzo%pickfire@riseup.net>
In-Reply-To
<d1840b04-f706-1431-65f2-8d47bb45bcfb@ustc.edu> (view parent)
Sender timestamp
1489631173
DKIM signature
missing
Download raw message
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 took
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?

段垚 <duanyao@ustc.edu> wrote:

> 在 2017/3/15 22:08, Stuart Cardall 写道:
> 
> > I noticed this with chronyd too - now I use sntpc with:
> >
> > SNTPC_INTERVAL="21600"
> >
> > set in /etc/conf.d/sntpc
> >
> > Stuart Cardall.
> >
> >
> Great to know sntp.
> 
> I also found that I can workaround this issue by add `--background` 
> option to `start-stop-daemon` in `/etc/init.d/chronyd`.
> However don't know whether this breaks anything.
> 
> > On 03/15/2017 06:50 AM, 段垚 wrote:
> >> Hi,
> >>
> >> I'm new to Apline and just installed Apline 3.5.2 to hard disk (in 
> >> Virtualbox, x86_64) with default options. During the boot, I note 
> >> that chronyd takes ~5 seconds to start, which I think is too much. 
> >> How can I improve this?
> >>
> >> Wireshark shows that there are 3~4 NTP requests sent during the boot 
> >> with a interval ~2s, I think this explains why chronyd takes so much 
> >> 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 
> >> 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 
> >> to change this behavior.



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
段垚
Details
Message ID
<d3ff1e37-26e5-b05c-7a87-933a7facaf24@ustc.edu>
In-Reply-To
<20170316022613.5yGfYYkzo%pickfire@riseup.net> (view parent)
Sender timestamp
1489634887
DKIM signature
missing
Download raw message
在 2017/3/16 10:26, Ivan Tham 写道:
> 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 took
> some time and as well it is the last service to be started on boot.
Really? I tried rc_parallel but it made little difference for me. Maybe 
because chronyd is the slowest one in my system.
>
> By the way duan yao, do you use IME in alpine?
What does IME stand for here? If it's Input Method, no.
>
> 段垚 <duanyao@ustc.edu> wrote:
>
>> 在 2017/3/15 22:08, Stuart Cardall 写道:
>>
>>> I noticed this with chronyd too - now I use sntpc with:
>>>
>>> SNTPC_INTERVAL="21600"
>>>
>>> set in /etc/conf.d/sntpc
>>>
>>> Stuart Cardall.
>>>
>>>
>> Great to know sntp.
>>
>> I also found that I can workaround this issue by add `--background`
>> option to `start-stop-daemon` in `/etc/init.d/chronyd`.
>> However don't know whether this breaks anything.
>>
>>> On 03/15/2017 06:50 AM, 段垚 wrote:
>>>> Hi,
>>>>
>>>> I'm new to Apline and just installed Apline 3.5.2 to hard disk (in
>>>> Virtualbox, x86_64) with default options. During the boot, I note
>>>> that chronyd takes ~5 seconds to start, which I think is too much.
>>>> How can I improve this?
>>>>
>>>> Wireshark shows that there are 3~4 NTP requests sent during the boot
>>>> with a interval ~2s, I think this explains why chronyd takes so much
>>>> 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
>>>> 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
>>>> to change this behavior.




---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---