Skip to content

DAQ run with dpdklibs at VST (np02 srv 001)

Alessandro Thea edited this page Mar 24, 2023 · 6 revisions

Work area setup

Generate configuration

daqconf file:

{
  "boot": {
    "use_connectivity_service": false,
    "opmon_impl": "cern"
  },
  "readout": {
    "clock_speed_hz": 62500000,
    "eth_mode": true,
    "data_rate_slowdown_factor": 1,
    "emulator_mode": false,
    "readout_sends_tp_fragments": false,
    "enable_dpdk_reader": true,
    "host_dpdk_reader": ["np02-srv-001"]
  },

  "trigger": {
    "trigger_activity_config": {"prescale":1000},
    "trigger_window_before_ticks": 2144,
    "trigger_window_after_ticks": 260000,
    "trigger_rate_hz": 1.0
  }
}

HWMap file:

# DRO_SourceID DetLink DetSlot DetCrate DetID DRO_Host DRO_Card DRO_SLR DRO_Link
0 0 0 1 3 np02-srv-001 0 0 0
1 1 0 1 3 np02-srv-001 0 0 1
2 2 0 1 3 np02-srv-001 0 0 2
3 3 0 1 3 np02-srv-001 0 0 3
64 4 0 1 3 np02-srv-001 0 0 4
65 5 0 1 3 np02-srv-001 0 0 5
66 6 0 1 3 np02-srv-001 0 0 6
67 7 0 1 3 np02-srv-001 0 0 7

Generate daqconf with the following commands:

daqconf_multiru_gen -c ./daqconf.json --hardware-map-file ./hwmap.txt dpdk_test

Apply patch to readout app (dpdk_test/data/runp02srv0010_conf.json) for the nic_reader plugin:

      {
            "data": {
                "card_id": 0,
                "dest_ip": "10.73.139.22",
                "eal_arg_list": "-l 0-1 -n 3 -- -m [0:1].0 -j",
                "ip_sources": [
                    {
                        "id": 0,
                        "ip": "10.73.139.25",
                        "lcore": 1,
                        "rx_q": 0
                    },
                    {
                        "id": 1,
                        "ip": "10.73.139.24",
                        "lcore": 1,
                        "rx_q": 1
                    },
                ],
                "rx_cores": [
                    {
                        "lcore_id": 1,
                        "rx_qs": [
                            0,
                            1
                        ]
                    }
                ],
                "with_drop_flow": false
            },
            "match": "nic_reader"
        }