commit | 8467ad4da91bce8edad458cfc0f2f72b03d81e7e | [log] [tgz] |
---|---|---|
author | Daniel Bristot de Oliveira <daniel@bristot.me> | Thu Sep 10 12:14:53 2020 +0200 |
committer | GitHub <noreply@github.com> | Thu Sep 10 12:14:53 2020 +0200 |
tree | 5f91866a58423b6e1f5737fc8c3d7482da0b3cc8 | |
parent | 1c5fb4e9ae5bfaa04b66aff72c9391089eedb428 [diff] | |
parent | 2800cd961db6744d2c0a80e46ee0d9a8f7ddae4c [diff] |
Merge pull request #16 from jmencak/fix-docs-option Fix an option in README.md; consistency in user facing docs.
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.
Usage: stalld [-l] [-v] [-k] [-s] [-f] [-h] [-c cpu-list] [-p time in ns] [-r time in ns] [-d time in seconds] [-t time in seconds]