All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] How to interpret /proc/xenomai/stat CPU time of threads with priority 0
@ 2011-04-29  9:35 Thierry Bultel
  2011-04-30 10:31 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Thierry Bultel @ 2011-04-29  9:35 UTC (permalink / raw)
  To: xenomai, Jean-Baptiste Tredez, Nicolas Mabire

[-- Attachment #1: Type: text/plain, Size: 740 bytes --]

Hi all,

I was wondering if the displayed CPU time was, for these particular 
threads,
the only time spent in primary mode, of the total amount of time spent 
on the CPU.

I am namely currently debugging an application which has such kind of 
thread,
with a period of 50ms, and that takes up to 23% of the CPU.
That is bad, but not a real issue if that time is spent only in 
secondary mode,
but I do not know how to figure it out.
The mode switches frequency is equal to the period of my thread, since 
it uses rt_task_wait_period

I am a little bit concerned, my fear is that secondary mode time would 
be counted in the ROOT task ...
BTW, I am using version 2.5.2 (I know, it's old ;-) ).

Any help would be appreciated.

Thanks
Thierry

[-- Attachment #2: Type: text/html, Size: 1268 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-help] How to interpret /proc/xenomai/stat CPU time of threads with priority 0
  2011-04-29  9:35 [Xenomai-help] How to interpret /proc/xenomai/stat CPU time of threads with priority 0 Thierry Bultel
@ 2011-04-30 10:31 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2011-04-30 10:31 UTC (permalink / raw)
  To: Thierry Bultel; +Cc: xenomai, Nicolas Mabire, Jean-Baptiste Tredez

On Fri, 2011-04-29 at 11:35 +0200, Thierry Bultel wrote:
> Hi all,
> 
> I was wondering if the displayed CPU time was, for these particular
> threads, 
> the only time spent in primary mode, of the total amount of time spent
> on the CPU.
> 
> I am namely currently debugging an application which has such kind of
> thread,
> with a period of 50ms, and that takes up to 23% of the CPU.
> That is bad, but not a real issue if that time is spent only in
> secondary mode,
> but I do not know how to figure it out. 
> The mode switches frequency is equal to the period of my thread, since
> it uses rt_task_wait_period
> 
> I am a little bit concerned, my fear is that secondary mode time would
> be counted in the ROOT task ...
> BTW, I am using version 2.5.2 (I know, it's old ;-) ).

23% is the time spent by your thread in primary mode, secondary mode is
indeed charged to the root thread.
> 
> Any help would be appreciated.
> 
> Thanks
> Thierry
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help

-- 
Philippe.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-30 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-29  9:35 [Xenomai-help] How to interpret /proc/xenomai/stat CPU time of threads with priority 0 Thierry Bultel
2011-04-30 10:31 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.