Blame SPECS/stalld.spec

458dec
Name:		stalld
8d7461
Version:	1.10
8d7461
Release:	1%{?dist}
458dec
Summary:	Daemon that finds starving tasks and gives them a temporary boost
458dec
458dec
License:	GPLv2
458dec
URL:		https://git.kernel.org/pub/scm/utils/stalld/stalld.git
458dec
Source0:	https://jcwillia.fedorapeople.org/%{name}-%{version}.tar.xz
458dec
458dec
BuildRequires:	glibc-devel
458dec
BuildRequires:	gcc
458dec
BuildRequires:	make
458dec
BuildRequires:	systemd-rpm-macros
458dec
458dec
Requires:	systemd
458dec
458dec
%description
458dec
The stalld program monitors the set of system threads,
458dec
looking for threads that are ready-to-run but have not
458dec
been given processor time for some threshold period.
458dec
When a starving thread is found, it is given a temporary
458dec
boost using the SCHED_DEADLINE policy. The default is to
458dec
allow 10 microseconds of runtime for 1 second of clock time.
458dec
458dec
%prep
458dec
%autosetup
458dec
458dec
%build
458dec
%make_build CFLAGS="%{optflags} %{build_cflags} -DVERSION="\\\"%{version}\\\"""  LDFLAGS="%{build_ldflags}"
458dec
458dec
%install
458dec
%make_install DOCDIR=%{_docdir} MANDIR=%{_mandir} BINDIR=%{_bindir} DATADIR=%{_datadir} VERSION=%{version}
458dec
%make_install -C redhat UNITDIR=%{_unitdir}
458dec
458dec
%files
458dec
%{_bindir}/%{name}
458dec
%{_bindir}/throttlectl
458dec
%{_unitdir}/%{name}.service
458dec
%config(noreplace) %{_sysconfdir}/sysconfig/stalld
458dec
%doc %{_docdir}/README.md
458dec
%doc %{_mandir}/man8/stalld.8*
458dec
%license gpl-2.0.txt
458dec
458dec
%post
458dec
%systemd_post %{name}.service
458dec
458dec
%preun
458dec
%systemd_preun %{name}.service
458dec
458dec
%postun
458dec
%systemd_postun_with_restart %{name}.service
458dec
458dec
%changelog
8d7461
* Tue Apr 27 2021 Clark Williams <williams@redhat.com> - 1.10-1
8d7461
- utils: Fix bounds check on cpu and end_cpu variables
8d7461
- stalld: Support denylisting of tasks in stalld
8d7461
- src/utils: use right argument for warning printf
8d7461
458dec
* Wed Feb 17 2021 Clark Williams <williams@redhat.com> - 1.9-2
458dec
- update to pick up latest gating test
458dec
458dec
* Wed Feb 17 2021 Clark Williams <williams@redhat.com> - 1.9-1
458dec
- Set starvation threshold default to 30 seconds
458dec
- rework read buffer allocation to properly find page size
458dec
- Add the -g/--granularity option
458dec
- Change the default granularity to five seconds
458dec
- Implement idle detection
458dec
- Implement the single-threaded mode
458dec
- Add HRTICK_DL support
458dec
458dec
* Fri Feb  5 2021 Clark Williams <williams@redhat.com> - 1.8-1
458dec
- Fix Readiness Protocol Mismatch with systemd
458dec
- test01:  update to use buildin atomic operations
458dec
- test01: add throttling check
458dec
458dec
* Tue Feb  2 2021 Clark Williams <williams@redhat.com> - 1.7-1
458dec
- rework detect_task_format and buffer_size logic
458dec
- make CFLAGS for local compile match rpmbuild CFLAGS
458dec
458dec
* Tue Jan 26 2021 Clark Williams <williams@redhat.com> - 1.6-1
458dec
- add systemd handling of RT Throttling
458dec
458dec
* Wed Jan 20 2021 Clark Williams <williams@redhat.com> - 1.5-1
458dec
- fix signal handler to catch SIGTERM
458dec
458dec
* Fri Dec 11 2020 Clark Williams <williams@redhat.com> - 1.4-1
458dec
- stalld: Set rt_runtime to -1 before trying the SCHED_DEADLINE
458dec
- Fix incorrect recursion of specfile version field
458dec
458dec
* Fri Nov 20 2020 Clark Williams <williams@redhat.com> - 1.3-1
458dec
- Readme: Add information about repositories
458dec
- Add version management and version option
458dec
- create doc and scripts directory and add info on releases
458dec
458dec
* Mon Nov  2 2020 Clark Williams <williams@redhat.com> - 1.2-1
458dec
- utils.c: added info() functions
458dec
- detect and correctly parse old-style /proc/sched_debug
458dec
- src/stalld: Fix an retval check while reading sched_debug
458dec
- src/throttling: Fix a compilation warning
458dec
- ensure we only count task lines in old-format sched_debug info
458dec
- Add comments, clean up trailing whitespace
458dec
- src/utils: Fix runtime parameters check
458dec
- stalld: Do not take actions if log_only is set
458dec
- remove warning from parse_old_task_format
458dec
458dec
* Tue Oct 27 2020 Clark Williams <williams@redhat.com> - 1.1-1
458dec
- Fix an option in README.md; consistency in user facing docs.
458dec
- Makefile: add 'static' target to link stalld statically
458dec
- gitignore: ignore object files and the stalld executable
458dec
- use FIFO for boosting (v3)
458dec
- stalld.c: fix sched_debug parsing and modify waiting task parsing
458dec
- redhat:  update release for features and bugfix
458dec
- stalld: Do not die if sched_debug returns an invalid value
458dec
- src/stalld: Do not die if the comm is too large
458dec
- src/stalld: Do not die if cannot write a message to the log
458dec
- src/stalld: Do not die if the main runs while a thread is monitoring the CPU
458dec
- implement RT throttling management and refactor source files
458dec
- more refactoring
458dec
- src/stalld: Reuse already read nr_running nr_rt_running
458dec
- src/stalld: Gracefully handle CPUs not found on sched_debug
458dec
- src/stalld: Use dynamically allocated memory to read sched_debug
458dec
- src/utils: Die with a divizion by zero if verbose
458dec
- src/stalld: Add config_buffer_size variable
458dec
- src/stalld: Increase the sched_debug read buffer if it gets too small
458dec
- src/stalld: Fix an retval check while reading sched_debug
458dec
- src/throttling: Fix a compilation warning
458dec
458dec
* Sun Oct  4 2020 Clark Williams <williams@redhat.com> - 1.0-4
458dec
- Fix an option in README.md; consistency in user facing docs.
458dec
- gitignore: ignore object files and the stalld executable
458dec
- Makefile: add 'static' target to link stalld statically
458dec
- use FIFO for boosting (v3)
458dec
- stalld: update usage message to include --force_fifo/-F option
458dec
- stalld.c: fix sched_debug parsing and modify waiting task parsing
458dec
458dec
* Tue Sep  1 2020 Clark Williams <williams@redhat.com> - 1.0-3
458dec
- Place BuildRequires on individual lines
458dec
- Fix changelog notations
458dec
- Modify build command to pass in CFLAGS and LDFLAGS
458dec
- fix compiler warnings in stalld.c
458dec
458dec
* Mon Aug 31 2020 Clark Williams <williams@redhat.com> - 1.0-2
458dec
- use _docdir macro for README.md
458dec
- use _mandir macro for stalld.8 manpage
458dec
- use tabs for spacing
458dec
- added push Makefile target to copy latest to upstream URL
458dec
458dec
* Tue Aug 25 2020 Clark Williams <williams@redhat.com> - 1.0-1
458dec
- rename project to stalld
458dec
- set version to 1.0
458dec
- clean up rpmlint complaints
458dec
458dec
* Fri Aug 21 2020 Clark Williams <williams@redhat.com> - 0.2-1
458dec
- add pidfile logic
458dec
458dec
* Thu Aug 20 2020 Clark Williams <williams@redhat.com> - 0.1-1
458dec
- Added systemd service to redhat subdirectory
458dec
- added make and rpm logic for systemd files
458dec
458dec
* Wed Aug 19 2020 Clark Williams <williams@redhat.com> - 0.0-1
458dec
- initial version of specfile
458dec
- Makefile mods for RPM builds
458dec
- added systemd service and config files