-
Notifications
You must be signed in to change notification settings - Fork 9
Python tools killed on the CTP7 with the address table for 12 OH's #41
Description
When trying to launch the gbt.py tool on the CTP7 with the address table for 12 OH's in order to perform a phase scan, the process is killed.
Brief summary of issue
During the tests of the new CTP7 release (version 3.7.0) with 12 OH's, the python tools on the CTP7 stopped working. Some of the tools can be used from the DAQ machine, but others, such as gbt.py, must currently must be called from the CTP7.
Each tool using the address table is killed because an out-of-memory issue during the pickle file loading :
reg_utils/python/reg_interface/common/reg_xml_parser.py
Lines 106 to 113 in 7b9cf05
| fname = ADDRESS_TABLE_TOP[:-3] + "pickle" | |
| try: | |
| gc.disable() | |
| f = open(fname, 'r') | |
| global nodes | |
| nodes = pickle.load(f) | |
| f.close() | |
| gc.enable() |
The precise error is the following :
eagle63:~$ gbt.py 0 0 v3b-phase-scan /mnt/persistent/gemdaq/gbt/OHv3b/20180314/GBTX_OHv3b_GBT_0__2018-03-14_FINAL.txt
Open pickled address table if available /mnt/persistent/gemdaq/xml/gem_amc_top.pickle...
KilledTypes of issue
- Bug report (report an issue with the code)
- Feature request (request for change which adds functionality)
Expected Behavior
I expected the gbt.py tool to perform a phase scan without any error.
Current Behavior
The gbt.py is currently killed.
eagle63:~$ gbt.py 0 0 v3b-phase-scan /mnt/persistent/gemdaq/gbt/OHv3b/20180314/GBTX_OHv3b_GBT_0__2018-03-14_FINAL.txt
Open pickled address table if available /mnt/persistent/gemdaq/xml/gem_amc_top.pickle...
KilledSteps to Reproduce (for bugs)
- Connect to a CTP7 with an address table for 12OH's, e.g.
ssh gemuser@eagle63 - Launch the phase scan command :
gbt.py 0 0 v3b-phase-scan /mnt/persistent/gemdaq/gbt/OHv3b/20180314/GBTX_OHv3b_GBT_0__2018-03-14_FINAL.txt - The process is killed.
Possible Solution (for bugs)
Enabling the GC did not help. The gbt.py tools could be refactored to run from the DAQ machine.
Your Environment
- CTP7 build ID : CTP7-GENERIC-20180529T153916-0500-4935611
- CTP7 firmware version : 3.7.0
- Pickle file for 12OH's
- Version used : No package appears on
rpm -qaoutput. No mention of version in the/mnt/persistent/gemdaq/python/reg_interface/files. TheparseXML()function is the same as in the current repository. - Shell used :
/bin/sh
Default environment :
TERM=xterm-256color
SHELL=/bin/sh
USER=gemuser
LD_LIBRARY_PATH=:/mnt/persistent/gemdaq/lib:/mnt/persistent/rpcmodules
PATH=/mnt/persistent/gemuser/bin:/mnt/persistent/gemdaq/python/reg_interface:/usr/local/bin:/usr/bin:/bin:/mnt/persistent/gemdaq/scripts:/mnt/persistent/gemdaq/bin
PWD=/mnt/persistent/gemuser
EDITOR=vi
LANG=en_US.UTF-8
TZ=UTC
PS1=\h:\w\$
SHLVL=1
HOME=/mnt/persistent/gemuser
LANGUAGE=en_US.UTF-8
GREP_OPTIONS=--color=auto
LS_OPTIONS=--color=auto
LOGNAME=gemuser
GEM_PATH=/mnt/persistent/gemdaq
_=/usr/bin/env