commit | 838e572e28ea8602624aec91dcd16b7535ff73e1 | [log] [tgz] |
---|---|---|
author | Daniel Bristot de Oliveira <bristot@kernel.org> | Fri Feb 09 17:51:19 2024 +0100 |
committer | Daniel Bristot de Oliveira <bristot@kernel.org> | Fri Feb 09 17:51:19 2024 +0100 |
tree | fb52df3d2a70854eecd78f85d80a6f0a514a5f94 | |
parent | 8d182f5ac9023b0358492ab388a069757308e05c [diff] |
stalld: v1.19.1 This version improves the makefile, mainly to properly support the eBPF-based backend. It is now possible to compile stalld with or without eBPF, and a logic to automatically set according to te eBPF support for the architecture. It is possible to manually set your preference via USE_BPF flag at compilation time. E.g.: # make USE_BPF=[0,1] Changes: - 0a228ea Conditionalize BPF and queue_track build per architecture - bcc157c clean up Makefile install logic and add .bz2 to .gitignore It has no features, so a minor relese. Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
The stalld program (which stands for ‘stall daemon’) is a mechanism to prevent the starvation of operating system threads in a Linux system. The premise is to start up on a housekeeping cpu (one that is not used for real-application purposes) and to periodically monitor the state of each thread in the system, looking for a thread that has been on a run queue (i.e. ready to run) for a specifed length of time without being run. This condition is usually hit when the thread is on the same cpu as a high-priority cpu-intensive task and therefore is being given no opportunity to run.
When a thread is judged to be starving, stalld changes that thread to use the SCHED_DEADLINE policy and gives the thread a small slice of time for that cpu (specified on the command line). The thread then runs and when that timeslice is used, the thread is then returned to its original scheduling policy and stalld then continues to monitor thread states.
There is now an experimental option to boost using SCHED_FIFO. This logic is used if the running kernel does not support the SCHED_DEADLINE policy and may be forced by using the -F/--force_fifo option.
Usage: stalld [-l] [-v] [-k] [-s] [-f] [-h] [-F] [-c cpu-list] [-p time in ns] [-r time in ns] [-d time in seconds] [-t time in seconds]
The repository at https://gitlab.com/rt-linux-tools/stalld is the main repository, where the development takes place.
The repository at https://git.kernel.org/pub/scm/utils/stalld/stalld.git is the distribution repository, where distros can pick the latest released version.