cpu架構(gòu)如何查看 cpu詳細(xì)信息怎么查看
一、如何查看CPU信息
1、查看CPU信息。 [root@centos79 ~]# cat /proc/cpuinfo processor : 0 ## 系統(tǒng)中邏輯處理核的編號(hào)。對(duì)于單核處理器,則可以認(rèn)為是CPU編號(hào);對(duì)于多核處理器來(lái)說(shuō),則可以是物理核、或者使用超線程技術(shù)虛擬的邏輯核。 vendor_id : GenuineIntel ## CPU制造商。 cpu family : 6 ## CPU產(chǎn)品系列代號(hào)。 model : 85 ## CPU屬于其系列中的哪一代的代號(hào)。 model name : Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz ## CPU的名稱、編號(hào)、標(biāo)稱主頻。 stepping : 7 ## CPU屬于的制作更新版本 microcode : 0x1 cpu MHz : 2500.010 ## CPU的實(shí)際使用主頻 cache size : 36608 KB ## CPU二級(jí)緩存大小 physical id : 0 ## 單個(gè)CPU的標(biāo)號(hào) siblings : 1 ## 單個(gè)CPU邏輯物理核數(shù) core id : 0 ## 當(dāng)前物理核在其所處CPU中的編號(hào),這個(gè)編號(hào)不一定連續(xù) cpu cores : 1 ## 該邏輯核所處CPU的物理核數(shù) apicid : 0 ## 用來(lái)區(qū)分不同邏輯核的編號(hào),系統(tǒng)中每個(gè)邏輯核的此編號(hào)必然不同,此編號(hào)不一定連續(xù) initial apicid : 0 fpu : yes ## 是否具有浮點(diǎn)運(yùn)算單元(Floating Point Unit) fpu_exception : yes ## 是否支持浮點(diǎn)計(jì)算異常 cpuid level : 13 ## 執(zhí)行cpuid指令前,eax寄存器中的值,根據(jù)不同的值cpuid指令會(huì)返回不同的內(nèi)容 wp : yes ## 表明當(dāng)前CPU是否在內(nèi)核態(tài)支持對(duì)用戶空間的寫(xiě)保護(hù)(Write Protection) flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 spec_ctrl intel_stibp ## 當(dāng)前CPU支持的功能 bogomips : 5000.02 ## 在系統(tǒng)內(nèi)核啟動(dòng)時(shí)粗略測(cè)算的CPU速度(Million Instructions Per Second) clflush size : 64 ## 每次刷新緩存的大小單位 cache_alignment : 64 ## 緩存地址對(duì)齊單位 address sizes : 46 bits physical, 48 bits virtual ## 可訪問(wèn)地址空間位數(shù) power management: ## 對(duì)能源管理的支持 [root@centos79 ~]# 2、通過(guò)命令查看CPU信息 -- lscpu [root@centos79 ~]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 1 ## 服務(wù)器有幾核 On-line CPU(s) list: 0 Thread(s) per core: 1 Core(s) per socket: 1 ## 每顆CPU有幾核 Socket(s): 1 ## CPU的顆數(shù) NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz Stepping: 7 CPU MHz: 2500.010 BogoMIPS: 5000.02 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 36608K NUMA node0 CPU(s): 0 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 spec_ctrl intel_stibp [root@centos79 ~]#
二、如何查看內(nèi)存信息
1、查看內(nèi)存信息 [root@centos79 ~]# cat /proc/meminfo MemTotal: 1882232 kB ## 內(nèi)存總的大小 MemFree: 78548 kB ## 空閑的內(nèi)存大小 MemAvailable: 1336512 kB ## 可用的內(nèi)存大小。 Buffers: 210928 kB ## 緩沖空間大小 Cached: 1108480 kB ## 被高速緩沖存儲(chǔ)器(cache memory)用的內(nèi)存的大?。ǖ扔?diskcache minus SwapCache ) SwapCached: 31000 kB ## 交換分區(qū)大小 Active: 714028 kB ## 在活躍使用中的緩沖或高速緩沖存儲(chǔ)器頁(yè)面文件的大小,除非非常必要,否則不會(huì)被移作他用。 Inactive: 859288 kB ## 在不經(jīng)常使用中的緩沖或高速緩沖存儲(chǔ)器頁(yè)面文件的大小,可能被用于其他途徑。 Active(anon): 49352 kB Inactive(anon): 220664 kB Active(file): 664676 kB Inactive(file): 638624 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 1049596 kB ## 交換空間的總大小 SwapFree: 808700 kB ## 未被使用交換空間的大小 Dirty: 60 kB ## 等待被寫(xiě)回到磁盤(pán)的內(nèi)存大小 Writeback: 0 kB ## 正在被寫(xiě)回到磁盤(pán)的內(nèi)存大小。 AnonPages: 225944 kB Mapped: 60172 kB ## 設(shè)備和文件等映射的大小。 Shmem: 16108 kB Slab: 169940 kB SReclaimable: 142140 kB SUnreclaim: 27800 kB KernelStack: 3664 kB PageTables: 22020 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 1990712 kB Committed_AS: 1696524 kB VmallocTotal: 34359738367 kB VmallocUsed: 11496 kB VmallocChunk: 34359715976 kB HardwareCorrupted: 0 kB AnonHugePages: 18432 kB CmaTotal: 0 kB CmaFree: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 110464 kB DirectMap2M: 1986560 kB DirectMap1G: 0 kB [root@centos79 ~]# 2、使用命令查看內(nèi)存大小 [root@centos79 ~]# free -h total used free shared buff/cache available Mem: 1.8G 334M 76M 15M 1.4G 1.3G Swap: 1.0G 235M 789M [root@centos79 ~]#
三、如何查看硬盤(pán)相關(guān)信息
1、查看磁盤(pán)內(nèi)容 [root@centos79 ~]# cat /proc/mounts rootfs / rootfs rw 0 0 sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 devtmpfs /dev devtmpfs rw,nosuid,size=930660k,nr_inodes=232665,mode=755 0 0 securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0 2、使用命令查看磁盤(pán)內(nèi)容 [root@centos79 ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 909M 0 909M 0% /dev tmpfs 920M 0 920M 0% /dev/shm tmpfs 920M 940K 919M 1% /run tmpfs 920M 0 920M 0% /sys/fs/cgroup /dev/vda1 40G 16G 23G 41% / tmpfs 184M 0 184M 0% /run/user/0 /dev/loop2 100M 100M 0 100% /var/lib/snapd/snap/core/11316 /dev/loop4 454M 454M 0 100% /var/lib/snapd/snap/phpstorm/222 /dev/loop0 100M 100M 0 100% /var/lib/snapd/snap/core/11420 /dev/loop3 454M 454M 0 100% /var/lib/snapd/snap/phpstorm/227 [root@centos79 ~]#