opencomputeproject / Time-Appliance-Project

Develop an end-to-end hypothetical reference model, network architectures, precision time tools, performance objectives and the methods to distribute, operate, monitor time synchronization within data center and much more...
MIT License
1.32k stars 101 forks source link

seperate utc offset files #75

Closed TuxCoder closed 1 year ago

TuxCoder commented 1 year ago

Folowup of a discussion at the ISCPS

I saw that the UTC offset is represented as a seperate file. But the adjtimex syscall allows you to get/set the offset already. https://www.man7.org/linux/man-pages/man2/adjtimex.2.html

so the question is, are this two parameters synced and only a second way to obtain / set the offset or are this two separate values?

Best Regard TuxCoder

ahmadexp commented 1 year ago

@jlemon, would you please comment on this.

jlemon commented 1 year ago

The parameters unfortunately aren't synced. Those calls are for the kernel clock, not for the PHC clock.

There doesn't seem to be any current API to set a PHC clock's TAI/UTC offset, perhaps because the assumption is that the PHC only returns one timebase (TAI)?