当前位置:网站首页>14.系统信息查看
14.系统信息查看
2022-04-22 01:56:00 【Wangjiachenga】
系统版本
cat /etc/redhat-release
返回结果: CentOS Linux release 7.5.1804 (Core)
内核信息
uname -a
返回结果:Linux oldboy68 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
硬件信息查看
CPU
方法一: 利用文件查看
cat /proc/cpuinfo
返回结果参数解读:
processor --- 服务器CPU总的核心数
model name --- 服务器CPU型号
cpu MHz --- 服务器CPU主频
cache size --- 服务器CPU缓存
physical id --- 服务器CPU颗数
cpu cores --- 服务器每个CPU核数
如何查看服务器总核心数:
grep -c processor /proc/cpuinfo
如何查看服务器CPU颗数:
grep "physical id" /proc/cpuinfo | uniq | wc -l
uniq 去重复操作
方法二: 利用命令 lscpu
CPU(s): 4 --- 服务器总核心数
Socket(s): 2 --- 服务器CPU颗数
Core(s) per socket: 2 --- 每颗CPU核心数
内存
方法一: 利用文件查看
cat /proc/meminfo
返回结果参数解读:
MemTotal: --- 内存总容量
MemFree: --- 内存空闲容量
MemAvailable: --- 内存可用容量 *观注这个参数
Buffers: --- 缓冲区大小(加快数据写入)
Cached: --- 缓存区大小(加快数据读写)
方法二: 利用命令查看
free -h
返回结果:
total used free shared buff/cache available
Mem: 974M 60M 848M 740K 66M 791M
Swap: 1.0G 77M 946M
可以用以下命令快速占用内存:
dd if=/dev/zero of=/dev/null bs=800M count=80
磁盘
方法一: 查看文件信息
cat /proc/mounts
返回结果:
/dev/sda1 /boot xfs rw,seclabel,relatime,attr2,inode64,noquota 0 0
PS: 查看系统存储设备挂载情况
方法二: 利用命令查看
df -h
返回结果:
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 99G 1.7G 98G 2% /
负载信息
方法一: 利用文件查看
cat /proc/loadavg
0.02 0.21 0.16
每分钟平均负载 每五分钟平均负载 每十五分钟平均负载
负载值 <= 服务器总核心数
方法二: 利用命令查看 更加便捷
w 或者top
版权声明
本文为[Wangjiachenga]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Wangjiachenga/article/details/124334803
边栏推荐
- [编程题]删数
- 718. 最长重复子数组
- [programming question] water bottle
- 单层神经⽹络的详细实现
- Transformation of trees, binary trees and forests
- Swoole high performance in memory database use and configuration tutorial
- [编程题]有趣的数字
- php. ini Module ‘redis‘ already loaded in Unknown on line 0
- Fundamentals lecture 30 Lecture 9 geometric application of univariate function integration
- [programming question] character set
猜你喜欢

单层神经⽹络的详细实现

R language generalized linear model GLM: linear least squares, logarithmic transformation, Poisson, binomial logistic regression analysis, ice cream sales time series data and simulation

PaddlePaddle basic usage details (four), PaddlePaddle training text classification model

JVM - GC garbage collector

Xu Yuandong was invited to share "Ltd digital business methodology" at Shanghai Management Technology Forum

Jetcode prize essay solicitation activity | interesting stories of low code industry waiting for you to share

The idea window cannot be found in multi screen mode

net easy

Leetcode 21. Merge two ordered linked lists

Kubernetes GVK display phenomenon
随机推荐
[interview ordinary people vs Expert Series] can you talk about CAS mechanism?
Shell cluster secret free shutdown
Leetcode 566, remodeling matrix
I really envy those who don't need to send a circle of friends
Hexadecimal conversion
(1) There was an error connecting to XXXX
Kubernetes GVK display phenomenon
判断是否为平方数的和
[programming question] simple error record
stack和queue
Opencv 4.0 learning notes
Leetcode2016. Maximum difference between incremental elements
【DFS】【剪枝】小猫爬山
Programmers' black technology | daily anecdotes
JVM - GC垃圾回收器
Leetcode 1539, the kth missing positive integer
Code standardization solution for project construction
Oracle cannot see the view in the view object, but the view data can be queried with the select statement
[shell] training script (updated from time to time)
Window7 activation phone activation notes;