EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: rtems_cpu_usage_report
From: Ricardo Cardenes <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Fri, 27 Apr 2018 07:35:00 -1000
Hi,

We're just invoking rtems_cpu_usage_report(), provided by RTEMS itself.

Cheers,
Ricardo

On Thu, Apr 26, 2018 at 9:20 PM, Ralph Lange <[email protected]> wrote:
Hi Matt,

Nice printout. Is this from the commonly used iocStats module [1]?
You seem to be facing an underflow effect of a 32bit unsigned that is being converted to double.

Cheers,


On Thu, Apr 26, 2018 at 11:51 PM Matt Rippa <[email protected]> wrote:

We're running EPICS 3.14.12.7, RTEMS 4.10.2 on the mvme3100 bsp.​ We just added a small support module to calculate cpu statistics.


We're seeing corrupt calculations on some threads. Has anyone seen this? Any advice?

Thank you,
-Matt

tcs-sim-ioc> rtemsStatsReport   
-------------------------------------------------------------------------------
                             CPU USAGE BY THREAD
------------+----------------------------------------+---------------+---------
ID         | NAME                                   | SECONDS       | PERCENT
------------+----------------------------------------+---------------+---------
0x09010001 | IDLE                                   |    153.005592 |  66.361
0x0A010001 | UI1                                    |      6.594606 |   2.860
0x0A010002 | Imsg                                   |      0.000000 |   0.000 
[...] 


References:
rtems_cpu_usage_report Matt Rippa
Re: rtems_cpu_usage_report Ralph Lange

Navigate by Date:
Prev: June EPICS Meeting at Argonne: Call for presentations Andrew Johnson
Next: Re: rtems_cpu_usage_report Ricardo Cardenes
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: rtems_cpu_usage_report Ricardo Cardenes
Next: June EPICS Meeting at Argonne: Call for presentations Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 27 Apr 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·