Re: [USRP-users] C++ thread Priority.

2020-07-27 Thread David Carsenat via USRP-users
Just to say how I have solved the problem : - Set the CPU gouvernor to performance with cpufreq-set -g performance - Use a low latency linux kernel, really simply installed following a tuto found on the net for ubuntu. - Add RT priority in the Cpp code (set_thread_priority()) - Reserve a CPU for my

Re: [USRP-users] C++ thread Priority.

2020-07-23 Thread Luke Whittlesey via USRP-users
You might try nice : https://en.wikipedia.org/wiki/Nice_%28Unix%29 On Thu, Jul 23, 2020 at 1:13 PM David Carsenat wrote: > > Many thanks but I am already in O3. > > Le jeu. 23 juil. 2020 à 15:46, Luke Whittlesey via USRP-users > a écrit : >> >> This is probably not the issue, but sometimes I fo

Re: [USRP-users] C++ thread Priority.

2020-07-23 Thread David Carsenat via USRP-users
Many thanks but I am already in O3. Le jeu. 23 juil. 2020 à 15:46, Luke Whittlesey via USRP-users < usrp-users@lists.ettus.com> a écrit : > This is probably not the issue, but sometimes I forget to turn the > compiler optimizations on and that can give you a little boost > depending on the code.

Re: [USRP-users] C++ thread Priority.

2020-07-23 Thread Luke Whittlesey via USRP-users
This is probably not the issue, but sometimes I forget to turn the compiler optimizations on and that can give you a little boost depending on the code. gcc -O2 ... On Wed, Jul 22, 2020 at 4:20 PM Marcus D. Leech via USRP-users wrote: > > On 07/22/2020 03:18 PM, Rob Kossler wrote: > > If you are

Re: [USRP-users] C++ thread Priority.

2020-07-22 Thread Marcus D. Leech via USRP-users
On 07/22/2020 03:18 PM, Rob Kossler wrote: If you are using X310 or N310, you might try DPDK. Even though it is a pain, it would be a whole lot easier than trying a new OS, I believe. Using DPDK enabled my application (which was storing Rx samples to SSD) to run a bunch faster than without DPD

Re: [USRP-users] C++ thread Priority.

2020-07-22 Thread Rob Kossler via USRP-users
If you are using X310 or N310, you might try DPDK. Even though it is a pain, it would be a whole lot easier than trying a new OS, I believe. Using DPDK enabled my application (which was storing Rx samples to SSD) to run a bunch faster than without DPDK. On Wed, Jul 22, 2020 at 1:47 PM Marcus D. Le

Re: [USRP-users] C++ thread Priority.

2020-07-22 Thread Marcus D. Leech via USRP-users
On 07/22/2020 01:40 PM, David Carsenat wrote: It just put received samples in a circular buffer and transmit this buffer. A delay line. But the SR is 50 Msps... 8 bits. Do you have ideas about OS ? Thanks. There are commercial real-time low-latency OS "out there" that aren't free, and UHD ha

Re: [USRP-users] C++ thread Priority.

2020-07-22 Thread David Carsenat via USRP-users
It just put received samples in a circular buffer and transmit this buffer. A delay line. But the SR is 50 Msps... 8 bits. Do you have ideas about OS ? Thanks. Le mer. 22 juil. 2020 à 19:33, Marcus D. Leech a écrit : > On 07/22/2020 01:22 PM, David Carsenat wrote: > > Ok thanks. The code is re

Re: [USRP-users] C++ thread Priority.

2020-07-22 Thread Marcus D. Leech via USRP-users
On 07/22/2020 01:22 PM, David Carsenat wrote: Ok thanks. The code is really simple and i don't think it can be optimized. Is there other linux OS i can try ? Thanks again. If it's really simple, what is the sample-rate? Is it trying to write data to the filesystem at high rates? No amount of

Re: [USRP-users] C++ thread Priority.

2020-07-22 Thread David Carsenat via USRP-users
Ok thanks. The code is really simple and i don't think it can be optimized. Is there other linux OS i can try ? Thanks again. Le mer. 22 juil. 2020 à 19:12, Marcus D. Leech via USRP-users < usrp-users@lists.ettus.com> a écrit : > On 07/22/2020 12:56 PM, David Carsenat via USRP-users wrote: > > He

Re: [USRP-users] C++ thread Priority.

2020-07-22 Thread Marcus D. Leech via USRP-users
On 07/22/2020 12:56 PM, David Carsenat via USRP-users wrote: Hello, I have made a c++ code which sends samples in the main function and receives samples in a thread launched in this main function. I have read that we can set the real time priority with the set_thread_priority function. I have tr

[USRP-users] C++ thread Priority.

2020-07-22 Thread David Carsenat via USRP-users
Hello, I have made a c++ code which sends samples in the main function and receives samples in a thread launched in this main function. I have read that we can set the real time priority with the set_thread_priority function. I have tried to call this function (with parameters (1,true) inside the m