What's the difference between tms_utime
and tms_stime
exactly? I'm referring to the struct tms
used by the POSIX times()
function. Is the data caching time included in the utime
? Can the data caching time be measured separately?
PS: I am using Linux-Ubuntu. For example, I am solving a large sparse linear equation system using my C++ program.
Given that you are discussing the
tms_utime
andtms_stime
members ofstruct tms
(which contains 4 elements of typeclock_t
) used bytimes()
, the difference is as outlined in my first and last comments:There is no breakdown of the time into 'time spent waiting for the cache' vs 'time spent not waiting for the cache'. I think the cache time would be included in the
tms_stime
value because when the data isn't in the cache, you will need the system to fetch it for you.