From 9691c2300efdad30ac74b29888a3da8e8eaebc49 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Thu, 6 Jun 2019 14:43:13 +0900 Subject: [PATCH] update readme --- README.md | 65 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 57 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 51476c9..b514305 100644 --- a/README.md +++ b/README.md @@ -273,7 +273,59 @@ Process with highest badness (found in 55 ms): ``` -## oom-sort + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +## Logging + +To view the latest entries in the log (for systemd users): + +```bash +$ sudo journalctl -eu nohang +``` +See also `man journalctl`. + +You can also enable `separate_log` in the config to logging in `/var/log/nohang/nohang.log`. + + + + + + + + + + +## Additional tools: oom-sort, psi-top, psi-monitor + + +### oom-sort `oom-sort` is an additional diagnostic tool that will be installed with `nohang` package. It sorts the processes in descending order of their `oom_score` and also displays `oom_score_adj`, `Uid`, `Pid`, `Name`, `VmRSS`, `VmSwap` and optionally `cmdline`. Run `oom-sort --help` for more info. @@ -376,16 +428,13 @@ oom_score oom_score_adj UID PID Name VmRSS VmSwap cmdline Kthreads, zombies and Pid 1 will not be displayed. -## Logging +### psi-top -To view the latest entries in the log (for systemd users): +It needs Linux 4.20+ -```bash -$ sudo journalctl -eu nohang -``` -See also `man journalctl`. +### psi-monitor -You can also enable `separate_log` in the config to logging in `/var/log/nohang/nohang.log`. +It needs Linux 4.20+ ## Contribution