[uhd/f16] Allowed UHD to boost the thread's scheduling priority

Jaroslav Škarvada jskarvad at fedoraproject.org
Fri Feb 10 11:29:24 UTC 2012


commit 23b58e668f2182146c80a8135b1ec79a30f708b7
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date:   Fri Feb 10 12:29:22 2012 +0100

    Allowed UHD to boost the thread's scheduling priority
    
      Resolves: rhbz#781540

 uhd-limits.conf |    5 +++++
 uhd.spec        |   10 +++++++++-
 2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/uhd-limits.conf b/uhd-limits.conf
new file mode 100644
index 0000000..2a4f63a
--- /dev/null
+++ b/uhd-limits.conf
@@ -0,0 +1,5 @@
+# Required for better USRP performance, see:
+# http://files.ettus.com/uhd_docs/manual/html/general.html#threading-notes
+# http://bugzilla.redhat.com/show_bug.cgi?id=781540
+
+ at usrp         -       rtprio          99
diff --git a/uhd.spec b/uhd.spec
index e943ee8..7167a05 100644
--- a/uhd.spec
+++ b/uhd.spec
@@ -9,7 +9,7 @@
 Name:           uhd
 URL:            http://code.ettus.com/redmine/ettus/projects/uhd/wiki
 Version:        3.3.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 License:        GPLv3+
 BuildRequires:  cmake
 BuildRequires:  boost-devel libusb1-devel python-cheetah
@@ -18,6 +18,7 @@ Requires:       tkinter
 Group:          Applications/Engineering
 Summary:        Universal Hardware Driver for Ettus Research products
 Source0:        %{name}-%{version}.tar.gz
+Source1:        %{name}-limits.conf
 
 %description
 The UHD is the universal hardware driver for Ettus Research products.
@@ -53,6 +54,8 @@ popd
 mkdir _tmpdoc
 mv %{buildroot}%{_docdir}/%{name}/{AUTHORS.txt,LICENSE.txt,README.txt} _tmpdoc
 
+install -m 644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/security/limits.d/99-usrp.conf
+
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
@@ -77,6 +80,7 @@ Documentation for the Universal Hardware Driver (UHD).
 %doc _tmpdoc/*
 %{_bindir}/uhd_find_devices
 %{_bindir}/uhd_usrp_probe
+%config(noreplace) %{_sysconfdir}/security/limits.d/*.conf
 %{_libdir}/lib*.so.*
 %{_libexecdir}/uhd
 
@@ -89,6 +93,10 @@ Documentation for the Universal Hardware Driver (UHD).
 %doc %{_docdir}/%{name}/*
 
 %changelog
+* Fri Feb 10 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 3.3.1-3
+- Allowed UHD to boost the thread's scheduling priority
+  Resolves: rhbz#781540
+
 * Wed Jan 11 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 3.3.1-2
 - Added tkinter requires
   Resolves: rhbz#769678


More information about the scm-commits mailing list