From 60a70f7142047b44cfec6d58ba77f5c7a81f1750 Mon Sep 17 00:00:00 2001 From: Ciro Nishiguchi Date: Tue, 6 Aug 2019 14:40:47 -0500 Subject: examples: remove thread priority elevation Remove UHD call to elevate thread priority to realtime. Setting all threads to the same realtime priority can cause the threads to not share access to the network interface fairly, which adversely affects operation of the worker threads in UHD. --- host/examples/benchmark_rate.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'host/examples/benchmark_rate.cpp') diff --git a/host/examples/benchmark_rate.cpp b/host/examples/benchmark_rate.cpp index 6c2c6868d..539958ede 100644 --- a/host/examples/benchmark_rate.cpp +++ b/host/examples/benchmark_rate.cpp @@ -65,8 +65,6 @@ void benchmark_rx_rate(uhd::usrp::multi_usrp::sptr usrp, const boost::posix_time::ptime& start_time, std::atomic& burst_timer_elapsed) { - uhd::set_thread_priority_safe(); - // print pre-test summary std::cout << boost::format("[%s] Testing receive rate %f Msps on %u channels") % NOW() % (usrp->get_rx_rate() / 1e6) % rx_stream->get_num_channels() @@ -192,8 +190,6 @@ void benchmark_tx_rate(uhd::usrp::multi_usrp::sptr usrp, const boost::posix_time::ptime& start_time, bool random_nsamps = false) { - uhd::set_thread_priority_safe(); - // print pre-test summary std::cout << boost::format("[%s] Testing transmit rate %f Msps on %u channels") % NOW() % (usrp->get_tx_rate() / 1e6) % tx_stream->get_num_channels() @@ -297,8 +293,6 @@ void benchmark_tx_rate_async_helper(uhd::tx_streamer::sptr tx_stream, **********************************************************************/ int UHD_SAFE_MAIN(int argc, char* argv[]) { - uhd::set_thread_priority_safe(); - // variables to be set by po std::string args; std::string rx_subdev, tx_subdev; -- cgit v1.2.3