Blame SPECS/realtime-setup.spec

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