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  2018  2019  2020  <20212022  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  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: disk space / network monitor in iocStats?
From: "Zimoch Dirk \(PSI\) via Tech-talk" <tech-talk at aps.anl.gov>
To: "TFord at lbl.gov" <TFord at lbl.gov>, "pearsonmr at ornl.gov" <pearsonmr at ornl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 16 Nov 2021 16:35:00 +0000
[I have tried to send this mail already but it seems lost in cyberspace. If you you got it already, sorry for the
duplication.]

At PSI, we are not using IOCMON any more but iocStats. And yes, I have added support for disk space.
Our version is here: https://github.com/paulscherrerinstitute/iocStats

This is the template (instantiate once one per disk):
https://github.com/paulscherrerinstitute/iocStats/blob/master/iocStats/iocAdmin/Db/iocFsStats.template

And here are the implementations for posix, vxWorks and Windows.
https://github.com/paulscherrerinstitute/iocStats/blob/master/iocStats/devIocStats/os/posix/osdFileSystem.c
https://github.com/paulscherrerinstitute/iocStats/blob/master/iocStats/devIocStats/os/vxWorks/osdFileSystem.c
https://github.com/paulscherrerinstitute/iocStats/blob/master/iocStats/devIocStats/os/WIN32/osdFileSystem.c


It uses our PSI build system and several PSI internals but you may want to merge the changes with the "official"
iocStats.

Dirk


On Mon, 2021-11-15 at 17:21 -0800, Tynan Ford via Tech-talk wrote:
> There is IOCMON from PSI that contains some network statistic support for VXWorks: 
> http://epics.web.psi.ch/software/iocmon/ 
> 
> We at ALS are using a similar idea from this to monitor network statistics on our linux servers. A colleague worked on
> that and we can discuss that more or share the code. We don't have disk space stats but that would be interesting.
> 
> To address the PV duplication, we ended up separating the existing iocStats database into 2 separate files. An "IOC-
> specific" stats database and a "System-specific" database. Then for each of our soft IOC servers, we have one dummy
> soft IOC that simply loads the system stats database.
> 
> Best,
> Tynan
> 
> On Mon, Nov 15, 2021 at 1:00 PM Pearson, Matthew R. via Tech-talk <tech-talk at aps.anl.gov> wrote:
> > Hi,
> > 
> > Has anyone thought about adding disk space (or, rather, file system mount point) statistics and network statistics
> > to the iocStats module? Or, is there another module that can already do this? Or, is this a sensible idea?
> > 
> > This may only be relevant for soft IOCs. Also, it would be redundant for multiple soft IOCs to all be monitoring
> > disk/network use if they are running on the same machine. I am thinking about a single 'system IOC' that could
> > monitor things like:
> > 
> > Overall CPU load
> > Overall memory
> > Overall file system use (Size, %Used)
> > Overall network use (In/Out Bytes/s)
> > 
> > Not really aiming to replace dedicated system monitoring tools, but getting a few of these important parameters into
> > EPICS can be useful.
> > 
> > I know iocStats is already providing overall CPU and memory use, but not network or disk space. 
> > 
> > Cheers,
> > Matt
> > 
> > 
> > STS Integrated Control System Lead Engineer
> > Spallation Neutron Source
> > Oak Ridge National Lab
> > 

Replies:
Re: disk space / network monitor in iocStats? Miroslaw Dach via Tech-talk
References:
disk space / network monitor in iocStats? Pearson, Matthew R. via Tech-talk
Re: disk space / network monitor in iocStats? Tynan Ford via Tech-talk

Navigate by Date:
Prev: RE: disk space / network monitor in iocStats? Pearson, Matthew R. via Tech-talk
Next: Understanding Motor Record Heinz Junkes via Tech-talk
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  <20212022  2023  2024 
Navigate by Thread:
Prev: RE: disk space / network monitor in iocStats? Pearson, Matthew R. via Tech-talk
Next: Re: disk space / network monitor in iocStats? Miroslaw Dach via Tech-talk
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  <20212022  2023  2024 
ANJ, 16 Nov 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·