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  <20132014  2015  2016  2017  2018  2019  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: SEQ with dynamic assignment of PV in array variable
From: Benjamin Franksen <[email protected]>
To: <[email protected]>
Date: Tue, 4 Jun 2013 14:45:02 +0200
Hi Emmanuel

On Monday, June 03, 2013 15:36:33 Emmanuel Mayssat wrote:
> I upgraded to the latest version of seq (2-1-12) from (2-0-12) thinking that
> the version I use could be out of dateTurns out, seqLog is not part of the
> libseq.so library anymore.... is seqLog obsolete?

Interesting: you are the first user who mentions that.

There are two reasons I remove it in version 2.1. The first: it takes a
(program-wide) lock during the actual write to the log file. This was an
acceptable implementation back when SNL programs were single threaded (seq
versions 1.9.x). But in a multi-threaded program this is a very bad idea,
because writing to a file can take an arbitrarily long amount of time (think
of VxWorks using rsh file access). So each call to seqLog potentially blocks
the whole program i.e. all its state sets.

The second reason is that the standard EPICS errlog facility can be used to
much the same effect (and note that it uses a much saner locking policy), i.e.
a simple wrapper around errlogPrintf, perhaps using a CPP macro to add the
state set and/or program name to the message. Admittedly, you cannot log
different program instances into different files, but if you incorporate a
suitably unique string into the messages then filtering them out of the IOC-
wide log file can be done easily with standard unix command line tools such as
grep.

Cheers
--
Ben Franksen
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachm€nts

Attachment: signature.asc
Description: This is a digitally signed message part.


References:
SEQ with dynamic assignment of PV in array variable Emmanuel Mayssat
RE: SEQ with dynamic assignment of PV in array variable Mark Rivers
RE: SEQ with dynamic assignment of PV in array variable Emmanuel Mayssat

Navigate by Date:
Prev: Re: SEQ with dynamic assignment of PV in array variable Benjamin Franksen
Next: iocLogServer connection problem on win32-x86 platform Janez Golob
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: SEQ with dynamic assignment of PV in array variable Mark Rivers
Next: Re: SEQ with dynamic assignment of PV in array variable Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·