File: pip_stress.8

package info (click to toggle)
rt-tests 1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 708 kB
  • ctags: 1,268
  • sloc: ansic: 8,836; python: 480; makefile: 183
file content (25 lines) | stat: -rw-r--r-- 953 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.TH pip_stress 8 2011-06-24
.SH NAME
pip_stress \- test priority inheritance between processes
.SH SYNOPSIS
.B pip_stress
.SH DESCRIPTION
.B pip_stress
creates a priority inversion using three processes and a priority inheritance
mutex shared via shared memory.
All three processes are bound to run on the same cpu.
The process with the lowest priority holds a mutex and is prempted by the
medium priority process that just runs an infinite loop.
The third process with the highest priority tries to grab the mutex that is
hold by the low prio process.
As a priority inheritance mutex is used the low priority process lends the high
priority process' priority to unlock the mutex and so stops the medium priority
process blocking the high priority one.

.B pip_stress
doesn't take any options and quits as soon as the priority inversion is
resolved which should happen instantly.

.SH AUTHOR
.B pip_stress
was written by John Kacur <jkacur@redhat.com>.