Kent - some improvements for RT-PREEMPT:
Am 14.07.2013 um 15:19 schrieb Kent A. Reed <[email protected]>:
> Gentle persons:
>
> Do Xenomai and RT-preempt have the same effect as RTAI does on the usual
> Linux instrumentation? "top" for example is blind to the RTAI threads.
>
> I know Xenomai places useful data in /proc/xenomai/stat. Do "top" and
> "ps" ignore it? Are there customized versions of these commands which
> take it into account to give a complete picture of cpu utilization?
>
I've done some minor changes in the rt-preempt rtapi helping thread tracking:
- the thread ID is logged once the thread is started, together with the HAL name
- the threads are now named too with their HAL names in ps/top
- rtapi_app always shows up as 'rtapi:<instance name>' regardless of executable
pathname, so one can determine if a particual RT instance is running
effects:
# step 1: find the pid of the RT process (rtapi_app):
$ ps ax|grep rtapi:0
14925 ? SLsl 0:00 rtapi:0
14934 pts/11 S+ 0:00 grep --color=auto rtapi:0
# step2: show threads in rtapi_app:
$ ps -Leo pid,tid,class,rtprio,stat,comm,wchan |grep 14925
14925 14925 TS - SLsl rtapi:0 skb_recv_datagram
14925 14928 FF 98 SLsl base:0 hrtimer_nanosleep
14925 14929 FF 97 SLsl medium:0 hrtimer_nanosleep
14925 14930 FF 96 SLsl slow:0 hrtimer_nanosleep
^pid
------^^^^^ thread id
----------------------------^^^ HAL thread names
--------------------------------------------^^^^blocked on:
log entries:
Jul 16 10:46:15 ubuntu-10 msgd:0: rt:14925:rt RTAPI: task 'base:0' at
0xb7780de4 period = 100000000 ratio=1 id=1 TID=14928
Jul 16 10:46:15 ubuntu-10 msgd:0: rt:14925:rt RTAPI: task 'medium:0' at
0xb7780e30 period = 200000000 ratio=2 id=2 TID=14929
Jul 16 10:46:15 ubuntu-10 msgd:0: rt:14925:rt RTAPI: task 'slow:0' at
0xb7780e7c period = 300000000 ratio=3 id=3 TID=14930
-------------------------------------^^^^^ pid of rtapi_app
-----------------------------------------------------------^^^^^^^ HAL names of
RT threads
------------------------------------------------------------------------------------------------------------------^^^^^^^^^
thread id's
-m
> I realize this question is better suited for a Xenomai or RT-preempt
> list but I'm a stranger there. My web search skills don't seem to be up
> to the task of finding useful answers this morning.
>
> We're driving hellbent for leather toward full-up adoption of these
> alternatives to RTAI and I think we should know what instrumentation we
> have available.
>
> Regards,
> Kent
>
>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers