Mu2e / otsdaq_mu2e

Mu2e customizations for otsdaq
Other
1 stars 5 forks source link

significant slowdown of the mu2e_pcie_utils commands #74

Open pavel1murat opened 5 months ago

pavel1murat commented 5 months ago

in addition to the error diagnostics (issue #55) , I'm observing a significant slowdown in execution of the command line single register operations:

mu2etrk@mu2edaq09:~/test_stand/pasha_023>time (my_cntl write 0x9168 0x6824C000 ; my_cntl write 0x916c 0x00000001)
02-25 12:05:02.656416                            mu2edev    ERROR release_all:  - release_all dcs lock not held!
sts=0
02-25 12:05:04.699425                            mu2edev    ERROR release_all:  - release_all dcs lock not held!
sts=0

real    0m4.091s
user    0m0.037s
sys     0m0.046s

mu2etrk@mu2edaq09:~/test_stand/pasha_023>time rocUtil -a 25 -l 0  simple_read
0 0

real    0m2.073s
user    0m0.016s
sys     0m0.053s

As the result, execution of the mu2e_pcie_utils/dtcInterfaceLib/JAConfig.sh takes more than 25 min.

For comparison, an older version of the mu2e_pcie_utils - below - performs significantly faster:

mu2etrk@mu2edaq09:~/test_stand/pasha_018>time (my_cntl write 0x9168 0x6824C000 ; my_cntl write 0x916c 0x00000001)
sts=0
sts=0

real    0m0.177s
user    0m0.032s
sys     0m0.046s
mu2etrk@mu2edaq09:~/test_stand/pasha_018>time rocUtil -a 25 -l 0  simple_read
0 0

real    0m0.130s
user    0m0.017s
sys     0m0.050s

the code in pasha_018 corresponds to mu2e_pcie_utils commit

commit 10627a01b81fd6718e5fb93c69dfad75bf0aa7fa (HEAD)
Merge: a08b16e fdd0efb
Author: eflumerf <61473357+eflumerf@users.noreply.github.com>
Date:   Tue Sep 5 09:34:20 2023 -0500

and the code in pasha_023 has mu2e_pcie_utils commit 

commit 826fcde0ee70df9b440a01ced89f8e6165db084f (HEAD -> develop, origin/develop, origin/HEAD)
Merge: a14c8cd 9c91aa7
Author: eflumerf <61473357+eflumerf@users.noreply.github.com>
Date:   Fri Feb 23 14:50:07 2024 -0600
pavel1murat commented 1 month ago

could it be an overlooked sleep somewhere, put in for debugging purposes ?