OK, I think I got it, please correct if I am wrong:

Suppose I do [b]prstat -m 10[/b], suppose a given lwp is in state X at the 
beginning and transitions to state Y 4 seconds after the beginning of the 
monitoring sample and back to X 1 sec later. 

If I am on Solaris9 then only state transition timestamps will be recorded (but 
not durations). Therefore when displaying the results: 
- only 5 sec will be attributed to state X (that is the second part from Y>X 
transition till the end of interval)
- 1 sec will be attributed to state Y.

This could happen to any state, but since cpu timeslices are relatively small  
USR/SYS will be the least affected and SLP will probably be the most affected 
by this. In general lwps that are mostly idle are more likely to have their SLP 
time under-reported.

Am I correct?
 
 
This message posted from opensolaris.org
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to