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  <20172018  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  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: registerRecordDeviceDriver.pl takes a long time to finish
From: "Johnson, Andrew N." <[email protected]>
To: Henrique Almeida <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Wed, 27 Sep 2017 17:59:25 +0000
So the problem seems to be related to the Perl version (5.18 is OK, 5.20 got much slower), and maybe to our DBD file parser reading large DBD files into memory. Since I can replicate this now I hope to be able to make it so that our code isn’t so badly affected.

- Andrew


> On Sep 27, 2017, at 11:16 AM, Henrique Almeida <[email protected]> wrote:
> 
> Hello, I can confirm the same problem on Ubuntu 16.04 and EPICS base 3.16.
> 
> 
> 2017-09-27 12:32 GMT-03:00 Johnson, Andrew N. <[email protected]>:
>> Hi Hinko,
>> 
>> On Sep 27, 2017, at 5:15 AM, Hinko Kocevar <[email protected]> wrote:
>>> 
>>> Under 3.15.4 perl script execution takes a lot of time on Linux Mint, while it executes in a jiffy on CentOS.
>>> I added a time in front of the perl call in RULES.db:
>>> 
>>> 
>>> time perl -CSD /devel/root/R3.15.4/base/bin/linux-x86_64/registerRecordDeviceDriver.pl   -I. -I.. -I../O.Common -I../../../dbd -I/devel/root/R3.15.4/modules/adcore-master/dbd -I/devel/root/R3.15.4/modules/adsimdetector-master/dbd -I/devel/root/R3.15.4/modules/asyn-master/dbd -I/devel/root/R3.15.4/modules/autosave-master/dbd -I/devel/root/R3.15.4/modules/busy-master/dbd -I/devel/root/R3.15.4/modules/calc-master/dbd -I/devel/root/R3.15.4/modules/sscan-master/dbd -I/devel/root/R3.15.4/base/dbd    -o simDetectorApp_registerRecordDeviceDriver.cpp ../O.Common/simDetectorApp.dbd simDetectorApp_registerRecordDeviceDriver /devel/stage/R3.15.4/iocs/simdetectorioc-master
>>> 
>>> 
>>> 29.95user 0.02system 0:29.98elapsed 99%CPU (0avgtext+0avgdata 19256maxresident)k
>>> 
>>> 
>>> I think other calls to perl are awfully slow, too..
>>> Any idea why it might be so slow?
>> 
>> This sounds more like a problem with your Linux Mint system configuration than with the EPICS scripts, I run Linux Mint on my personal laptop at home and don’t see these kinds of issues.
>> 
>> I wonder if this may be related to different Locale settings. Is this slow:
>>    time perl -CSD -e 'print "Hello\n"'
>> 
>> If yes, please try this
>>    time perl -e ‘print "Hello\n"'
>> and then this
>>    time perl -CSDL -e 'print "Hello\n"'
>> and this
>>    time perl -C -e 'print "Hello\n"'
>> to see if the flags make any difference. What is your locale set to (echo $LANG) and maybe try changing it to see if that has any effect.
>> 
>> Please report any interesting findings back here...
>> 
>> HTH,
>> 
>> - Andrew
>> 


References:
registerRecordDeviceDriver.pl takes a long time to finish Hinko Kocevar
Re: registerRecordDeviceDriver.pl takes a long time to finish Johnson, Andrew N.
Re: registerRecordDeviceDriver.pl takes a long time to finish Henrique Almeida

Navigate by Date:
Prev: Re: issue with epics in python Matt Newville
Next: Record processing twice after upgrading to Base 3.15.5 Dunning, Michael
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: registerRecordDeviceDriver.pl takes a long time to finish Henrique Almeida
Next: Re: registerRecordDeviceDriver.pl takes a long time to finish Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·