# Presentation: 663705

## EVBSIM Status

**Fermilab XDAQ test stand simulation**
**Results for 1x1, 1x2, 2x1, 2x2**
**Discussion**
**Plans**

## XDAQ Simulation

## EVBSIM/XDAQ Setup

**XDAQ parameters:**
**	****set Samples       10000****	****	****set triggerDisable               1**
**	****set EIDs              10000****	****	****set builderDisable               0**
** ****	****set eProfile             100****	****set FilterEnable                   0**
** ****	****set BlockSize       4096****	****	****set maxFragments              4**
** ****	****set printEvery        300****	****	****set TestFragmentSize   2048**
**	****MaxRequests and NumGather were varied**
** **
**EVBSIM parameters:**
**	****DMA from host memory to NIC:   10 + bytes/132 us**
**	****Myrinet transfer:                              5 + bytes/160 us**
**	****DMA from NIC to host memory:   15 + bytes/132 us**
**  ****values obtained by tuning 1x1 case, starting from estimates**

## 1x1 EVBSIM/XDAQ Results

**Ratios of EVBSIM and XDAQ bandwidths**
**(in MB/s) for various settings:**
** **
**R \ N          1               4              16              64**
** ****1         ****10/10=1.0      25/26=1.0       43/44=1.0        52/53=1.0**
** ****4         ****23/23=1.0      43/49=0.9       55/58=0.9        59/61=1.0**
**      ****24/25=1.0      43/49=0.9       55/58=0.9**
**64        ****24/25=1.0**
**R = number of concurrent event request packets**
**N = number of event requests per packet**

## 1x2 EVBSIM/XDAQ Results

**Ratios of EVBSIM and XDAQ bandwidths**
**(in MB/s) for various settings:**
** **
**R \ N         1               4              16              64**
** ****1        ****9.5/11=0.9      25/26=1.0       36/30=1.2        37/31=1.2**
** ****4         ****21/22=1.0      32/29=1.1       36/31=1.2        37/31=1.2**
**      ****22/22=1.0      32/27=1.2       36/31=1.2**
**64        ****22/22=1.0**
**R = number of concurrent event request packets**
**N = number of event requests per packet**

## 2x1 EVBSIM/XDAQ Results

**Ratios of EVBSIM and XDAQ bandwidths**
**(in MB/s) for various settings:**
** **
**R \ N         1               4              16              64**
** ****1        ****16/19=0.8      36/45=0.9       51/66=0.8        57/74=0.8**
** ****4        ****31/33=0.9      49/57=0.9       58/72=0.8        60/78=0.8**
**     ****31/33=0.9      49/57=0.9       58/72=0.8**
**64       ****31/34=0.9**
**R = number of concurrent event request packets**
**N = number of event requests per packet**

## 2x2 EVBSIM/XDAQ Results I

**Ratios of EVBSIM and XDAQ bandwidths**
**(in MB/s) for various settings:**
** **
**R \ N         1               4              16              64**
** ****1        ****17/19=0.9      36/43=0.8       50/53=1.0        57/53=1.1**
** ****4        ****31/32=1.0      49/54=0.9       58/59=1.0        60/**_**45**_**=1.3**
**     ****31/33=0.9      49/55=0.9       58/59=1.0**
**64       ****31/33=0.9**
**R = number of concurrent event request packets**
**N = number of event requests per packet**
_**45**_**: XDAQ value not understood**

## 2x2 EVBSIM/XDAQ Results II

**EVBSIM bandwidths now “automatic” like XDAQ.**
**Ratios of EVBSIM and XDAQ bandwidths**
**(in MB/s) for various settings:**
** **
**R \ N         1               4              16              64**
** ****1        ****17/19=0.9      39/43=0.9       57/53=1.1        62/53=1.2**
** ****4        ****30/32=0.9      53/54=1.0       61/59=1.0        62/**_**45**_**=1.4**
**     ****30/33=0.9      53/55=1.0       61/59=1.0**
**64       ****30/33=0.9**
**R = number of concurrent event request packets**
**N = number of event requests per packet**
_**45**_**: XDAQ value not understood**

## Discussion

**Automatic BW results have a problem:**
**Sometimes BW *****drops***** when trigger rate too high**
- EVM can delay sending event IDs ???
- Must be solved
**Manual BW results have a problem:**
**For 2x2 automatic BW is sometimes lower**
- Only higher BW can be understood
- Some latency/BW setting must have been wrong
**1x1/1x2/2x1 will be redone too**

## EVBSIM Plans

**Simple model reasonable so far**
**Fix automatic BW determination**
**Keep extending to 1xN, Nx1, NxN**
- Compare with new XDAQ
**Try to find parameters causing different trends**
- Weights, fudge factors
**Find memory leak, if any**
**Implement RU barrel shifter for LHC case**
**See if it allows the DAQ to keep up with L1**
- Use simple BCN
- Apply weights, fudge factors later