Purpose: To record the daily commands used by Linux[20171222] View the hardware component model in a Linux environmentCat/proc/cpuinfo and Lspciview Cpu[[email protected]-redhat- on~]# cat/proc/Cpuinfoprocessor:0VENDOR_ID:AUTHENTICAMDCPU Family: atModel:1model NAME:AMD Ryzen7 1700eight-Core Processor Here is the CPU model stepping:1CPU MHz:2994.370->cpu FrequencyCache Size: +KBfpu:yesfpu_exception:yescpuid Level: -WP:YESFLAGS:FPU de PSE TSC MSR PAE, MCE cx8 APIC Sep MTRR
Article Title: View hard disk parameters, CPU parameter temperature, and so on. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1) view hard disk parameters:
Hdparm/dev/hda
My hard disk display:
/Dev/hda:
Multcount = 16 (on)
IO_support = 1 (32-bit)
Unmaskirq = 1 (on)
Using_dma = 1 (on)
Keepsettings = 0 (off)
Readonly = 0 (off)
Readahead = 256 (on)
Geometry =
to the correct one. So why is this step necessary? Aren't we allocating physical addresses? How do I still need to switch after the allocation is completed? If a virtual address is returned, why can address translation be implemented only by PAGE_OFFSET Based on the above analysis of pai_to_phys? Do I need to check the page table for the conversion between virtual addresses and physical addresses? On behalf of the above questions, let's look at the VMM-related boot code.
Find VMM content direct
This is a creation in
Article, where the information may have evolved or changed.
Hardware environment
$ lscpuArchitecture: x86_64CPU 运行模式: 32-bit, 64-bitByte Order: Little EndianCPU(s): 8On-line CPU(s) list: 0-7每个核的线程数:2每个座的核数: 4Socket(s): 1NUMA 节点: 1厂商 ID: GenuineIntelCPU 系列: 6型号: 58Model name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz步进: 9CPU MHz: 2021.406CPU max MHz: 3900.0000CPU min MHz: 1600.0000BogoMIPS: 6784.72虚拟化: VT-xL1d 缓存: 32KL1i 缓存: 32KL2 缓存: 256KL3 缓存: 8192KNUMA node0 CPU(s): 0-7Flag
(Intel VT), so we need to use commands to check whether the CPU used supports virtualization. This is the premise of using KVM virtualization technology:
$ Cat/proc/cpuinfoMy AMD Turion64 × 2 TL-56, the result is as follows:Processor: 0Vendor_id: AuthenticAMDCpu family: 15Model: 72Model name: AMD Turion (tm) 64X2Stepping: 2Cpu MHz: 800.000Cache size: 512 KBPhysical id: 0Siblings: 2Core id: 0Cpu cores: 2Apicid: 0Initial apicid: 0Fdiv_bug: noHlt_bug: noF00f_bug: noComa_bug: noFpu: yesFpu_exceptio
In the Linux system, the software and hardware information of proc file system display system is supplied. If you want to understand the system of CPU suppliers and coherent device information, it can be obtained through the process/proc/cpuinfo file. This article makes a brief summary of the file.Unlike the/proc/cpuinfo file generated by the instruction set (ISA) CPU, the/proc/cpuinfo file based on the X86 instruction set CPU contains the following:processor:0Vendor_id:genuineintelCPU Family:6M
Linux command to view the host configuration information in Linux can use lspci and cat/proc/cpuinfo to view the host information, this is equivalent to Windows CPU-Z software Oh. I am using a Vmware virtual machine. this is my local Machine Information 01 [root @ localhosthome] # cat/pr... linux command to view the host configuration information in Linux can use lspci and cat/proc/cpuinfo to view the host information, this is equivalent to Windows CPU-Z software Oh. I am using a Vmware virtual
: yes
Fpu_exception: yes
Cpuid level: 1
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush mmx fxsr sse sse2 syscall nx mmxext rjlm 3 limit 3 dnow up pni limit ts fid vid ttp tm stc
Bogomips: 4002.57 the above information shows that this is an AMD Athlon 64 3200 + CPU.
The CPU optimization parameters can be obtained from the following address (some cpu family and model do not exist and can be replaced by
cr4-07
PGE (Page Global Enable)
1 Enable the Global page feature introduced by the P6 processor, 0 forbidden
cr4-08
PCE (performance-monitoring COunter Enable)
1 Allow all privileged-level code to read performance counters using the RDPMC instruction, 0 only RING0 privileged level to use RDPMC directives
cr4-09
OSFXSR (Operationg System support forFxsave and fxrstor instructions)
Linux provides a special file system PROCFS, usually presented in the form of/proc directories. This directory contains a number of special files for higher-level access to driver and kernel information. As long as the application has the correct access holographic, you can obtain information or set parameters by reading and writing these files.For example,/proc/cpuinfo gives detailed information about the CPU:My Notebook is a 4-core machine.Processor:3VENDOR_ID:GENUINEINTELCPU Family:6Model: -m
this number is not necessarily continuousInitial apicid:0Fpu:yes#是否具有浮点运算单元 (floating point unit)Fpu_exception:yes#是否支持浮点计算异常CPUID level:13#执行cpuid指令前, the value in the EAX register, cpuid the instruction returns different content depending on the valueWp:yes#表明当前CPU是否在内核态支持对用户空间的写保护 (Write Protection)FLAGS:FPU VME de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE36 clflush DTS ACPI MMX FXSR SSE SSE2 SS HT t M PBE syscall NX PDPE1GB rdtsc
.
9
Osfxsr
Operating System Support for fxsave and fxrstor instructions
If set, enables SSE instructions and fast FPU Save restore
8
PCE
Performance-monitoring counter enable
If set, rdpmc can be executed at any privilege level, else rdpmc can only be used in Ring 0.
7
PGE
Page global Enabled
If set, address translations (PVDF or PTE records) may be shared between address spaces.
6
MCE
Panopticum fire 3.0Serial #: PF3-77140003-518Fire preparation tools are good, a variety of templates, installation and replication (to the registration number) can be.
Panopticum array 1.5 for After EffectsSerial: PAE 6660999 1111Particle tool, special and good. Copy (registration number required) installation.
Panopticum engraver V1.0 for After EffectsSerial: PGE 12679 TNTCarving tools are not new.
Panopticum animatext V1.0 for After EffectsIt
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.