|
|
876737 |
Name: rt-setup
|
|
|
5d547f |
Version: 1.59
|
|
|
876737 |
Release: 2%{?dist}
|
|
|
876737 |
License: GPL+
|
|
|
876737 |
Summary: Setup RHEL-RT environment details
|
|
|
876737 |
Group: System Environment/Base
|
|
|
876737 |
Source: realtime.conf
|
|
|
876737 |
Source1: rt-setup-kdump
|
|
|
876737 |
Source2: rhel-rt.rules
|
|
|
876737 |
Source3: kernel-is-rt
|
|
|
876737 |
Source4: rt-setup.sysconfig
|
|
|
876737 |
Source5: slub_cpu_partial_off
|
|
|
876737 |
Source6: rt-setup.service
|
|
|
876737 |
Source7: rt-setup.systemd
|
|
|
876737 |
|
|
|
876737 |
BuildArch: noarch
|
|
|
876737 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
876737 |
BuildRequires: gcc
|
|
|
876737 |
Requires: rtctl
|
|
|
876737 |
Requires: pam >= 0.99.6.2-3.26
|
|
|
876737 |
Requires: /usr/sbin/groupadd
|
|
|
876737 |
Requires: kexec-tools
|
|
|
876737 |
Requires: libcgroup
|
|
|
876737 |
Requires: python-libs
|
|
|
5d547f |
Requires: tuna
|
|
|
5d547f |
Requires: tuned
|
|
|
5d547f |
Requires: tuned-profiles-realtime
|
|
|
876737 |
|
|
|
876737 |
%description
|
|
|
876737 |
The 'rt-setup' package configures details required by RHEL-RT environment.
|
|
|
876737 |
- creates realtime group
|
|
|
876737 |
- adds realtime limits configuration for PAM
|
|
|
876737 |
- adds /usr/bin/rt-setup-kdump to config kdump in RT
|
|
|
876737 |
- disables irqbalance by default
|
|
|
876737 |
- adds udev specific rules for threaded irqs and /dev/rtc access
|
|
|
876737 |
- adds /usr/bin/slub_cpu_partial_off to turn off cpu_partials in SLUB
|
|
|
876737 |
|
|
|
876737 |
%prep
|
|
|
876737 |
|
|
|
876737 |
%build
|
|
|
876737 |
|
|
|
876737 |
%install
|
|
|
876737 |
rm -Rf %{buildroot}
|
|
|
876737 |
install -m 644 -D %{SOURCE0} %{buildroot}%{_sysconfdir}/security/limits.d/realtime.conf
|
|
|
876737 |
install -m 755 -D %{SOURCE1} %{buildroot}%{_bindir}/rt-setup-kdump
|
|
|
876737 |
install -m 755 -D %{SOURCE5} %{buildroot}%{_bindir}/slub_cpu_partial_off
|
|
|
876737 |
install -m 644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/udev/rules.d/99-rhel-rt.rules
|
|
|
876737 |
install -m 755 -D %{SOURCE3} %{buildroot}%{_sbindir}/kernel-is-rt
|
|
|
876737 |
install -m 755 -D %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/rt-setup
|
|
|
876737 |
install -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/systemd/system/rt-setup.service
|
|
|
876737 |
install -m 755 -D %{SOURCE7} %{buildroot}%{_bindir}/rt-setup
|
|
|
876737 |
|
|
|
876737 |
%post
|
|
|
876737 |
/usr/sbin/groupadd -f -g 71 realtime
|
|
|
5d547f |
|
|
|
5d547f |
# do not disable irqbalance on RHEL-RT 7.2
|
|
|
5d547f |
#systemctl disable irqbalance
|
|
|
876737 |
|
|
|
876737 |
if grep kernel.hung_task_panic /etc/sysctl.conf >/dev/null 2>&1
|
|
|
876737 |
then
|
|
|
876737 |
:
|
|
|
876737 |
else
|
|
|
876737 |
sysctl -w kernel.hung_task_panic=0 >/dev/null 2>&1
|
|
|
876737 |
cat <<EOF >>/etc/sysctl.conf
|
|
|
876737 |
# controls whether the system should reboot if it detects a hung task
|
|
|
876737 |
# 1 means reboot after hung_task_timeout_secs after a hung task is detected
|
|
|
876737 |
# default value is 0
|
|
|
876737 |
kernel.hung_task_panic = 0
|
|
|
876737 |
EOF
|
|
|
876737 |
fi
|
|
|
876737 |
|
|
|
876737 |
if grep kernel.hung_task_timeout_secs /etc/sysctl.conf >/dev/null 2>&1
|
|
|
876737 |
then
|
|
|
876737 |
:
|
|
|
876737 |
else
|
|
|
876737 |
sysctl -w kernel.hung_task_timeout_secs=600 >/dev/null 2>&1
|
|
|
876737 |
cat <<EOF >>/etc/sysctl.conf
|
|
|
876737 |
# controls how long to reboot after a hung task is detected
|
|
|
876737 |
# default is 600 seconds.
|
|
|
876737 |
# note: this only matters if kernel.hung_task_panic=1
|
|
|
876737 |
kernel.hung_task_timeout_secs = 600
|
|
|
876737 |
EOF
|
|
|
876737 |
fi
|
|
|
876737 |
|
|
|
876737 |
# turn on the rt-setup startup file
|
|
|
876737 |
systemctl enable rt-setup
|
|
|
876737 |
|
|
|
876737 |
%preun
|
|
|
876737 |
if [ "$1" = "0" ] ; then # uninstall
|
|
|
876737 |
systemctl disable rt-setup
|
|
|
876737 |
fi
|
|
|
876737 |
|
|
|
876737 |
%clean
|
|
|
876737 |
rm -rf %{buildroot}
|
|
|
876737 |
|
|
|
876737 |
%files
|
|
|
876737 |
%defattr(0644,root,root,0755)
|
|
|
876737 |
%config(noreplace) %{_sysconfdir}/security/limits.d/realtime.conf
|
|
|
876737 |
%config(noreplace) %{_sysconfdir}/udev/rules.d/99-rhel-rt.rules
|
|
|
876737 |
%config(noreplace) %{_sysconfdir}/sysconfig/rt-setup
|
|
|
876737 |
%attr(0755, root, root) %{_bindir}/rt-setup-kdump
|
|
|
876737 |
%attr(0755, root, root) %{_bindir}/slub_cpu_partial_off
|
|
|
876737 |
%attr(0755, root, root) %{_sbindir}/kernel-is-rt
|
|
|
876737 |
%attr(0644, root, root) %{_sysconfdir}/systemd/system/rt-setup.service
|
|
|
876737 |
%attr(0755, root, root) %{_bindir}/rt-setup
|
|
|
876737 |
|
|
|
876737 |
%changelog
|
|
|
5d547f |
* Fri Jul 10 2015 Clark Williams <williams@redhat.com> - 1.59-2
|
|
|
5d547f |
- removed post-install script that disables irqbalance (1203764)
|
|
|
5d547f |
- fixed typo in requires for tuned-profiles-realtime (1241936)
|
|
|
5d547f |
|
|
|
5d547f |
* Thu Jul 2 2015 Clark Williams <williams@redhat.com> - 1.59-1
|
|
|
5d547f |
- added tuned and tuna dependencies, removed sqlite (1203764)
|
|
|
5d547f |
|
|
|
876737 |
* Mon Dec 29 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.58-2
|
|
|
876737 |
- fixed rt-setup shell script called on startup (1162769)
|
|
|
876737 |
- removed the unnecessary mrg-rt-firmware logic (1162769)
|
|
|
876737 |
|
|
|
876737 |
* Fri Dec 26 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.58-1
|
|
|
876737 |
- make startup logic work with systemd (1162769)
|
|
|
876737 |
- product name cleanup (1173312)
|
|
|
876737 |
|
|
|
876737 |
* Fri Nov 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-6
|
|
|
876737 |
- remove a reference to mrg-rt-release from initscript (1162766)
|
|
|
876737 |
|
|
|
876737 |
* Mon Nov 24 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-5
|
|
|
876737 |
- move kernel-is-rt from /sbin to /usr/sbin (1151563)
|
|
|
876737 |
|
|
|
876737 |
* Tue Nov 18 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-4
|
|
|
876737 |
- remove the database used by mrg-rt-release (1162766)
|
|
|
876737 |
|
|
|
876737 |
* Tue Nov 11 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-3
|
|
|
876737 |
- remove mrg-rt-release (1162766)
|
|
|
876737 |
|
|
|
876737 |
* Tue Nov 04 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-2
|
|
|
876737 |
- remove the old dracut rules from RHEL6 (1160440)
|
|
|
876737 |
|
|
|
876737 |
* Wed Oct 29 2014 Clark Williams <williams@redhat.com> - 1.57-1
|
|
|
876737 |
- added mrg-2.5.8 release to mrg-rt-release database
|
|
|
876737 |
|
|
|
876737 |
* Tue Sep 30 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.56-2
|
|
|
876737 |
- added mrg-2.5.7 release to mrg-rt-release database
|
|
|
876737 |
|
|
|
876737 |
* Wed Aug 20 2014 Clark Williams <williams@redhat.com> - 1.56-1
|
|
|
876737 |
- added mrg-2.5.6 release to mrg-rt-release database
|
|
|
876737 |
- removed dracut rule that caused problems when adding firmware to initramfs
|
|
|
876737 |
|
|
|
876737 |
* Fri Jul 25 2014 Clark Williams <williams@redhat.com> - 1.55-8
|
|
|
876737 |
- added mrg-2.5.2 and mrg-2.5.4 releases to mrg-rt-release database
|
|
|
876737 |
|
|
|
876737 |
* Tue Jun 10 2014 John Kacur <jkacur@redhat.com> - 1.55-7
|
|
|
876737 |
- udev: Add udev rule to give group realtime write access to cpu_dma_latency
|
|
|
876737 |
|
|
|
876737 |
* Mon Apr 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-6
|
|
|
876737 |
- Added mrg-2.5 GA data to the mrg-rt-release database
|
|
|
876737 |
|
|
|
876737 |
* Wed Apr 09 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-5
|
|
|
876737 |
- Added mrg-2.4.6 data to the mrg-rt-release database
|
|
|
876737 |
|
|
|
876737 |
* Fri Mar 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-4
|
|
|
876737 |
- Trim the kernel version when read from uname -rt
|
|
|
876737 |
|
|
|
876737 |
* Tue Feb 18 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-3
|
|
|
876737 |
- Added mrg-2.4.5 data to the mrg-rt-release database
|
|
|
876737 |
|
|
|
876737 |
* Wed Jan 22 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-2
|
|
|
876737 |
- Added mrg-2.4.3 data to the mrg-rt-release database
|
|
|
876737 |
|
|
|
876737 |
* Tue Dec 10 2013 Clark Williams <williams@redhat.com> - 1.55-1
|
|
|
876737 |
- First common build for RHEL7 and RHEL6
|
|
|
876737 |
|
|
|
876737 |
* Thu Nov 28 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 1.54-2
|
|
|
876737 |
- Enhanced update-mrg-rt-release
|
|
|
876737 |
|
|
|
876737 |
* Thu Nov 28 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 1.54-1
|
|
|
876737 |
- Update mrg-rt-release on every boot [848433]
|
|
|
876737 |
|
|
|
876737 |
* Thu Aug 29 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-4
|
|
|
876737 |
- add /lib/firmware/$(uname -r) to dracut firmware search path (998920)
|
|
|
876737 |
- ensure rt-firmware files are on udev firmware search path (998920)
|
|
|
876737 |
|
|
|
876737 |
* Thu Aug 22 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-3
|
|
|
876737 |
- removed the dracut config file
|
|
|
876737 |
|
|
|
876737 |
* Tue Aug 20 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-2
|
|
|
876737 |
- added configuration file for dracut (998920)
|
|
|
876737 |
- fixed macro usage on the specfile
|
|
|
876737 |
|
|
|
876737 |
* Thu Apr 25 2013 Clark Williams <williams@redhat.com> - 1.53-1
|
|
|
876737 |
- turn off cgroup mounting logic
|
|
|
876737 |
- added Requires for libcgroup
|
|
|
876737 |
|
|
|
876737 |
* Tue Apr 2 2013 Clark Williams <williams@redhat.com> - 1.52-1
|
|
|
876737 |
- added script slub_cpu_partial_off
|
|
|
876737 |
- added cgroups to /etc/sysconfig/rt-setup
|
|
|
876737 |
|
|
|
876737 |
* Wed Mar 27 2013 Clark Williams <williams@redhat.com> - 1.51-1
|
|
|
876737 |
- added code to turn off SLUB cpu_partial at startup
|
|
|
876737 |
|
|
|
876737 |
* Mon Nov 12 2012 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.50-1
|
|
|
876737 |
- rt-setup-kdump: use mrg-2.x as the kdump kernel [868446] [868442] [868329]
|
|
|
876737 |
- rt-setup-kdump: simplified the script and added --rhel option
|
|
|
876737 |
|
|
|
876737 |
* Tue Mar 6 2012 Clark Williams <williams@redhat.com> - 1.11-1
|
|
|
876737 |
- removed %%post logic that disables bandwidth limiting [BZ# 791371]
|
|
|
876737 |
- changed rtprio from 100 to 99 in realtime.conf
|
|
|
876737 |
|
|
|
876737 |
* Thu Oct 13 2011 Clark Williams <williams@redhat.com> - 1.10-1
|
|
|
876737 |
- fixed thinko by removing firmware download logic
|
|
|
876737 |
|
|
|
876737 |
* Tue Oct 11 2011 Clark Williams <williams@redhat.com> - 1.9-1
|
|
|
876737 |
- added sysconfig and init script for handling cgroup mounting
|
|
|
876737 |
- changed script kernel-is-rt to use /sys/kernel/realtime
|
|
|
876737 |
|
|
|
876737 |
* Wed May 11 2011 Clark Williams <williams@redhat.com> - 1.8-1
|
|
|
876737 |
- simplified mrg-rt-firmware.rules to fix boot time hang on
|
|
|
876737 |
large core machines (BZ# 698481)
|
|
|
876737 |
|
|
|
876737 |
* Fri Feb 11 2011 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.7-4
|
|
|
876737 |
- Normalized the RHEL6 firmware path search (due to uname -r changes)
|
|
|
876737 |
|
|
|
876737 |
* Thu May 27 2010 John Kacur <jkacur@redhat.com> - 1.7-2
|
|
|
876737 |
- set kernel.hung_task_panic=0 (off) by default
|
|
|
876737 |
- set kernel.hung_task_timeout_secs=600 by default
|
|
|
876737 |
- used sysctl to set sched_rt_runtime_us at install time, not just boot time
|
|
|
876737 |
|
|
|
876737 |
* Tue May 18 2010 Clark Williams <williams@redhat.com> - 1.7-1
|
|
|
876737 |
- removed requirement for kernel-rt (circular dependency)
|
|
|
876737 |
- cleaned up mrg-rt-firmware.rules (added commas between all key/value pairs)
|
|
|
876737 |
|
|
|
876737 |
* Wed Nov 25 2009 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.6-3
|
|
|
876737 |
- rt-setup-kdump: configure kdump on all MRG kernel flavors
|
|
|
876737 |
- rt-setup-kdump: fix a log entry that was too verbose
|
|
|
876737 |
|
|
|
876737 |
* Wed Nov 25 2009 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.6-2
|
|
|
876737 |
- rt-setup-kdump treats MRG v1 and v2 kernels accordingly (BZ# 517529)
|
|
|
876737 |
|
|
|
876737 |
* Mon Nov 2 2009 Clark Williams <williams@redhat.com> - 1.6-1
|
|
|
876737 |
- removed "@16" specifier from rt-setup-kdump script (BZ# 517529)
|
|
|
876737 |
|
|
|
876737 |
* Tue Sep 1 2009 Clark Williams <williams@redhat.com> - 1.5-2
|
|
|
876737 |
- fixed path mismatches reported by Vernon Maury
|
|
|
876737 |
|
|
|
876737 |
* Wed Aug 26 2009 Clark Williams <williams@redhat.com> - 1.5-1
|
|
|
876737 |
- add udev rules and scripts for handling driver firmware download
|
|
|
876737 |
|
|
|
876737 |
* Thu Jul 9 2009 Clark Williams <williams@redhat.com> - 1.4-1
|
|
|
876737 |
- blow away rtctl udev rule (compatibility problem with RHEL
|
|
|
876737 |
version of udev)
|
|
|
876737 |
- update /dev/rtc udev rule to use PROGRAM rather than SYMLINK
|
|
|
876737 |
|
|
|
876737 |
* Tue Jul 7 2009 Clark Williams <williams@redhat.com> - 1.3-1
|
|
|
876737 |
- added udev rules file to address:
|
|
|
876737 |
- BZ 510121 hwclock & /dev/rtc broken in rt-kernel
|
|
|
876737 |
- BZ 466929 udev rule for hotplug rtctl
|
|
|
876737 |
|
|
|
876737 |
* Thu May 21 2009 Clark Williams <williams@redhat.com> - 1.2-1
|
|
|
876737 |
- added post section to edit /etc/sysctl.conf and add the
|
|
|
876737 |
kernel.sched_rt_runtime_us parameter = -1 line to disable
|
|
|
876737 |
the RT scheduler bandwith limiter
|
|
|
876737 |
|
|
|
876737 |
* Tue Jul 15 2008 Clark Williams <williams@redhat.com> - 1.1-6%{dist}
|
|
|
876737 |
- fixed rt-setup-kdump to handle incorrect arguments (BZ 455536)
|
|
|
876737 |
- added help argument to rt-setup-kdump
|
|
|
876737 |
|
|
|
876737 |
* Fri Jun 13 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-5%{dist}
|
|
|
876737 |
- rt-setup-kdump now touches /etc/grub.conf only when requested
|
|
|
876737 |
|
|
|
876737 |
* Tue Jun 03 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-4%{dist}
|
|
|
876737 |
- /usr/bin/rt-setup-kdump had wrong permissions
|
|
|
876737 |
- changed rt-setup-kdump: added a few tests for reserved memory and for the
|
|
|
876737 |
absence of /etc/sysconfig/kdump
|
|
|
876737 |
- now rt-setup requires kexec-tools
|
|
|
876737 |
|
|
|
876737 |
* Mon May 12 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-3%{dist}
|
|
|
876737 |
- disables irqbalance as it may hurt determinism in RT
|
|
|
876737 |
- installs rt-setup-kdump in /usr/bin
|
|
|
876737 |
|
|
|
876737 |
* Tue Apr 22 2008 Clark Williams <williams@redhat.com> - 1.1-2%{?dist}
|
|
|
876737 |
- removed sed script to edit kdump config file (using updated
|
|
|
876737 |
kexec-tools instead)
|
|
|
876737 |
|
|
|
876737 |
* Mon Apr 21 2008 Clark Williams <williams@redhat.com> - 1.1-1%{?dist}
|
|
|
876737 |
- removed --args-linux from /etc/sysconfig/kdump (BZ# 432378)
|
|
|
876737 |
- changed BuildArch to noarch
|
|
|
876737 |
|
|
|
876737 |
* Thu Feb 07 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-3%{?dist}
|
|
|
876737 |
- BZ:399591 - Fixed spec issues pointed by Jeremy Katz
|
|
|
876737 |
- BZ:399591 - @realtime has gid=71.
|
|
|
876737 |
- FIXES: BZ399591
|
|
|
876737 |
|
|
|
876737 |
* Thu Aug 02 2007 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-2%{?dist}
|
|
|
876737 |
- Fixed package description
|
|
|
876737 |
|
|
|
876737 |
* Mon Jul 30 2007 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-1%{?dist}
|
|
|
876737 |
- Initial packaging
|
|
|
876737 |
- Requires all the basic packages for RT
|
|
|
876737 |
- Requires support for limits.d and no realtime.conf present in PAM package
|