系统参数
cat /etc/os-release
hostnamectl
hostnamectl status
LVS - Linux Virtual Server,即 Linux 虚拟服务器, Linux2.4 内核以后,LVS 已经是 Linux 标准内核的一部分
linux show architecture uname -m
cpu/memory
cat /proc/cpuinfo
cat /proc/meminfo
top shift+E 切换 bytes Mb Gb
内存

top - 17:14:51 up 419 days, 41 min, 1 user, load average: 1.51, 1.40, 1.42
Tasks: 302 total, 1 running, 301 sleeping, 0 stopped, 0 zombie
%Cpu(s): 9.1 us, 0.4 sy, 0.0 ni, 90.4 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
GiB Mem : 62.8 total, 16.9 free, 13.6 used, 32.2 buff/cache
GiB Swap: 20.0 total, 20.0 free, 0.0 used. 48.1 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19363 flink 20 0 15.7g 7.1g 60792 S 147.0 11.4 1929:48 java
2650 kafka 20 0 10.2g 1.2g 17980 S 2.3 1.8 39:12.25 java
https://serverfault.com/questions/85470/meaning-of-the-buffers-cache-line-in-the-output-of-free
GiB Mem total = free+used+buff/cache
- total (Mem):
Your total (physical) RAM (excluding a small bit that the kernel permanently reserves for itself at startup);
total installed memory (that is MemTotal from /proc/meminfo), this all the memory in RAM
- used (Mem):
used memory, equal to total - free - buffers - cache
- free (Mem):
unused memory (that is MemFree), this all the memory that is unused for anything (even caches) in RAM
- shared (Mem):
this is the amount of memory used mainly for tmpfs (Shmem)
- buff/cache (Mem),
sum of buffers and cache:
- buffers:
memory used by kernel buffers (Buffers), which is memory that the kernel can take advantage of
- cache:
memory used by the page cache and slabs (Cached and SReclaimable). The page cache contains the contents of files in the filesystem cached to RAM, and it is generally a good thing for this to be a high number. I presume “slabs” are a similar caching feature.
- available (Mem):
this is an estimate of how much memory is available for starting new applications, without swapping. It includes most of memory counted in the cache field (since the page cache can be dropped to start new applications), but it does not count swap (since it is generally preferable not to use slow swap space).
SWAP
- total (Swap):
this is the total amount of disk space reserved for swap (SwapTotal in proc/meminfo). You can check by checking that this matches with the output of swapon -s.
- used (Swap):
the amount of swap disk space that is currently being used. Again, you can check this by comparing it with the output of swapon -s
- free (Swap):
the amount of swap disk space that is currently not being used (SwapFree in /proc/meminfo). It is equal to total (Swap) - used (Swap)
virt RES SHR
https://mp.weixin.qq.com/s/-WG0kjK_YQxrXuPi-OebsQ
https://wallenotes.github.io/2018/01/04/Linux/%E5%86%85%E5%AD%98/memory-standard-segment-layout/
https://www.orchome.com/298
cpu
文件描述符 fd
cd /proc/pid/fd