Skip to content

joedefen/psistat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linux Pressure Stall Information (PSI) Status App

psistat is a simple python3 program to display the PSIs and to capture/display exception events. See PSI - Pressure Stall Information — The Linux Kernel documentation for more information.

psistat might be found helpful when encountering unexplained system delays and you wish to identify the general cause. Regularly occuring high PSIs may indicate the system is undersized or overloaded, and, if warranted, implementing automated load-shedding.

Installation

Download the psistat program, make it excutable, and put in on your execution path. For example, this might suffice for your install:

    git clone git@github.com:joedefen/psistat.git
    chmod +x psistat/psistat
    cp psistat/psistat ~/.local/bin/.
    rm -rf psistat

Instruction for Use

Typically, simply run psistat. Its window looks like:

psistat-screenshot

psistat displays:

  • On the top portion of the screen, the 1s, 3s, and 10s PSI stats (each is a percent stalled during the interval).
  • Below the stats is a list of exception events beginning with the most recent; each event includes:
    • The relative time and absolution time of the event.
    • The type of event.
    • The pressure value as a percentage relative to the current threshold.

When psistat is running, entering these keys has special effect:

  • j - lower the threshold for exception events by 5% (but to no lower than 5%)
  • k - raise the threshold for exception events by 5% (but to no higher than 95%)
  • q - quit the program.

psistat has only a few options:

usage: psistat [-h] [-D] [-t THRESHOLD_PCT]

optional arguments:
  -h, --help            show this help message and exit
  -D, --debug           debug mode w/o Window
  -t THRESHOLD_PCT, --threshold-pct THRESHOLD_PCT
                        event threshold pct [min=5, max=95, dflt=20]

Load Test

To create some test loads, you can use the create_load.c program found at psi-by-example.

About

psistat - show Linux Pressure Stall Information (PSI) values and exceptions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages