Blame SPECS/realtime-setup.spec

71814e
Name: realtime-setup
71814e
Version: 2.2
71814e
Release: 4%{?dist}
71814e
License: GPLv2
71814e
Summary: Setup RT/low-latency environment details
71814e
Source0: https://jcwillia.fedorapeople.org/realtime-setup-%{version}.tar.bz2
71814e
URL:  https://gitlab.com/rt-linux-tools/realtime-setup.git
71814e
71814e
BuildRequires: gcc
71814e
BuildRequires: make
71814e
BuildRequires: systemd
71814e
BuildRequires: systemd-rpm-macros
71814e
BuildRequires: annobin
71814e
Requires: pam
71814e
Requires: kexec-tools
71814e
Requires: tuna
71814e
Requires: tuned
71814e
Requires: tuned-profiles-realtime
71814e
Requires: systemd
71814e
71814e
# disable generation of debuginfo packages for this package
71814e
# the only executable from this package is realtime-entsk and it's not really
71814e
# something that requires debugging.
71814e
%global debug_package %{nil}
71814e
71814e
%description
71814e
Configure details useful for low-latency environments.
71814e
71814e
Installation of this package results in:
71814e
  - creation of a realtime group
71814e
  - adds realtime limits configuration for PAM
71814e
  - adds udev specific rules for threaded irqs and /dev/rtc access
71814e
  - adds /usr/bin/slub_cpu_partial_off to turn off cpu_partials in SLUB
71814e
  - adds net-socket timestamp static key daemon (realtime-entsk)
71814e
71814e
The slub_cpu_partial_off script is used to turn off the SLUB slab allocator's
71814e
use of cpu-partials, which has been known to create latency-spikes.
71814e
71814e
The realtime-entsk program is a workaround for latency spikes caused when the
71814e
network stack enables hardware timestamping and activates a static key. The
71814e
realtime-entsk progam is activated by the systemd service included and merely
71814e
enables the timestamp static key and pauses, effectively activating the static
71814e
key and never exiting, so no deactivation/activation sequences will be seen.
71814e
71814e
Neither the slub script or realtime-entsk are active by default.
71814e
71814e
71814e
%prep
71814e
%setup -q
71814e
71814e
71814e
%build
71814e
%make_build CFLAGS="%{build_cflags} -D_GNU_SOURCE" all
71814e
71814e
%install
71814e
%make_install DEST=%{buildroot} install
71814e
71814e
%post
71814e
/usr/sbin/groupadd -f -g 71 realtime
71814e
71814e
%preun
71814e
%systemd_preun realtime-setup.service
71814e
71814e
%files
71814e
%config(noreplace) %{_sysconfdir}/security/limits.d/realtime.conf
71814e
%config(noreplace) %{_sysconfdir}/udev/rules.d/99-rhel-rt.rules
71814e
%config(noreplace) %{_sysconfdir}/sysconfig/realtime-setup
71814e
%{_bindir}/slub_cpu_partial_off
71814e
%{_sbindir}/realtime-entsk
71814e
%{_sbindir}/kernel-is-rt
71814e
%{_unitdir}/realtime-setup.service
71814e
%{_bindir}/realtime-setup
71814e
%{_unitdir}/realtime-entsk.service
71814e
%license gpl-2.0.txt
71814e
71814e
%changelog
71814e
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.2-4
71814e
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
71814e
  Related: rhbz#1991688
