Skip to main content
10 events
when toggle format what by license comment
May 9, 2023 at 15:21 vote accept BowPark
May 9, 2023 at 11:57 comment added Paul_Pedant I don't see where top shows the CPU "running" a process or thread. If a process is using 10% of a CPU, then 90% of the time no CPU is running it. top can show you the "Last used CPU", but with a warning that even asking is likely to alter the outcome across the whole system. For ps, the thread cumulative CPU time is found from the time between entry and exit of user mode (not continuously updated). CFS deals with variable time-slices, and longest appears to be capped at 0.006 secs, which means any separate process attempting to monitor is hopelessly lagging behind.
May 9, 2023 at 9:03 answer added Marcus Müller timeline score: 1
May 9, 2023 at 8:42 comment added BowPark @KamilMaciorowski This could be useful in general. However, I edited the question adding more details.
May 9, 2023 at 8:41 history edited BowPark CC BY-SA 4.0
Added details.
May 9, 2023 at 8:33 comment added Kamil Maciorowski Why is this information important in case of a short-living process? Please make sure there is no XY problem here. What actual problem are you trying to solve?
May 9, 2023 at 8:26 history edited BowPark CC BY-SA 4.0
Given a more correct example.
May 9, 2023 at 8:18 answer added Paul_Pedant timeline score: 2
May 9, 2023 at 7:45 history edited BowPark CC BY-SA 4.0
Added reference links.
May 9, 2023 at 7:39 history asked BowPark CC BY-SA 4.0