From 011e856a9f52f559d438a4495d8748be52928811 Mon Sep 17 00:00:00 2001 From: litianci Date: Sat, 17 Dec 2022 23:27:13 +0800 Subject: [PATCH 1/2] Minor changes to adapt to the new version of htop --- docs/gemstones/htop.md | 43 +++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/docs/gemstones/htop.md b/docs/gemstones/htop.md index 972a5250cf..28f8820511 100644 --- a/docs/gemstones/htop.md +++ b/docs/gemstones/htop.md @@ -26,7 +26,7 @@ dnf -y install htop You only need to type `htop` in the terminal, and the interactive interface is as follows: ``` -0[ ||| 3%] Tasks: 24, 14thr; 1 running +0[ ||| 3%] Tasks: 22, 46thr, 174 kthr 1 running 1[ | 1%] Load average: 0.00 0.00 0.05 Mem[ ||||||| 197M/8G] Uptime: 00:31:39 Swap[ 0K/500M] @@ -41,24 +41,29 @@ PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command(mer * The top 0 and 1 indicate the number of your CPU cores, and the percentage indicates the occupancy rate of a single core (of course, the total occupancy rate of the CPU can also be displayed) * The different colors of the progress bar indicate the percentage of different process types: - | Color | Description | - | ---------| ------------| - | Blue | Percentage of CPU used by low-priority processes | - | Green | Percentage of process CPU owned by ordinary users | - | Red | Percentage of CPU used by system processes | - | Orange | Percentage of CPU used by IRQ time | - | Magenta | Percentage of CPU used by soft IRQ time | - | Gray | Percentage of CPU occupied by IO waiting time | - | Cyan | Percentage of CPU consumed by Steal time | - -* Tasks: 24, 14thr; 1 running, process information. In my example, it means that my current machine has 24 tasks, which are divided into 14 threads, of which only 1 process is in a running state. -* Mem memory and swap information. Similarly, use different colors to distinguish: - - | Color|Description| - |----|----| - |Blue|Percentage of memory consumed by the buffer | - |Green|Percentage of memory consumed by the memory area| - |Orange|Percentage of memory consumed by the cache area| + | Color | Description | Names displayed in other styles| + | ---------| ------------|------------| + | 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 | + +* 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: + + | Color | Description | Names displayed in other styles | + |----|----|----| + | Blue |Percentage of memory consumed by the buffer | buffers | + | Green |Percentage of memory consumed by the memory area| used | + | Yellow/Orange |Percentage of memory consumed by the cache area| cache | + | Magent | Percentage of memory occupied by shared memory area | shared | + +* Swap information. + + | Color | Description | Names displayed in other styles | + |----|----|----| + | Green | Percentage of swap consumed by the swap area | used | + | Yellow/Orange | Percentage of swap consumed by the cache area | cache | * Load average, the three values ​​respectively represent the average load of the system in the last 1 minute, the last 5 minutes, and the last 15 minutes * Uptime, which means the running time after booting From 228e5b40a3888ef9407b39721ec68f104f2c497b Mon Sep 17 00:00:00 2001 From: litianci Date: Sun, 18 Dec 2022 00:00:45 +0800 Subject: [PATCH 2/2] update --- 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 28f8820511..e1062d535f 100644 --- a/docs/gemstones/htop.md +++ b/docs/gemstones/htop.md @@ -56,7 +56,7 @@ PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command(mer | Blue |Percentage of memory consumed by the buffer | buffers | | Green |Percentage of memory consumed by the memory area| used | | Yellow/Orange |Percentage of memory consumed by the cache area| cache | - | Magent | Percentage of memory occupied by shared memory area | shared | + | Magenta | Percentage of memory occupied by shared memory area | shared | * Swap information.