{"id":20978763,"url":"https://github.com/holmanb/psimon","last_synced_at":"2025-03-13T09:46:51.495Z","repository":{"id":111428654,"uuid":"321213117","full_name":"holmanb/psimon","owner":"holmanb","description":"CLI tool that allows interactive monitoring of Linux kernel Pressure Stall Information, a feature in Linux 4.20 and beyond","archived":false,"fork":false,"pushed_at":"2021-12-07T21:09:21.000Z","size":78,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T06:19:00.770Z","etag":null,"topics":["psi"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holmanb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-14T02:42:14.000Z","updated_at":"2024-04-10T21:42:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"34f48620-6273-4700-a67f-d06cf4455e4c","html_url":"https://github.com/holmanb/psimon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fpsimon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fpsimon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fpsimon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holmanb%2Fpsimon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holmanb","download_url":"https://codeload.github.com/holmanb/psimon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243382783,"owners_count":20282007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["psi"],"created_at":"2024-11-19T05:07:30.777Z","updated_at":"2025-03-13T09:46:51.461Z","avatar_url":"https://github.com/holmanb.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# psimon\nmonitoring utility for pressure stall information\n\n# What is Pressure Stall Information?\n\n\u003eThe psi feature identifies and quantifies the disruptions caused by resource contention   and the time impact it has on complex workloads or even entire systems.\n\n\n## Can't We Already Get Interactive System Load Information?\n\nPSI reports the percentage of wallclock time in which tasks are waiting for a CPU to run on. \nThis is more granular and indicitave of system health than system load [3].\n\n## Runtime Requirements\n\nKernel must support psi (must be built with `CONFIG_PSI=y`), which requires at least linux 4.20\nIf your kernel is compiled with `CONFIG_PSI_DEFAULT_DISABLED`, you will need to pass a command line flag to pass `psi=1` to the kernel on boot.\n\n\n## Build Requirements\n```\ngit gcc make\n```\n\n\n## Build Instructions\n\n```\ngit clone --recurse-submodules https://github.com/holmanb/psimon.git\ncd psimon\nmake\nmake psimon\n```\n\n## Usage\ncurrently `psimon` doesn't require any arguments and shows PSI counter values in realtime\n\n![](docs/psimon_sample.png)\n\n\n## Future Work\n- add cgroup support\n- parse \"full\" pressure counters for io \u0026\u0026 memory\n- add flags for selecting memory, io, or cpu\n- randomized file names in /tmp\n- various TODO cleanup items in codebase\n- add units\n- add averages\n- fix y axis color issue (see ![upstream issue](https://github.com/annacrombie/plot/issues/3))\n\n\n## Pressure Stall Information References\n\n[1] Kernel Docs at [kernel.org](https://www.kernel.org/doc/html/latest/accounting/psi.html)\n\n[2] Kernel Source [Docs](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/accounting/psi.rst)\n\n[3] Description At [lwn.net](https://lwn.net/ml/cgroups/20180712172942.10094-1-hannes@cmpxchg.org/)\n\n[4] Facebook Helped Develop [PSI](https://facebookmicrosites.github.io/psi/docs/overview) and includes their use cases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholmanb%2Fpsimon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholmanb%2Fpsimon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholmanb%2Fpsimon/lists"}