Project

General

Profile

Feature #24189

change components.txt file column to be general and allow prepending boardread start with arbitrary string

Added by Ron Rechenmacher 9 months ago. Updated 2 days ago.

Status:
Closed
Priority:
High
Assignee:
Category:
artdaq-daqinterface
Target version:
-
Start date:
03/16/2020
Due date:
% Done:

100%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

The ICARUS CRT/FEB boardreaders need to have linux capabilities which allow accessing raw ethernet.
We can prepend the start of the boardreader process with an executable which has the right capabilities
and that will pass the capabilities onto the boardreader process.

Associated revisions

Revision 16278170 (diff)
Added by John Freeman 9 months ago

JCF: Issue #24189: if a boardreader has a sixth field in quotes in $DAQINTERFACE_KNOWN_BOARDREADERS_LIST, the contents of that field are prepended to that boardreader's launch

Revision 32d1c708 (diff)
Added by John Freeman 9 months ago

JCF: Issue #24189: if a boardreader has a sixth field in quotes in $DAQINTERFACE_KNOWN_BOARDREADERS_LIST, the contents of that field are prepended to that boardreader's launch

History

#1 Updated by John Freeman 9 months ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved

Resolved with commit 16278170ca777b8b3bf5d1758d3af287915679f3 on feature/24189_prepend_boardreader_start. If a sixth, quoted field is added to a boardreader's entry in $DAQINTERFACE_KNOWN_BOARDREADERS_LIST, the contents of that field will be prepended to the launch of that boardreader assuming that $DAQINTERFACE_PROCESS_MANAGEMENT_METHOD is set to "direct". E.g.:

component01 localhost 5305 1 -1  "echo Printing something random " 

is a not-very-practically-useful example of how this is done.

#2 Updated by Gennadiy Lukhanin 9 months ago

  • Status changed from Resolved to Reviewed

Ran a test after modifying known_boardreaders_list_example for the complex_subsystems example as shown blow.

# Name Host [Port [Subsystem]]
component01 localhost -1 1 4-9 "nice -n 12 " 
component02 localhost -1 1 -1  "n1=13 && echo n1=$v1 && nice -n $n1 " 

The "ps -u $(whoami) -mo pid,ni,tid,%cpu,psr,cmd" command shows expected nice values and CPU core assignments.

   PID  NI    TID %CPU PSR CMD
 26722   -      -  0.3   - boardreader -c id: 10103 commanderPluginType: xmlrpc rank: 3 application_name: component01 partition_number: 0
     -  12  26722  0.0   8 -
     -  12  33850  0.0   8 -
     -  12  35829  0.1   4 -
     -  12  35831  0.0   8 -
     -  12  42168  0.0   9 -
 26726   -      -  0.3   - boardreader -c id: 10101 commanderPluginType: xmlrpc rank: 1 application_name: component02 partition_number: 0
     -  13  26726  0.0   3 -
     -  13  33849  0.0  16 -
     -  13  35820  0.0  22 -
     -  13  35824  0.0  18 -
     -  13  42166  0.0  37 -

#3 Updated by Eric Flumerfelt 2 days ago

  • Status changed from Reviewed to Closed

Also available in: Atom PDF