71814e
71814e
* Wed May 26 2021 Clark Williams <williams@redhat.com> - 2.2-3
71814e
- pidfile error from renaming. Resolves rhbz##1891048
71814e
71814e
* Thu May 20 2021 Clark Williams <williams@redhat.com> - 2.2-2
71814e
- Cgroupv2 fix.  Resolves rhbz#1891048
71814e
71814e
* Wed May 19 2021 Clark Williams <williams@redhat.com> - 2.2-1
71814e
- Fix realtime-entsk.service using wrong image. Resolves rhbz#1891048
71814e
71814e
* Fri May 14 2021 Clark Williams <williams@redhat.com> - 2.1-4
71814e
- Sync RHEL 9 and Fedora versions
71814e
71814e
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.1-3
71814e
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
71814e
71814e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
71814e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
71814e
71814e
* Wed Mar 27 2019 Clark Williams <williams@redhat.com> 2.1.1
71814e
- build for RHEL 8.1.0
71814e
- added OSCI gating test framework
71814e
Resolves: rhbz#1682427
71814e
71814e
* Tue Oct 23 2018 Clark Williams <williams@redhat.com> 2.0.10
71814e
- rebuild to see if build-id continues to appear in the rpm
71814e
71814e
* Mon Sep 24 2018 Clark Williams <williams@redhat.com> 2.0.9
71814e
- fix annocheck static source analysis errors
71814e
Resolves: rhbz#1619407
71814e
71814e
* Fri Sep 14 2018 Clark Williams <williams@redhat.com> 2.0.8
71814e
- fix some coverity complaints about shell scripts
71814e
Resolves: rhbz#1619407
71814e
71814e
* Fri Sep 14 2018 Clark Williams <williams@redhat.com> 2.0.7
71814e
- strip rt-entsk executable on installation
71814e
Resolves: rhbz#1619407
71814e
71814e
* Fri Aug 24 2018 Clark Williams <williams@redhat.com> 2.0.6
71814e
- check for open failure to make coverity happy
71814e
Resolves: rhbz#1619407
71814e
71814e
* Fri Aug 24 2018 Clark Williams <williams@redhat.com> 2.0.5
71814e
- move pidfile write to after daemonize in rt-entsk
71814e
Resolves: rhbz#1619407
71814e
71814e
* Wed Aug 22 2018 Clark Williams <williams@redhat.com> 2.0.4
71814e
- add logic to write a pid file in rt-entsk (keep systemd happy)
71814e
Resolves: rhbz#1619407
71814e
71814e
* Wed Aug 22 2018 Clark Williams <williams@redhat.com> 2.0.3
71814e
- sync with rhel-7.6 build
71814e
Resolves: rhbz#1619407
71814e
71814e
* Wed Aug 22 2018 Clark Williams <williams@redhat.com> 2.0.2
71814e
- fix installation of rt-entsk
71814e
Resolves: rhbz#1619407
71814e
71814e
* Mon Aug 20 2018 Clark Williams <williams@redhat.com> 2.0.1
71814e
- build for RHEL 8.0.0
71814e
- add rt-entsk program for forcing network timestamps enabled
71814e
Resolves: rhbz#1619407
71814e
71814e
* Wed Aug 08 2018 Clark Williams <williams@redhat.com> 1.59-8
71814e
- remove libcgroup requirement
71814e
- remove comment about irqbalance
71814e
71814e
* Fri Jun 01 2018 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 1.59-7
71814e
- rt-setup no longer rrequires rtctl (1585198)
71814e
Resolves: rhbz#1585198
71814e
71814e
* Tue Jul 05 2016 John Kacur <jkacur@redhat.com> - 1.59-5
71814e
- Rebuild for rhel-7.3
71814e
Resolves: rhbz#1341783
71814e
71814e
* Tue Jun 14 2016 John Kacur <jkacur@redhat.com> - 1.59-3
71814e
- Fix some spelling mistakes in the comments in rhel-rt.rules
71814e
- Add udev rules to allow the realtime group to access msr and cpuid registers
71814e
Resolves: rhbz#1341783
71814e
71814e
* Fri Jul 10 2015 Clark Williams <williams@redhat.com> - 1.59-2
71814e
- removed post-install script that disables irqbalance (1203764)
71814e
- fixed typo in requires for tuned-profiles-realtime (1241936)
71814e
71814e
* Thu Jul  2 2015 Clark Williams <williams@redhat.com> - 1.59-1
71814e
- added tuned and tuna dependencies, removed sqlite  (1203764)
71814e
71814e
* Mon Dec 29 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.58-2
71814e
- fixed rt-setup shell script called on startup (1162769)
71814e
- removed the unnecessary mrg-rt-firmware logic (1162769)
71814e
71814e
* Fri Dec 26 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.58-1
71814e
- make startup logic work with systemd (1162769)
71814e
- product name cleanup (1173312)
71814e
71814e
* Fri Nov 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-6
71814e
- remove a reference to mrg-rt-release from initscript (1162766)
71814e
71814e
* Mon Nov 24 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-5
71814e
- move kernel-is-rt from /sbin to /usr/sbin (1151563)
71814e
71814e
* Tue Nov 18 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-4
71814e
- remove the database used by mrg-rt-release (1162766)
71814e
71814e
* Tue Nov 11 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-3
71814e
- remove mrg-rt-release (1162766)
71814e
71814e
* Tue Nov 04 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-2
71814e
- remove the old dracut rules from RHEL6 (1160440)
71814e
71814e
* Wed Oct 29 2014 Clark Williams <williams@redhat.com> - 1.57-1
71814e
- added mrg-2.5.8 release to mrg-rt-release database
71814e
71814e
* Tue Sep 30 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.56-2
71814e
- added mrg-2.5.7 release to mrg-rt-release database
71814e
71814e
* Wed Aug 20 2014 Clark Williams <williams@redhat.com> - 1.56-1
71814e
- added mrg-2.5.6 release to mrg-rt-release database
71814e
- removed dracut rule that caused problems when adding firmware to initramfs
71814e
71814e
* Fri Jul 25 2014 Clark Williams <williams@redhat.com> - 1.55-8
71814e
- added mrg-2.5.2 and mrg-2.5.4 releases to mrg-rt-release database
71814e
71814e
* Tue Jun 10 2014 John Kacur <jkacur@redhat.com> - 1.55-7
71814e
- udev: Add udev rule to give group realtime write access to cpu_dma_latency
71814e
71814e
* Mon Apr 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-6
71814e
- Added mrg-2.5 GA data to the mrg-rt-release database
71814e
71814e
* Wed Apr 09 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-5
71814e
- Added mrg-2.4.6 data to the mrg-rt-release database
71814e
71814e
* Fri Mar 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-4
71814e
- Trim the kernel version when read from uname -rt
71814e
71814e
* Tue Feb 18 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-3
71814e
- Added mrg-2.4.5 data to the mrg-rt-release database
71814e
71814e
* Wed Jan 22 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-2
71814e
- Added mrg-2.4.3 data to the mrg-rt-release database
71814e
71814e
* Tue Dec 10 2013 Clark Williams <williams@redhat.com> - 1.55-1
71814e
- First common build for RHEL7 and RHEL6
71814e
71814e
* Thu Nov 28 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 1.54-2
71814e
- Enhanced update-mrg-rt-release
71814e
71814e
* Thu Nov 28 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 1.54-1
71814e
- Update mrg-rt-release on every boot [848433]
71814e
71814e
* Thu Aug 29 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-4
71814e
- add /lib/firmware/$(uname -r) to dracut firmware search path (998920)
71814e
- ensure rt-firmware files are on udev firmware search path (998920)
71814e
71814e
* Thu Aug 22 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-3
71814e
- removed the dracut config file
71814e
71814e
* Tue Aug 20 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-2
71814e
- added configuration file for dracut (998920)
71814e
- fixed macro usage on the specfile
71814e
71814e
* Thu Apr  25 2013 Clark Williams <williams@redhat.com> - 1.53-1
71814e
- turn off cgroup mounting logic
71814e
- added Requires for libcgroup
71814e
71814e
* Tue Apr   2 2013 Clark Williams <williams@redhat.com> - 1.52-1
71814e
- added script slub_cpu_partial_off
71814e
- added cgroups to /etc/sysconfig/rt-setup
71814e
71814e
* Wed Mar  27 2013 Clark Williams <williams@redhat.com> - 1.51-1
71814e
- added code to turn off SLUB cpu_partial at startup
71814e
71814e
* Mon Nov  12 2012 Luis Claudio R. Goncalves  <lgoncalv@redhat.com> - 1.50-1
71814e
- rt-setup-kdump: use mrg-2.x as the kdump kernel [868446] [868442] [868329]
71814e
- rt-setup-kdump: simplified the script and added --rhel option
71814e
71814e
* Tue Mar   6 2012 Clark Williams <williams@redhat.com> - 1.11-1
71814e
- removed %%post logic that disables bandwidth limiting [BZ# 791371]
71814e
- changed rtprio from 100 to 99 in realtime.conf
71814e
71814e
* Thu Oct  13 2011 Clark Williams <williams@redhat.com> - 1.10-1
71814e
- fixed thinko by removing firmware download logic
71814e
71814e
* Tue Oct  11 2011 Clark Williams <williams@redhat.com> - 1.9-1
71814e
- added sysconfig and init script for handling cgroup mounting
71814e
- changed script kernel-is-rt to use /sys/kernel/realtime
71814e
71814e
* Wed May 11 2011 Clark Williams <williams@redhat.com> - 1.8-1
71814e
- simplified mrg-rt-firmware.rules to fix boot time hang on
71814e
  large core machines (BZ# 698481)
71814e
71814e
* Fri Feb 11 2011 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.7-4
71814e
- Normalized the RHEL6 firmware path search (due to uname -r changes)
71814e
71814e
* Thu May 27 2010 John Kacur <jkacur@redhat.com> - 1.7-2
71814e
- set kernel.hung_task_panic=0 (off) by default
71814e
- set kernel.hung_task_timeout_secs=600 by default
71814e
- used sysctl to set sched_rt_runtime_us at install time, not just boot time
71814e
71814e
* Tue May 18 2010 Clark Williams <williams@redhat.com> - 1.7-1
71814e
- removed requirement for kernel-rt (circular dependency)
71814e
- cleaned up mrg-rt-firmware.rules (added commas between all key/value pairs)
71814e
71814e
* Wed Nov 25 2009 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.6-3
71814e
- rt-setup-kdump: configure kdump on all MRG kernel flavors
71814e
- rt-setup-kdump: fix a log entry that was too verbose
71814e
71814e
* Wed Nov 25 2009 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.6-2
71814e
- rt-setup-kdump treats MRG v1 and v2 kernels accordingly (BZ# 517529)
71814e
71814e
* Mon Nov  2 2009 Clark Williams <williams@redhat.com> - 1.6-1
71814e
- removed "@16" specifier from rt-setup-kdump script (BZ# 517529)
71814e
71814e
* Tue Sep  1 2009 Clark Williams <williams@redhat.com> - 1.5-2
71814e
- fixed path mismatches reported by Vernon Maury
71814e
71814e
* Wed Aug 26 2009 Clark Williams <williams@redhat.com> - 1.5-1
71814e
- add udev rules and scripts for handling driver firmware download
71814e
71814e
* Thu Jul  9 2009 Clark Williams <williams@redhat.com> - 1.4-1
71814e
- blow away rtctl udev rule (compatibility problem with RHEL
71814e
  version of udev)
71814e
- update /dev/rtc udev rule to use PROGRAM rather than SYMLINK
71814e
71814e
* Tue Jul  7 2009 Clark Williams <williams@redhat.com> - 1.3-1
71814e
- added udev rules file to address:
71814e
 - BZ 510121 hwclock & /dev/rtc broken in rt-kernel
71814e
 - BZ 466929 udev rule for hotplug rtctl
71814e
71814e
* Thu May 21 2009 Clark Williams <williams@redhat.com> - 1.2-1
71814e
- added post section to edit /etc/sysctl.conf and add the
71814e
  kernel.sched_rt_runtime_us parameter = -1 line to disable
71814e
  the RT scheduler bandwith limiter
71814e
71814e
* Tue Jul 15 2008 Clark Williams <williams@redhat.com> - 1.1-6
71814e
- fixed rt-setup-kdump to handle incorrect arguments (BZ 455536)
71814e
- added help argument to rt-setup-kdump
71814e
71814e
* Fri Jun 13 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-5
71814e
- rt-setup-kdump now touches /etc/grub.conf only when requested
71814e
71814e
* Tue Jun 03 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-4
71814e
- /usr/bin/rt-setup-kdump had wrong permissions
71814e
- changed rt-setup-kdump: added a few tests for reserved memory and for the
71814e
  absence of /etc/sysconfig/kdump
71814e
- now rt-setup requires kexec-tools
71814e
71814e
* Mon May 12 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-3
71814e
- disables irqbalance as it may hurt determinism in RT
71814e
- installs rt-setup-kdump in /usr/bin
71814e
71814e
* Tue Apr 22 2008 Clark Williams <williams@redhat.com> - 1.1-2
71814e
- removed sed script to edit kdump config file (using updated
71814e
  kexec-tools instead)
71814e
71814e
* Mon Apr 21 2008 Clark Williams <williams@redhat.com> - 1.1-1
71814e
- removed --args-linux from /etc/sysconfig/kdump (BZ# 432378)
71814e
- changed BuildArch to noarch
71814e
71814e
* Thu Feb 07 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-3
71814e
- BZ:399591 - Fixed spec issues pointed by Jeremy Katz
71814e
- BZ:399591 - @realtime has gid=71.
71814e
- FIXES: BZ399591
71814e
71814e
* Thu Aug 02 2007 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-2
71814e
- Fixed package description
71814e
71814e
* Mon Jul 30 2007 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-1
71814e
- Initial packaging
71814e
- Requires all the basic packages for RT
71814e
- Requires support for limits.d and no realtime.conf present in PAM package