On 04/11/2024 20:12, dhpanch...@gmail.com wrote:

I got it work. It seems RT_RUNTIME_SHARE disabled was the culprit. I re-enabled it using these instructions and the benchmark worked without packet drops or underruns:

*Underruns Every Second with DPDK + Ubuntu*

With Linux kernels 5.10 and beyond, we have observed periodic underruns on systems that otherwise have no issues. These Linux kernel versions are the default for Ubuntu 20.04.3 LTS and later. The underrun issue is due to the |RT_RUNTIME_SHARE| feature being disabled by default in these versions of the Linux kernel (shown as |NO_RT_RUNTIME_SHARE|). The following procedure can be used to enable this feature. This process was tested on Linux kernel version 5.13; the procedure may be slightly different on other kernel versions. To determine the Linux kernel version of your system, in a terminal issue the command |uname -r|.

|$ sudo -s $ cd /sys/kernel/debug/sched $ cat features | tr ' ' '\n' | grep RUNTIME_SHARE NO_RT_RUNTIME_SHARE $ echo RT_RUNTIME_SHARE > features $ cat features | tr ' ' '\n' | grep RUNTIME_SHARE RT_RUNTIME_SHARE|

_______________________________________________
USRP-users mailing list --usrp-users@lists.ettus.com
To unsubscribe send an email tousrp-users-le...@lists.ettus.com
Just to fill people in, this appears in the DPDK document:

https://kb.ettus.com/Getting_Started_with_DPDK_and_UHD

But NOT in the general "Performance Tuning Tips and Tricks", which is the one I'm most familiar with:

https://kb.ettus.com/USRP_Host_Performance_Tuning_Tips_and_Tricks


We will probably move that note on RT_RUNTIME_SHARE to the "Performance Tuning" document, or at least
  replicate it.

_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to