Bug 781540

Summary: UHD warns about not being able to set thread priority.
Product: [Fedora] Fedora Reporter: dave.null
Component: uhdAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 16CC: jkaluza, jskarvad
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: uhd-3.3.1-3.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 01:27:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description dave.null 2012-01-13 16:52:30 UTC
Description of problem:

When starting the UHD driver, it warn about not being able to set the thread priority.

It is recommended in the UHD documentation to increase the maximum real-time priority of the UHD user:
http://files.ettus.com/uhd_docs/manual/html/general.html#threading-notes

This could be easily made by adding a file "/etc/security/limits.d/99-usrp.conf" containing:
@usrp         -       rtprio          99


Version-Release number of selected component (if applicable):
uhd-3.3.1-1.fc16.x86_64

How reproducible:
Start any program using the UHD driver (this require an USRP),
eg: uhd_usrp_probe
  
Actual results:
The UHD driver print a warning:

UHD Warning:
    Unable to set the thread priority. Performance may be negatively affected.
    Please see the general application notes in the manual for instructions.
    EnvironmentError: OSError: error in pthread_setschedparam


Expected results:
The UHD start normally, by sucessfully setting the thread priority.

Comment 1 Jaroslav Škarvada 2012-02-10 09:05:06 UTC
Thanks, it makes sense, I will add it.

Comment 2 Fedora Update System 2012-02-10 12:43:15 UTC
uhd-3.3.1-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/uhd-3.3.1-3.fc16

Comment 3 Fedora Update System 2012-02-10 21:54:51 UTC
Package uhd-3.3.1-3.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing uhd-3.3.1-3.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-1522/uhd-3.3.1-3.fc16
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-02-21 01:27:50 UTC
uhd-3.3.1-3.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.