Sisyphus repositório
Última atualização: 30 novembro 2022 | SRPMs: 17938 | Visitas: 25430899
en ru br
ALT Linux repositórios
S:1.17.1-alt1

Group :: Sistema/Kernel e hardware
RPM: stalld

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

# SPDX-License-Identifier: GPL-2.0-only
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

Name: stalld
Version: 1.17.0
Release: alt1
Summary: Daemon that finds starving tasks and gives them a temporary boost

License: GPL-2.0-only
Group: System/Kernel and hardware
Url: https://github.com/bristot/stalld
Vcs: https://github.com/bristot/stalld.git
# Presentation: https://linuxplumbersconf.org/event/7/contributions/769/
# Video: https://youtu.be/JHE_3iU9nTs?t=10608
# Slides: https://linuxplumbersconf.org/event/7/contributions/769/attachments/572/1010/OSnoise-RT.pdf

Source: %name-%version.tar

%description
The stalld program monitors the set of system threads, looking for threads
that are ready-to-run but have not been given processor time for some threshold
period. When a starving thread is found, it is given a temporary boost using
the SCHED_DEADLINE policy. The default is to allow 10 microseconds of runtime
for 1 second of clock time.

%prep
%setup
sed -i s/-lpthread/-pthread/ Makefile
sed -i /README.md/d Makefile
sed -i '1s!/usr/bin/bash!/bin/bash!' scripts/throttlectl.sh

%build
%add_optflags %(getconf LFS_CFLAGS)
%make_build CFLAGS='%optflags -DVERSION=\"%version\"'

%install
%makeinstall_std
%makeinstall_std -C redhat UNITDIR=%_unitdir
rm %buildroot/usr/share/licenses/stalld/gpl-2.0.txt

%post
%post_service stalld.service

%preun
%preun_service stalld.service

%files
%doc README.md gpl-2.0.txt
%config(noreplace) %_sysconfdir/sysconfig/stalld
%_bindir/stalld
%_bindir/throttlectl
%_unitdir/stalld.service
%_man8dir/stalld.8*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009