<div dir="ltr"><div>I see an option in runq to check the time of the processes in the runq<br></div><div><br></div><div>help runq<br></div><div>     -m  Display the amount of time that the active task on each cpu has been</div>         running, expressed in a format consisting of days, hours, minutes, <br><div>         seconds and milliseconds.</div><div><br></div><div>Is this time the time the process has been running in this instance? Or is it the complete time the process had CPU?</div><div><br></div><div>Example :</div><div><br></div><div>crash> runq -m<br> CPU 0: [0 00:00:00.000]  PID: 48     TASK: ffff88045a0bcd80  COMMAND: "khungtaskd"<br> CPU 1: [0 00:00:02.155]  PID: 21     TASK: ffff88045a74ec80  COMMAND: "ksoftirqd/1"<br> CPU 2: [2 08:03:10.267]  PID: 0      TASK: ffff88045a71ec80  COMMAND: "swapper/2"<br> CPU 3: [2 08:03:10.267]  PID: 0      TASK: ffff88045a748000  COMMAND: "swapper/3"</div><div><br></div><div><br></div><div>For ksoftirqd/1 it says the time is 2 seconds 155 ms</div><div>What exactly is this time? The time in the current run or is it the complete CPU time of this process since boot?<br></div><div><br></div>-------<div><br></div><div>Also I was trying to find the same using task_struct</div><div>crash> task 21<br></div><div>...<br></div><div>    exec_start = 201790266578639, <br>    sum_exec_runtime = 264131400786, <br>    vruntime = 18446744073703683341, <br>    prev_sum_exec_runtime = 35796104514, <br></div><div>...<br></div><div><br></div><div>it seems like, sum_exec_runtime - prev_sum_exec_runtime should give me the time(in ns) that this process has been running in its current run</div><div><br></div><div>sum_exec_runtime - prev_sum_exec_runtime = 264131400786 - 35796104514 = 228 seconds<br></div><div><br></div><div>228 seconds is very different from what i see in runq -m</div><div><br></div><div>Can I please get some help on understanding and interpreting these times?</div><div>Any alternate methods will also be very helpful.</div><div><br></div><div>Thank you</div><div><br></div><div>Sandeep<br></div></div>