Re: What is the unit for 'last_arrival' in 'task_struct.sched_info.last_arrival'.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2015-01-13 19:06 GMT+08:00 Saravanan Palanisamy <sarpalan@xxxxxxxxx>:
> Hi,
>
>     What is the unit for 'last_arrival' in
> 'task_struct.sched_info.last_arrival' ?

Depending on the your hardware and kernel implementation.

If you are using recent x64 platform, the value should be read from
TSC register.
So the unit is ns.

You can easily confirm that by write some code by issuing rdtsc instruments.

Usually, when we debug process stuck problem, I can use "ps -l" and
"ps -l | head -n1" to get two timestamp. Then I can know how many
seconds the process never got scheduled.


-- 
------------------
Oliver Yang

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux