1. in Linux, how does one determine whether your CPU is 32-bit or 64-bit?
Run the following command:View plain
Copy to clipboard
Print
?
Grep flags/proc/cpuinfo
Grep flags/proc/cpuinfo
Output
View plain
Copy to clipboard
Print
?
Flags: fpu vme de pse tsc msr pae mce cx8 APIC Sep mtrr pge mca cmov Pat limit 36 clflush dts acpi mmx fxsr SSE sse2 SS HT TM NX LM
Flags
If lm is found, it indicates that your CPU is 64-bit. lm indicates long mode.
L
located (end of line).I: Insert content before the current cursor position.L: Inserts content at the beginning of the line where the cursor is located (the beginning of the row).o: Insert a new line after the cursor line.O: Insert a new line in front of the line where the cursor is located.
2. Move the cursor
Move cursor Direction: Directly using the four arrow keys in the keyboard ↑, ↓, ←, → complete the corresponding cursor movement
(1) Page shift
Use the PageDown
Linux _ view the number of CPUs, cores, and threads of the system
(1) view cpu Information
[Root @ xckydb ~] # Cat/proc/cpuinfo
-- View cpu Information
Processor: 0
Vendor_id: GenuineIntel
Cpu family: 6
Model: 58
Model name: Intel (R) Core (TM) i5-3320M CPU @ 2.60 GHz
Stepping: 9
Cpu MHz: 2566.490
Cache size: 6144 KB
Fpu: yes
Fpu_exception: yes
Cpuid level: 5
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clf
address of the PDE is:
0x623A4000 + 3 * 8 = 0x623A4018
The value of 'pge' is 0x692BB067. bit7 = 0' indicates that it is directed to the page table.PT
The base address of PT is 0x692BB000, bits 20 ~ 12 is the sequence number of the PTE, and the calculated PTE address is:
0x692BB000 + 1 * 8 = 0x692BB008
The PTE value is 0x800000004AD6F867.Page frame
The base address of the page frame is 0x4AD6F000, bits 11 ~ 0 is the offset in the page frame, and the
. Therefore, if we look at linux, as long as we don't need swap space for swap, we don't have to worry about too little memory. If we often use a lot of swap, you may have to consider adding physical memory.
This is also the Standard for linux to check whether the memory is sufficient.
View the real number of CPU cores in Linux
Many people know that you can view detailed cpu information by directly typing cat/proc/cpuinfo.
The information is divided into processor 0-n. If you think n is the real
the operating system cannot recognize the L2 cache, the value of L1 is displayed here. The details should be obtained through dmesg: # More/var/log/dmesg | grep Cache
Fdiv_bug: NoNote: No fdiv_bugHlt_bug: NoNote: No hlt_bugF00f_bug: NoNote: No f00f_bugComa_bug: NoNote: No coma_bugFPU: YesNote: I guess it is to determine whether the CPU has a floating point unit.Fpu_exception: YesNote: I guess it is to determine whether the floating point unit of the CPU can throw an exception.
I haven't made th
pse tsc msr pae mce cx8 APIC mtrr pge mca cmov Pat limit 36 MMX fxsr SSE syscall mmxext 3 dnowext 3 dnow
Bogomips: 2998.27
--------------------------------------------------------------------------------
/Proc/devices File
This file lists the characters and main device numbers of Block devices, and the names of devices allocated to these device numbers.
Example:
[Root @ localhost/] # Cat/proc/devices
Character devices:
1 mem
4/dev/VC/0
4 tty
4 TTYs
5
Install
Virtualization support is usually disabled in bios and must be enabled.
For Intel CPU, we can run the following command to check whether virtualization is supported.
# Grep "vmx"/proc/cpuinfoFlags: fpu vme de pse tsc msr pae mce cx8 APIC Sep limit pge mca cmov Pat limit 36 clflush dts acpi mmx fxsr SSE sse2 ss ht tm pbe syscall NX limit rdtscp lm limit pebs BTS rep_good now.pl please wait until PNI then monitor your vmx smx est TM2 ssse3 cx
Article Title: how to view CPU information in Linux and FreeBSD. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, and other basic categories I. Linux
View cpu information:
[Junjie2 @ ljj ~] $ Cat/proc/cpuinfo
Processor: 0
Vendor_id: GenuineIntel
Cpu family: 6
Model: 13
Model name: Intel (R) Pentium (R) M processor 1.60 GHz
Stepping: 8
Cpu MHz: 1592.106
Cache size:
extensive hardware support for existing operating systems5. Hardware Support x86 series architectureIntel seriesXecon 71xx 7041 7030 7020 5100 5050Pentium D 920 930 940Pentium 4 662 672Core Duo T2600On Core 2 Duo E6300AMD seriesAMD AthlonAMD DuronIntel series6. Does the CPU support full virtualization[Email protected] ~]# Cat/proc/cpuinfo |GREP FlagsFLAGS:FPU VME de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE36 clflush DTS MMX fxsr SSE
CPU and related configuration information in the system, you can get it through the/proc/cpuinfo file. This article makes a brief summary of the file. Unlike the/proc/cpuinfo files generated by CPUs based on different instruction sets (ISA), the/proc/cpuinfo file based on the X86 instruction set CPU contains the following:processor:0Vendor_id:genuineintelCPU Family:6Model:26Model Name:intel (R) Xeon (r) CPU E5520 @ 2.27GHzStepping:5CPU mhz:1600.000Cache size:8192 KBPhysical id:0Siblings:8Core i
One, grains Grains: This is the same as Puppet's Facter function. Mainly responsible for collecting some basic information of the client, this is also fully customizable, can be customized in the client, and then automatically report up, you can also from the server-side definition and push down, after the acquisition, and then report up grains information is static; pillar and grains compare his flexibility, Define that definition, and then take the value.Usage of grains:1[email protected] ~]#
user-defined export.There are 3 categories of such exports: Function Module Exits; Menu Exits; Screen ExitsThere are two commonly used T-code:CMOD: For enhanced project managementSmod: Concrete implementation of enhanced projectsfunction Module Exits: A call Function statement that is pre-provisioned in a standard program, such as called Customer-function ' NNN, to dynamically invoke the associated export program. ' NNN ' is a 3-digit number, and the actual exit function is named by: Exit_Menu
: QEMU Virtual CPU Version (Cpu64-rhel6) ... flags : FPU de PSE TSC MSR PAE, MCE cx8 APIC Sep mtrr PGE MCA Cmov PSE3 6 Clflush MMX FXSR SSE SSE2 syscall nx LM unfair_spinlock PNI cx16 hypervisor lahf_lmAs you can see, this virtual machine is used for full virtualization, using CPUs that are simulated by QEMU and does not support hardware virtualization (no VMX in flags)2. Turn on nested support on the physical serverTo enable the physical m
Cat/proc/cpuinfo: you can see the actual number of cpu cores in detail. it should be the cpucores parameter value, the number of physical CPUs, and the number of non-repeated physicalids. There are several [user @ localhost ~] # Cat/proc/cpuinfoprocessor nb
Cat/proc/cpuinfo to view detailed cpu information
The actual number of cores should be the value of cpu cores, the number of physical CPUs. There are several physical IDs that can be used to count non-repeated
[User @ localhost ~] # Cat/pr
and physical addresses? On behalf of the above questions, let's look at the VMM-related boot code.
Find VMM content directly from the start_kernel () kernel boot section. We can see that the first function to be concerned is setup_arch (). In this function, the paging_init () function is used to initialize and map the hardware page table (8 MB before initialization ).
Memory ing, which is not recorded here), while paging_init () is called pagetable_init () to map the physical address of the k
Uses of grains and pillar:Grains: Basic data information for storing minion;Pillar: Used to store the data information that master assigns to minion.Storage areas for grains and pillar:Grains: Metadata is stored on the Minion side;Pillar: Metadata is stored on the master side.Update methods for grains and pillar:Grains: Update at minion startup;Pillar: Metadata is stored on the master side and refreshed with saltutil.refresh_pillar for greater efficiency and flexibility.Simple use of 1.Grains(1.
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.