Page 1 of 1

[Minix]Getting system time.

Posted: Thu Feb 12, 2015 4:48 pm
by szarek
1. How to get the system time used by the process measured in ticks in one quantum of time?
2.
The user time is the number of clock ticks used by a process on its own
computations. The system time is the number of clock ticks spent inside
the kernel on behalf of a process. This does not include time spent
waiting for I/O to happen, only actual CPU instruction times.
from http://minix1.woodhull.com/manpages/man2/times.2.html
How to get time spent waiting for I/O to happen?

Re: [Minix]Getting system time.

Posted: Fri Feb 13, 2015 4:44 am
by embryo
szarek wrote:1. How to get the system time used by the process measured in ticks in one quantum of time?
2.
The user time is the number of clock ticks used by a process on its own
computations. The system time is the number of clock ticks spent inside
the kernel on behalf of a process. This does not include time spent
waiting for I/O to happen, only actual CPU instruction times.
from http://minix1.woodhull.com/manpages/man2/times.2.html
How to get time spent waiting for I/O to happen?
If it is about your OS, then it is about your scheduler capabilities. Just include some statistic holding data structures in your scheduler and populate them with useful data. How exactly to do this depends on how exactly your scheduler works.