由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - What is a jiffy in linux?
相关主题
Looking for Linux kernel developer英雄,救命啊!!!
Linux/Unix下时间的精度 (转载)[转载] multi-timer programming in unix, question?
Solaris(TM) Internals: Solaris 10 and OpenSolaris Kernel Architecture (2nd Edition)Help wanted for CURSES
unix 面试题,求答案 (转载)Help! How to set up a timer?
[转载] Help, about clock(). About the serial port--SOS!SOS!
what do these numbers mean?does Linux has real time timer?
Question for time commandwhat is kernel locking
升级kernel失败Help
相关话题的讨论汇总
话题: jiffies话题: what话题: linux话题: jiffy话题: number
进入Unix版参与讨论
1 (共1页)
F**e
发帖数: 593
1
Say if I want to find the actual time of 100 jiffies on my linux,
how do I do it?
Thanks a lot!
c********e
发帖数: 417
2
As I read it, jiffies are the number of elapsed ticks starting from
the system start. It's increment by 1 for every timer interrupt.
So that depends on how linux programs the programmable timer.
Normally, it's 10ms per tick.

【在 F**e 的大作中提到】
: Say if I want to find the actual time of 100 jiffies on my linux,
: how do I do it?
: Thanks a lot!

m*****e
发帖数: 4193
3

In user space it's ALWAYS 100 jiffies per second (at least on x86).
In kernel space it depends. Recent kernels have changed it internally.

【在 c********e 的大作中提到】
: As I read it, jiffies are the number of elapsed ticks starting from
: the system start. It's increment by 1 for every timer interrupt.
: So that depends on how linux programs the programmable timer.
: Normally, it's 10ms per tick.

F**e
发帖数: 593
4
Thank you, microbe and clarkmouse!
Actually my problem was: I was getting process info from
/proc//stat
One of the properties I am interested in is the usertime(utime) there. The man
says utime is "The number of jiffies that this process has been scheduled in
user mode".
So that means the number I get there divided by 100 will give me the number of
seconds? Right? Just want to make sure. Thanks.

【在 m*****e 的大作中提到】
:
: In user space it's ALWAYS 100 jiffies per second (at least on x86).
: In kernel space it depends. Recent kernels have changed it internally.

1 (共1页)
进入Unix版参与讨论
相关主题
Help[转载] Help, about clock().
I/O implementation questionwhat do these numbers mean?
simple unix questionQuestion for time command
问题:gentoo的gcc编译的CFLAGS升级kernel失败
Looking for Linux kernel developer英雄,救命啊!!!
Linux/Unix下时间的精度 (转载)[转载] multi-timer programming in unix, question?
Solaris(TM) Internals: Solaris 10 and OpenSolaris Kernel Architecture (2nd Edition)Help wanted for CURSES
unix 面试题,求答案 (转载)Help! How to set up a timer?
相关话题的讨论汇总
话题: jiffies话题: what话题: linux话题: jiffy话题: number