欧美一区二区三区,国内熟女精品熟女A片视频小说,日本av网,小鲜肉男男GAY做受XXX网站

請問centos如何查看近期硬件資源運行狀況

錢斌斌2年前17瀏覽0評論

請問centos如何查看近期硬件資源運行狀況?

.查看硬盤

[root@zhdp01 ~]# df -ah

文件系統 容量 已用 可用 已用% 掛載點

sysfs 0 0 0 - /sys

proc 0 0 0 - /proc

devtmpfs 3.8G 0 3.8G 0% /dev

securityfs 0 0 0 - /sys/kernel/security

tmpfs 3.9G 84K 3.9G 1% /dev/shm

devpts 0 0 0 - /dev/pts

tmpfs 3.9G 42M 3.8G 2% /run

tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup

cgroup 0 0 0 - /sys/fs/cgroup/systemd

pstore 0 0 0 - /sys/fs/pstore

cgroup 0 0 0 - /sys/fs/cgroup/cpu,cpuacct

cgroup 0 0 0 - /sys/fs/cgroup/perf_event

cgroup 0 0 0 - /sys/fs/cgroup/hugetlb

cgroup 0 0 0 - /sys/fs/cgroup/memory

cgroup 0 0 0 - /sys/fs/cgroup/blkio

cgroup 0 0 0 - /sys/fs/cgroup/net_cls

cgroup 0 0 0 - /sys/fs/cgroup/cpuset

cgroup 0 0 0 - /sys/fs/cgroup/devices

cgroup 0 0 0 - /sys/fs/cgroup/freezer

configfs 0 0 0 - /sys/kernel/config

/dev/mapper/centos-root 48G 5.1G 43G 11% /

selinuxfs 0 0 0 - /sys/fs/selinux

mqueue 0 0 0 - /dev/mqueue

hugetlbfs 0 0 0 - /dev/hugepages

debugfs 0 0 0 - /sys/kernel/debug

sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs

nfsd 0 0 0 - /proc/fs/nfsd

/dev/vda1 497M 204M 294M 41% /boot

tmpfs 781M 24K 781M 1% /run/user/0

gvfsd-fuse 0 0 0 - /run/user/0/gvfs

fusectl 0 0 0 - /sys/fs/fuse/connections

systemd-1 0 0 0 - /proc/sys/fs/binfmt_misc

查看目錄大小

du -sh /home

查看內存

[root@zhdp01 ~]# free -m

total used free shared buff/cache available

Mem: 7804 950 1851 42 5002 6564

Swap: 2047 0 2047

或者用下面這個命令

cat /proc/meminfo

查看cpu

[root@zhdp01 ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

4 Intel(R) Xeon(R) Gold 5118 CPU @ 2.30GHz

說明是4個邏輯cpu

[root@zhdp01 ~]# cat /proc/cpuinfo | grep physical | uniq -c

1 physical id : 0

1 address sizes : 46 bits physical, 48 bits virtual

1 physical id : 0

1 address sizes : 46 bits physical, 48 bits virtual

1 physical id : 0

1 address sizes : 46 bits physical, 48 bits virtual

1 physical id : 0

1 address sizes : 46 bits physical, 48 bits virtual

實際是4個虛擬化cpu

[root@zhdp01 ~]# cat /proc/cpuinfo | grep physical | uniq -c

1 physical id : 0

1 address sizes : 46 bits physical, 48 bits virtual

1 physical id : 0

1 address sizes : 46 bits physical, 48 bits virtual

1 physical id : 0

1 address sizes : 46 bits physical, 48 bits virtual

1 physical id : 0

1 address sizes : 46 bits physical, 48 bits virtual

當前cpu運行在64位下

[root@zhdp01 ~]# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l

4

(結果大于0, 說明支持64bit計算. lm指long mode, 支持lm則是64bit)

再完整看cpu詳細信息, 不過大部分我們都不關心而已. # dmidecode | grep 'Processor Information'

查看當前操作系統內核信息

[root@zhdp01 ~]# uname -a

Linux zhdp01 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

.查看網卡信息

# dmesg | grep -i eth

查看系統

cat /etc/issue

dump java線程,請問centos如何查看近期硬件資源運行狀況