CLOCK_BOOTIME (commit cf87f8587)
vl at samba.org
Mon Aug 1 13:00:16 UTC 2016
Just talked to Björn Jacke: He told me that commit cf87f8587 was
triggered by a suggestion you made. CLOCK_BOOTTIME is the better
alternative than CLOCK_MONOTONIC. I don't fully understand it, but
what I get is that CLOCK_BOOTTIME correctly takes care of a machine in
This of course makes a lot of sense for laptops, but it comes at
a cost: If I run the attached program on a PPC machine I get that
calling CLOCK_BOOTTIME is roughly 8 times more expensive than calling
CLOCK_MONOTONIC. Christof Schmitt has figured out that this is due to
CLOCK_BOOTTIME being a real syscall whereas CLOCK_MONOTONIC is a pure
read from a kernel page like getpid() is.
[root at p8-10-rhel-71be-01 vlendeke]# time ./timetest 100000000
[root at p8-10-rhel-71be-01 vlendeke]# time ./timetest 100000000 mono
Simo, do you really see the need for CLOCK_BOOTTIME for your RHEL
deployments? Or could you live with CLOCK_MONOTONIC only?
If your customers need CLOCK_BOOTTIME, has RedHat the capability to
make CLOCK_BOOTTIME a kernel page read too, so that it is just as
cheap as CLOCK_MONOTONIC?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 570 bytes
Desc: not available
More information about the samba-technical