Experimental Physics and Industrial Control System
Hi People
we have recently discovered some bugs in devIocStats in the vxWorks
implementation that measures the cpu load, which result in wrong results to be
displayed. I hacked away at the problem for some days and ended up with a
complete re-write. The solution considerably reduces code size and complexity,
is therefore much easier to understand and maintain, and --most importantly--
works correctly. It also contains some additional features:
* A test procedure that measures how well the initial calibration works by
doing it for a number of times and gathering statistics (min, max, avg). This
was useful to determine how long initial calibration should run (the default
is 30 clock ticks which on a mv2100 gives me a variation of less than 0.4%).
* Another test procedure (to be called from the shell) adds exactly 50% load
to the IOC (it burns cpu for one clock tick, then sleeps for one, and repeats
that in a loop for the given duration), so one can see whether the measured
cpu load increases appropriately (it does on my test machines).
* Experienced users can customize behaviour to a certain extent by changing
the values of some global variables.
One downside is that I have tested only with a pretty old version of vxWorks
(5.4.2, we do not have any more recent one here) and with mv162 and mv2100
boards. I would like to ask anyone interested whether they would be willing to
test my code with newer vxWorks versions and other hardware. I don't expect
problems but I would feel safer...
Who is currently maintaining devIocStats and how do I submit patches?
Cheers
--
Ben Franksen
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
________________________________
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.
Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking
Sitz Berlin, AG Charlottenburg, 89 HRB 5583
Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin
http://www.helmholtz-berlin.de
- Replies:
- RE: devIocStats Allison, Stephanie
- Navigate by Date:
- Prev:
Re: rdb archiver and eclipse help Kasemir, Kay
- Next:
sequencer and c-code Pierrick Hanlet
- 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
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: rdb archiver and eclipse help Kasemir, Kay
- Next:
RE: devIocStats Allison, Stephanie
- 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
2018
2019
2020
2021
2022
2023
2024