Skip to content

DAQ run with dpdklibs

Roland Sipos edited this page Mar 23, 2023 · 6 revisions

Prerequisites

Establish a working emulator chain similar to the TX/RX test wiki.

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": true,
    "readout_sends_tp_fragments": false,
    "enable_dpdk_reader": true,
    "host_dpdk_reader": ["np02-srv-002"]
  },

  "trigger": {
    "trigger_activity_config": {"prescale":1000},
    "trigger_window_before_ticks": 2144,
    "trigger_window_after_ticks": 260000,
    "trigger_rate_hz": 1.0
    "host_trigger": "np04-srv-022"
  },

  "dataflow": {
          "host_dfo": "np04-srv-022",
          "apps": [
                  {
                  "host_df": "np04-srv-022"
                  }
          ]
  },

  "hsi": {
    "host_hsi": "np04-srv-022"
  }
}

HWMap file:

# DRO_SourceID DetLink DetSlot DetCrate DetID DRO_Host DRO_Card DRO_SLR DRO_Link
0 0 0 1 3 np02-srv-002 0 0 0
1 1 0 1 3 np02-srv-002 0 0 1

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/runp02srv0020_conf.json) for the nic_reader plugin:

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