All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] kernelshark to check the CPU usage of the xenomai task.
@ 2018-09-19  8:02 박재호
  2018-09-24 13:16 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: 박재호 @ 2018-09-19  8:02 UTC (permalink / raw)
  To: xenomai

Hi, all



I'm using kernelshark to check the CPU usage of the xenomai task.



To check the cpu share of the xenomai task according to the cpu load given by Linux.

Using the stress-ng tool on Linux .

"# stress-ng -c0 -l100" 

gives 100% load to cpu, and xenomai has a run time of 750us for 1ms cycle.



Checking /proc/xenomai/stat we were able to verify the use of 75% CPU. 

However, I checked the cpu quota of xenomai and linux(stress-ng) using tracd-cmd and kernelshark 

I expected xenomai to use more cpu because its priority was higher than normal Linux, but the result was not so. 

The task that is "ecat-embedded" in the picture is the xenomai task. Why are these results coming out?



thank you for your advice.


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

* Re: [Xenomai] kernelshark to check the CPU usage of the xenomai task.
  2018-09-19  8:02 [Xenomai] kernelshark to check the CPU usage of the xenomai task 박재호
@ 2018-09-24 13:16 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2018-09-24 13:16 UTC (permalink / raw)
  To: 박재호, xenomai

On 19.09.18 10:02, 박재호 wrote:
> Hi, all
> 
> 
> 
> I'm using kernelshark to check the CPU usage of the xenomai task.
> 
> 
> 
> To check the cpu share of the xenomai task according to the cpu load given by Linux.
> 
> Using the stress-ng tool on Linux .
> 
> "# stress-ng -c0 -l100"
> 
> gives 100% load to cpu, and xenomai has a run time of 750us for 1ms cycle.
> 
> 
> 
> Checking /proc/xenomai/stat we were able to verify the use of 75% CPU.
> 
> However, I checked the cpu quota of xenomai and linux(stress-ng) using tracd-cmd and kernelshark
> 
> I expected xenomai to use more cpu because its priority was higher than normal Linux, but the result was not so.

Are you using trace-cmd and kernelshark as-is (unmodified versions)? Then they 
lack knowledge about Xenomai and cannot visualize RT task switches properly. I 
think I once shared some patches we used in-house, but I'm not sure anymore if 
that was public.

> 
> The task that is "ecat-embedded" in the picture is the xenomai task. Why are these results coming out?
> 

Note that html-emails easily get filtered on public lists. Attach any non-text 
information you need to share in a addition to the description in a plain-text 
email.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


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

end of thread, other threads:[~2018-09-24 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-19  8:02 [Xenomai] kernelshark to check the CPU usage of the xenomai task 박재호
2018-09-24 13:16 ` Jan Kiszka

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.