由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - quick question, timer on multi-core
相关主题
changed timezone, but dmesg still shows old timezone有没有 vim plugin 查找函数被调用的地方?
exception与interrupt的区别?grep 的问题
spin_lock_irqsave vs. disable irq vs. mask irq怎么看网络电视啊?
FC 15 开始装 EFI 的 Grub 了问问应该学用那个shell?
patchwork.kernel.org是不是还访问不了啊?Grep 能作这个吗?
C++ 诡异的编译问题。请教。问个 ps 命令的问题
请高手解答grep和ls的两个问题QTerm中文输入问题
如何用’sed‘ comment out 某一行。请教怎样截取文本中的一段
相关话题的讨论汇总
话题: timer话题: tsc话题: core话题: switching
进入Linux版参与讨论
1 (共1页)
r***e
发帖数: 2000
1
what time does gettimeofday() get? from which core?
S*A
发帖数: 7142
2
It depends on which timer resource you are using.
You can register many different timer resource
and the system will pick on of the best.
In my machine, I have this in dmesg:
[ 0.000000] hpet clockevent registered
[ 0.731028] Switching to clocksource tsc
So the it will be getting the tsc from the current
core.

【在 r***e 的大作中提到】
: what time does gettimeofday() get? from which core?
r***e
发帖数: 2000
3

thank you, I did that on my computer,
========
$ dmesg | grep clock
[ 0.000000] hpet clockevent registered
[ 0.308020] Switching to clocksource tsc
[ 0.648807] Switching to clocksource hpet
[ 0.689338] rtc_cmos 00:03: setting system clock to 2011-02-16 02:06:08
UTC (1297821968)
========
What does that (two switching) mean?

【在 S*A 的大作中提到】
: It depends on which timer resource you are using.
: You can register many different timer resource
: and the system will pick on of the best.
: In my machine, I have this in dmesg:
: [ 0.000000] hpet clockevent registered
: [ 0.731028] Switching to clocksource tsc
: So the it will be getting the tsc from the current
: core.

S*A
发帖数: 7142
4
can you grep tsc in your dmesg.
TSC some times can be unreliable. Random drifting.
Very often cause by the SMI interrupt. Apple boot camp
for example has very bad tsc drifting. So the kernel
might decide tsc is so bad that the kernel don't want
to use it.

【在 r***e 的大作中提到】
:
: thank you, I did that on my computer,
: ========
: $ dmesg | grep clock
: [ 0.000000] hpet clockevent registered
: [ 0.308020] Switching to clocksource tsc
: [ 0.648807] Switching to clocksource hpet
: [ 0.689338] rtc_cmos 00:03: setting system clock to 2011-02-16 02:06:08
: UTC (1297821968)
: ========

r***e
发帖数: 2000
5

that was the only line,
I see, thank you so much!

【在 S*A 的大作中提到】
: can you grep tsc in your dmesg.
: TSC some times can be unreliable. Random drifting.
: Very often cause by the SMI interrupt. Apple boot camp
: for example has very bad tsc drifting. So the kernel
: might decide tsc is so bad that the kernel don't want
: to use it.

d******e
发帖数: 117
6
如下可以看系统当前使用的时钟
cat /sys/devices/system/clocksource/clocksource0/current_clocksource

【在 r***e 的大作中提到】
:
: that was the only line,
: I see, thank you so much!

1 (共1页)
进入Linux版参与讨论
相关主题
请教怎样截取文本中的一段patchwork.kernel.org是不是还访问不了啊?
Unix/Linux 命令行如何去除文本的重复行C++ 诡异的编译问题。请教。
一个初级问题请高手解答grep和ls的两个问题
[已解决]请问在Ubuntu里的触摸板(touchpad)可以关掉吗?如何用’sed‘ comment out 某一行。
changed timezone, but dmesg still shows old timezone有没有 vim plugin 查找函数被调用的地方?
exception与interrupt的区别?grep 的问题
spin_lock_irqsave vs. disable irq vs. mask irq怎么看网络电视啊?
FC 15 开始装 EFI 的 Grub 了问问应该学用那个shell?
相关话题的讨论汇总
话题: timer话题: tsc话题: core话题: switching