Re: chronyc keeps on running
On Thu, Oct 05, 2017 at 12:38:19PM -0500, Ranjan Maitra wrote: > I do not get why chronyc should run and create such a racket at 100% > CPU. chronyc is used by a NetworkManager dispatcher script to switch NTP sources online or offline when the network configuration is changed. Maybe there is a bug in the script. What chrony package do you have installed? What does "chronyc -n sources" print? Are you connected to multiple networks? Maybe some don't have a default route? -- Miroslav Lichvar ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: chronyc keeps on running
On 5 October 2017 at 14:52, Fred Smith wrote: > On Thu, Oct 05, 2017 at 12:38:19PM -0500, Ranjan Maitra wrote: > > Thanks! > > While it's true that I'm running Centos-7 instead of Fedora, CentOS also > uses chrony as its default ntp client. > With systemd there are 3 options: systemd-timesyncd -- https://wiki.archlinux.org/index.php/systemd-timesyncd, supports sntp protocol ntpd -- original "proof of concept" implementation. It is widely used, but for laptops or workstations one of the others may be a better choice chronyd -- implementaion of the ntp protocol developed for systems with unreliable network access where ntpd > On my system "ps ax | grep -i chrony" turns up two processes, chronyd, > and the grep. > > # ps ax | grep -i chrony > 1113 ?S 0:02 /usr/sbin/chronyd > 6982 pts/1S+ 0:00 grep --color=auto -i chrony > > Use "ps ax | grep [c]hrony" to omit the grep process. > chronyc does not run unless someone starts it, usually from a commandline. > it is a user tool for examining/controlling chronyd status. it shouldn't > be running all the time. Do you have a startup script somewhere that is > running it for you? If so, I'd recommend not doing that. > > even if I start it from a command prompt, if I don't give it any commands > to run it consumes (as faras I can tell by watching top) zero CPU > (there's bound to be some, but it's just waiting at a command prompt, > so how much could it be?) > > so it sounds like something on your system is running it and feeding it > some time-consuming commands. your task is to figure out what that is and > fix it. > https://www.reddit.com/r/Fedora/comments/72g5hc/chronyc_tracking_consumes_100_cpu/ sounds similar. See RHEL 7 Using chrony <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-using_chrony> > > good luck! > > Fred > > > > On Thu, 5 Oct 2017 13:05:27 -0400 Sam Varshavchik > wrote: > > > > > Ranjan Maitra writes: > > > > > > > Over the past few weeks, my laptop has been running chronyc at full > blast. > > > > > > > > $top > > > > > > > > 12657 root 20 0 20624 1308 1160 R 93.8 0.0 1739:52 > chronyc > > > > > > > > I looked up chronyc and found that this controls NTP. I use NTP, but > do I > > > > need to keep this around? Or is the good old ntp good enough? From > what I > > > > understand, openntp would also work but that is not available on > Fedora. > > > > > > > > I guess I am wondering if there is a major cost to sudo dnf erase > chronyc -y. > > > > > > The major cost is that if your puter's clock is off, its internal time > will > > > slowly drift apart. > > > > Will ntpd not address this issue? > > > > > > > > > > How important is having the system time accurate is to you? > > > > > > > To the extent that I am able to fetchmail from my mail servers for which > I think we need reasonably accurate system time? > > > > I do not get why chronyc should run and create such a racket at 100% CPU. > > > [...] ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: chronyc keeps on running
Ranjan Maitra writes: > > I guess I am wondering if there is a major cost to sudo dnf erase chronyc -y. > > The major cost is that if your puter's clock is off, its internal time will > slowly drift apart. Will ntpd not address this issue? ntpd is a viable alternative. > How important is having the system time accurate is to you? > To the extent that I am able to fetchmail from my mail servers for which I think we need reasonably accurate system time? fetchmail itself doesn't care. Downloaded mail will likely report the local time in the received: header, that's about it. I do not get why chronyc should run and create such a racket at 100% CPU. Only strace can tell. pgpbuHotghruV.pgp Description: PGP signature ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: chronyc keeps on running
On Thu, Oct 05, 2017 at 12:38:19PM -0500, Ranjan Maitra wrote: > Thanks! While it's true that I'm running Centos-7 instead of Fedora, CentOS also uses chrony as its default ntp client. On my system "ps ax | grep -i chrony" turns up two processes, chronyd, and the grep. # ps ax | grep -i chrony 1113 ?S 0:02 /usr/sbin/chronyd 6982 pts/1S+ 0:00 grep --color=auto -i chrony chronyc does not run unless someone starts it, usually from a commandline. it is a user tool for examining/controlling chronyd status. it shouldn't be running all the time. Do you have a startup script somewhere that is running it for you? If so, I'd recommend not doing that. even if I start it from a command prompt, if I don't give it any commands to run it consumes (as faras I can tell by watching top) zero CPU (there's bound to be some, but it's just waiting at a command prompt, so how much could it be?) so it sounds like something on your system is running it and feeding it some time-consuming commands. your task is to figure out what that is and fix it. good luck! Fred > > On Thu, 5 Oct 2017 13:05:27 -0400 Sam Varshavchik > wrote: > > > Ranjan Maitra writes: > > > > > Over the past few weeks, my laptop has been running chronyc at full blast. > > > > > > $top > > > > > > 12657 root 20 0 20624 1308 1160 R 93.8 0.0 1739:52 > > > chronyc > > > > > > I looked up chronyc and found that this controls NTP. I use NTP, but do I > > > > > > need to keep this around? Or is the good old ntp good enough? From what I > > > > > > understand, openntp would also work but that is not available on Fedora. > > > > > > I guess I am wondering if there is a major cost to sudo dnf erase chronyc > > > -y. > > > > The major cost is that if your puter's clock is off, its internal time will > > > > slowly drift apart. > > Will ntpd not address this issue? > > > > > > How important is having the system time accurate is to you? > > > > To the extent that I am able to fetchmail from my mail servers for which I > think we need reasonably accurate system time? > > I do not get why chronyc should run and create such a racket at 100% CPU. > > Thanks again! > > Ranjan > > > > > -- > Important Notice: This mailbox is ignored: e-mails are set to be deleted on > receipt. Please respond to the mailing list if appropriate. For those needing > to send personal or professional e-mail, please use appropriate addresses. > ___ > users mailing list -- users@lists.fedoraproject.org > To unsubscribe send an email to users-le...@lists.fedoraproject.org -- Fred Smith -- fre...@fcshome.stoneham.ma.us - "And he will be called Wonderful Counselor, Mighty God, Everlasting Father, Prince of Peace. Of the increase of his government there will be no end. He will reign on David's throne and over his kingdom, establishing and upholding it with justice and righteousness from that time on and forever." --- Isaiah 9:7 (niv) -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: chronyc keeps on running
Thanks! On Thu, 5 Oct 2017 13:05:27 -0400 Sam Varshavchik wrote: > Ranjan Maitra writes: > > > Over the past few weeks, my laptop has been running chronyc at full blast. > > > > $top > > > > 12657 root 20 0 20624 1308 1160 R 93.8 0.0 1739:52 chronyc > > > > I looked up chronyc and found that this controls NTP. I use NTP, but do I > > need to keep this around? Or is the good old ntp good enough? From what I > > understand, openntp would also work but that is not available on Fedora. > > > > I guess I am wondering if there is a major cost to sudo dnf erase chronyc > > -y. > > The major cost is that if your puter's clock is off, its internal time will > slowly drift apart. Will ntpd not address this issue? > > How important is having the system time accurate is to you? > To the extent that I am able to fetchmail from my mail servers for which I think we need reasonably accurate system time? I do not get why chronyc should run and create such a racket at 100% CPU. Thanks again! Ranjan -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: chronyc keeps on running
Ranjan Maitra writes: Over the past few weeks, my laptop has been running chronyc at full blast. $top 12657 root 20 0 20624 1308 1160 R 93.8 0.0 1739:52 chronyc I looked up chronyc and found that this controls NTP. I use NTP, but do I need to keep this around? Or is the good old ntp good enough? From what I understand, openntp would also work but that is not available on Fedora. I guess I am wondering if there is a major cost to sudo dnf erase chronyc -y. The major cost is that if your puter's clock is off, its internal time will slowly drift apart. How important is having the system time accurate is to you? pgpuQpWk_Bny5.pgp Description: PGP signature ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
chronyc keeps on running
Over the past few weeks, my laptop has been running chronyc at full blast. $top 12657 root 20 0 20624 1308 1160 R 93.8 0.0 1739:52 chronyc I looked up chronyc and found that this controls NTP. I use NTP, but do I need to keep this around? Or is the good old ntp good enough? From what I understand, openntp would also work but that is not available on Fedora. I guess I am wondering if there is a major cost to sudo dnf erase chronyc -y. Thanks, Ranjan -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
chronyc doesn't show client information
Hi, chronyc doesn't show any client information but: , | [root@yun envytools]# chronyc clients | Hostname ClientPeer CmdAuth CmdNorm CmdBad LstN | LstC | = == == == == == | | 501 Not authorised | [root@yun envytools]# ` Clients are allowed in /etc/chrony.conf: , | # Allow client access from local network. | allow 192.168.178/24 ` Running 'chronyc sources' shows expected output. What might be wrong with the clients? -- Fedora 17 -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: chronyc
On Tue, 28 Feb 2012, Ed Greshko wrote: On 02/28/2012 07:34 AM, Patrick Dupre wrote: Hello, chronyc -h 2.fedora.pool.ntp.org tracking responds: 506 Cannot talk to daemon What does chronyc sources 210 Number of sources = 4 MS Name/IP address Stratum Poll LastRx Last sample ^? evie.fra1.as41113.net 0 1010y +0ns[ +0ns] +/- 0ns ^? ip0.srv25.tx-esports.com 0 1010y +0ns[ +0ns] +/- 0ns ^? stratum2-1.NTP.TechFak.NE 0 1010y +0ns[ +0ns] +/- 0ns ^? hosthazard.com0 1010y +0ns[ +0ns] +/- 0ns -- --- == Patrick DUPRÉ | | Department of Chemistry| | Phone: (44)-(0)-1904-434384 The University of York | | Fax: (44)-(0)-1904-432516 Heslington | | York YO10 5DD United Kingdom | | email: patrick.du...@york.ac.uk ==-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: chronyc
On 02/28/2012 07:34 AM, Patrick Dupre wrote: > Hello, > > chronyc -h 2.fedora.pool.ntp.org tracking > > responds: > > 506 Cannot talk to daemon > Oh, you can do chronyc help I've not tried itbut noticed that settime : Manually set the daemon time maybe what you are looking for. -- Do not condemn the judgment of another because it differs from your own. You may both be wrong. -- Dandemis -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
Re: chronyc
On 02/28/2012 07:34 AM, Patrick Dupre wrote: > Hello, > > chronyc -h 2.fedora.pool.ntp.org tracking > > responds: > > 506 Cannot talk to daemon > What does chronyc sources return? -- Do not condemn the judgment of another because it differs from your own. You may both be wrong. -- Dandemis -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
chronyc
Hello, chronyc -h 2.fedora.pool.ntp.org tracking responds: 506 Cannot talk to daemon -- --- == Patrick DUPRÉ | | Department of Chemistry| | Phone: (44)-(0)-1904-434384 The University of York | | Fax: (44)-(0)-1904-432516 Heslington | | York YO10 5DD United Kingdom | | email: patrick.du...@york.ac.uk ==-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org