My understanding is that in this config type, ntpd runs as server only, and will sync itself to the local clock driver. So, if I am not missing something,
the daemon should not try to adjust the local clock that it is synchronizing to.
allows direct setting of the time
When ntpd is running with the following simple config:
restrict 127.0.0.1
server 127.127.1.0
is it expected that ntpd keeps calling adjtime()?
My understanding is that in this config type, ntpd runs as server only, and will sync itself to the local clock driver. So, if I am not missing something,
the daemon should not try to adjust the local clock that it is synchronizing to.
Is this a specific behavior with VxWorks (where I am testing ntpd with), or common to all systems?I believe it will be common to all systems.
0x01d67ad0 ntpdmain +0x6c0: timer ()Side note - in general, we recommend against using the LOCAL refclock.
0x01d85968 timer +0x58 : 0x01d7156c ()
0x01d71698 adj_host_clock+0x164: adj_systime ()
0x0092eca0 adj_systime +0x254: adjtime ()
Thanks
When ntpd is running with the following simple config:nd
restrict 127.0.0.1
server 127.127.1.0
is it expected that ntpd keeps calling adjtime()?
My understanding is that in this config type, ntpd runs as server only, a=
will sync itself to the local clock driver. So, if I am not missing something,
the daemon should not try to adjust the local clock that it is
synchronizing
to.
common to all systems?
On Mon, Nov 3, 2025 at 22:36rC>UTC rcheaito <questions@lists.ntp.org <mailto:questions@lists.ntp.org>> wrote:
When ntpd is running with the following simple config:
restrict 127.0.0.1
server 127.127.1.0
is it expected that ntpd keeps calling adjtime()?
My understanding is that in this config type, ntpd runs as server
only, and
will sync itself to the local clock driver. So, if I am not missing
something,
the daemon should not try to adjust the local clock that it is
synchronizing
to.
With apologies for taking so long to reply and the caveat that the local clock driver has been deprecated since before I first ran ntpd, so I've never used or tested it:
I believe it is expected behavior.-a I think you want "disable ntp" to
your ntp.conf:
https://www.ntp.org/documentation/4.2.8-series/ntp.conf/#miscellaneous- options:~:text=is%20enable.-,ntp,-Enables%20time%20and <https:// www.ntp.org/documentation/4.2.8-series/ntp.conf/#miscellaneous- options:~:text=is%20enable.-,ntp,-Enables%20time%20and>
Is this a specific behavior with VxWorks (where I am testing ntpd
with), or
common to all systems?
All systems, I believe.-a I'm glad to hear the source code actually works
on VxWorks.-a If someone at Wind River wants to hook me up with a VxWorks/Workbench setup for the sole purpose of testing ntpd with the
VxSim, I could test my changes to ntpd against that platform
occasionally.
I like the idea of ntpd continuing to support as many
platforms as reasonable,
and I'd love to do a little work to reduce the--
#ifdef SYS_VXWORKSforest in the code while doing so, but without the
ability to test, or someone willing to work with me to do such testing,
I am hesitant to do that cleanup.
Cheers,
Dave Hart
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 12:21:04 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
2 files (2,024K bytes) |
| Messages: | 183,175 |
| Posted today: | 1 |