Skip to contentSkip to conversation

clock source in PV Linux

Xen-devel Jan Beulich 4 participants 5 messages Dec 11, 2019 – Dec 18, 2019

lore
Share & tools
lore
#1 lore raw
Quoted 9 lines · Jan Beulich

Jürgen, Boris,

I've noticed

<6>clocksource: Switched to clocksource tsc

as the final clocksource related boot message in a PV Dom0's log with 5.4.2. Is it intentional that it's not the "xen" one that gets used by default?

I think this is fine. I just tested it and I'm seeing the same in dom0, while in a PV domU "xen" is used per default.

In dom0 "tsc" should be okay in case it is stable. Or are you expecting problems with that setting?

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
Quoted 11 lines · Jürgen Groß
Quoted 9 lines · Jan Beulich

Jürgen, Boris,

I've noticed

<6>clocksource: Switched to clocksource tsc

as the final clocksource related boot message in a PV Dom0's log with 5.4.2. Is it intentional that it's not the "xen" one that gets used by default?

Quoted 5 lines

I think this is fine. I just tested it and I'm seeing the same in dom0, while in a PV domU "xen" is used per default.

In dom0 "tsc" should be okay in case it is stable. Or are you expecting problems with that setting?

Well, first of all I found this surprising. Whether there are problems to be expected largely depends on the reliability of the "stable" detection in PV Dom0.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 16 lines · Jan Beulich
Quoted 14 lines · Jürgen Groß
Quoted 9 lines · Jan Beulich

Jürgen, Boris,

I've noticed

<6>clocksource: Switched to clocksource tsc

as the final clocksource related boot message in a PV Dom0's log with 5.4.2. Is it intentional that it's not the "xen" one that gets used by default?

I think this is fine. I just tested it and I'm seeing the same in dom0, while in a PV domU "xen" is used per default.

Quoted 6 lines
Quoted 2 lines

In dom0 "tsc" should be okay in case it is stable. Or are you expecting problems with that setting?

Well, first of all I found this surprising. Whether there are problems to be expected largely depends on the reliability of the "stable" detection in PV Dom0.

Related question: does this mean that tsc is now default for PVH as well?

The reason I'm asking is because I'm still a bit worried about the clock drift with tsc.

Thanks,
Roman.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw
Quoted 17 lines · Roman Shaposhnik
Quoted 16 lines · Jan Beulich
Quoted 15 lines · Jürgen Groß
Quoted 9 lines · Jan Beulich

Jürgen, Boris,

I've noticed

<6>clocksource: Switched to clocksource tsc

as the final clocksource related boot message in a PV Dom0's log with 5.4.2. Is it intentional that it's not the "xen" one that gets used by default?

I think this is fine. I just tested it and I'm seeing the same in dom0, while in a PV domU "xen" is used per default.

In dom0 "tsc" should be okay in case it is stable. Or are you expecting problems with that setting?

Quoted 7 lines
Quoted 3 lines

Well, first of all I found this surprising. Whether there are problems to be expected largely depends on the reliability of the "stable" detection in PV Dom0.

Related question: does this mean that tsc is now default for PVH as well?

The reason I'm asking is because I'm still a bit worried about the clock drift with tsc.

dom0 will use TSC for either PV or PVH:

xen_time_init():
       /* As Dom0 is never moved, no penalty on using TSC there */ if (xen_initial_domain()) xen_clocksource.rating = 275;

But as far as TSC stability I'd think it should be sufficiently checked by generic TSC init code?

-boris

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel