Re: [RFC patch 15/15] LTTng timestamp x86

H. Peter Anvin
2008-10-23T16:41:39Z

Linus Torvalds wrote:
>
> They are almost inevitable for another reason too: the interconnect seldom
> has a concept of "clock signal" other than for the signalling itself, and
> the signal clock is designed for the signal itself and is designed for
> signal integrity rather than "stable clock".
>
> Does _any_ common interconnect have integral support for clock
> distribution?
>

How do you mean "integral"? All it really would end up being would be a
separate wire anyway carrying the 14.318 MHz clock, so the only way it
would ever be "integral" is as part of the slot connector definition.

Note that this is a *frequency standard*. This is a much simpler task
than distributing a clock that has to be in phase with a bunch of data
wires.

> And no, nobody is going to add another clock network for just clock
> distribution.

I have defitely seen machines with a common backplane clock source.
That does not mean that it is common. I can certainly see the
redundancy issues being a big deal there.

> So even ignoring redundancy issues, and the fact that people want to
> hot-plug things (and yes, that would make a central clock interesting), I
> doubt any hw manufacturer really looks at it the way we do.

Hotplugging isn't so bad (the clock source is tiny, and goes on the
backplane.) Redundancy is harder, but not impossible -- even cheap
TCXOs can usually operate either self-running or as slaves to an
incoming signal. The hard part is to avoid partition on failure, since
in that case you have to handle the unsynchronized case correctly anyway.

> The best we could hope for is some hardware assist for helping distribute
> a common clock. Ie not a real single crystal, but having time-packets in
> the interconnect that are used to synchronize nodes whenever there is
> communication between them. It's hard to do that in software, because the
> overhead is fairly high, but if hardware does at least some of it you
> could probably get a damn fine distributed clock source.
>
> But I don't know if any hw people are worried enough about it to do it...

Most likely not, which means that any solutions we as software guys
propose are probably pointless.

-hpa