From 30d107aaba64ee22339f55416ca101b32ee3729b Mon Sep 17 00:00:00 2001 From: litianci Date: Mon, 19 Dec 2022 16:29:17 +0800 Subject: [PATCH 1/2] final version --- docs/gemstones/htop.md | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/docs/gemstones/htop.md b/docs/gemstones/htop.md index e1062d535f..3fd2d10610 100644 --- a/docs/gemstones/htop.md +++ b/docs/gemstones/htop.md @@ -46,7 +46,7 @@ PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command(mer | Blue | Percentage of CPU used by low-priority processes | low | | Green | Percentage of process CPU owned by ordinary users | | | Red | Percentage of CPU used by system processes | sys | - | Cyan | Percentage of CPU consumed by Steal time | vir | + | Cyan | Percentage of CPU consumed by Steal Time | vir | * Tasks: 22, 46thr, 174 kthr 1 running. In my example, it means that my current machine has 22 tasks, which are divided into 46 threads, of which only 1 process is in a running state, "kthr" indicates how many kernel threads there are. * Mem information. Similarly, use different colors to distinguish: @@ -70,23 +70,18 @@ PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command(mer ### Process information description -* **PID-Process ID number** - -* USER-the owner of the process -* PRI-Display the process priority as seen by the Linux kernel -* NI-displays the process priority of reset by normal user or root super user -* VIRI-virtual memory being consumed by a process - -* **RES-physical memory being consumed by a process** - -* SHR-shared memory being consumed by a process -* S-The current state of the process, there is a special state to pay attention to! That is Z (zombie process). When there are a large number of zombie processes in the machine, it will affect the performance of the machine. - -* **CPU%-Percentage of CPU consumed by each process** - -* MEM%-Percentage of memory consumed by each process -* TIME+-shows the running time since the process was started -* Command-the command corresponding to the process +* **PID - Process ID number** +* USER - The owner of the process +* PRI - Display the process priority as seen by the Linux kernel +* NI - Displays the process priority of reset by normal user or root super user +* VIRI - Virtual memory being consumed by a process +* **RES - Physical memory being consumed by a process** +* SHR - Shared memory being consumed by a process +* S - The current state of the process, there is a special state to pay attention to! That is Z (zombie process). When there are a large number of zombie processes in the machine, it will affect the performance of the machine. +* **CPU% - Percentage of CPU consumed by each process** +* MEM% - Percentage of memory consumed by each process +* TIME+ - Shows the running time since the process was started +* Command - The command corresponding to the process ### Shortcut key description In the interactive interface, press the F1 button to see the corresponding shortcut key description. From bf3fa1b6ca73525d70c0bcf217bd36fcda6b7609 Mon Sep 17 00:00:00 2001 From: tianci li <86754294+jimcat8@users.noreply.github.com> Date: Mon, 19 Dec 2022 17:18:06 +0800 Subject: [PATCH 2/2] Update docs/gemstones/htop.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Serge Croisé --- docs/gemstones/htop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/gemstones/htop.md b/docs/gemstones/htop.md index 3fd2d10610..f76d80a485 100644 --- a/docs/gemstones/htop.md +++ b/docs/gemstones/htop.md @@ -74,7 +74,7 @@ PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command(mer * USER - The owner of the process * PRI - Display the process priority as seen by the Linux kernel * NI - Displays the process priority of reset by normal user or root super user -* VIRI - Virtual memory being consumed by a process +* VIRT - Virtual memory being consumed by a process * **RES - Physical memory being consumed by a process** * SHR - Shared memory being consumed by a process * S - The current state of the process, there is a special state to pay attention to! That is Z (zombie process). When there are a large number of zombie processes in the machine, it will affect the performance of the machine.