I think I just found part of the answer. It seems these are threads that are started by Java internally, "ps -eLf" shows these processes. So next question: Is there a way to get this relation programmatically? I.e. find out that pid 8328 is actually a thread of process id 8313?
Thanks... Dominik. On Sun, Mar 21, 2010 at 9:39 AM, Dominik Stadler <[email protected]>wrote: > Hi, > > I tried to work on a patch for powertop to display the wakeups per process > so that I can distinguish between multiple running processes with the same > name (e.g. java). This would be useful if more than one process is running > with the same name, but the wakeups for one specific process are interesting > for debugging. However I have some trouble with the pid that is listed in > the timer_stats file in my case: > > For example I have one java application running, which ps shows as having > pid "8313", however this pid is not showing up in /proc/timer_stats at all, > but rather a number of pids in the same range show up, but none of these map > to any running process and the one process that I am looking for does not > show up at all: > > $ cat /proc/timer_stats | grep java > 197, 8326 java hrtimer_start_range_ns (hrtimer_wakeup) > 246, 8347 java hrtimer_start_range_ns (hrtimer_wakeup) > 65, 8368 java hrtimer_start_range_ns (hrtimer_wakeup) > 20, 8328 java hrtimer_start_range_ns (hrtimer_wakeup) > 19, 8344 java hrtimer_start_range_ns (hrtimer_wakeup) > 9, 8317 java hrtimer_start_range_ns (hrtimer_wakeup) > 9, 8354 java hrtimer_start_range_ns (hrtimer_wakeup) > > Anybody knows how this maps to the java process with pid "8313"? Is this > caused by internals of the java implementation? Or rather some effect of how > timer_stats are reported? > > Kernel is 2.6.31 from Ubuntu plus TuxOnIce compiled for amd64 > Linux distro is Ubuntu Karmic 9.10 > > Thanks... Dominik. > >
_______________________________________________ Power mailing list [email protected] http://www.bughost.org/mailman/listinfo/power
