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: Hinko Kocevar <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Wed, 27 Sep 2017 15:32:50 +0000
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


Replies:
Re: registerRecordDeviceDriver.pl takes a long time to finish Henrique Almeida
Re: registerRecordDeviceDriver.pl takes a long time to finish Michael Davidsaver
References:
registerRecordDeviceDriver.pl takes a long time to finish Hinko Kocevar

Navigate by Date:
Prev: registerRecordDeviceDriver.pl takes a long time to finish Hinko Kocevar
Next: Re: registerRecordDeviceDriver.pl takes a long time to finish Henrique Almeida
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: registerRecordDeviceDriver.pl takes a long time to finish Hinko Kocevar
Next: Re: registerRecordDeviceDriver.pl takes a long time to finish Henrique Almeida
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 ·