1. Check the number of physical, the number of cores, the number of logic#total number of cores = number of physical CPUs X number of cores per physical CPU#Total Logical CPUs = number of physical CPUs x number of cores per physical CPU X number of hyper-threads#To view the number of physical CPUscat/proc/cpuinfo| Grep"Physical ID"| Sort| uniq| WC-L#
# total number of cores = number of physical CPUs x number of cores per physical CPU # Total Logical CPUs = number of physical CPUs x number of cores per physical CPU X number of hyper-threads # View the number of physical CPUs cat/proc/cpuinfo| grep "Physical ID" | Sort| uniq| Wc-l# View the number of cores in each ph
System
# uname-a # View kernel/operating system/CPU information
# head-n 1/etc/issue # View operating system version
# cat/proc/cpuinfo # View CPU Information
# hostname # View computer name
# LSPCI-TV # list all PCI devices
# LSU
One, Linux under View CPU cache series, each level sizegrep CacheThe example results are as follows:Second, see how the cache is associatedView the appropriate folder in the/sys/devices/system/cpu/If you see how many groups are in the first-level cache of cpu0,Cat /sys/devices/system/cpu/cpu0/cache/index0/number_of_set
On-line Java application, in the peak of the Business Times often appear CPU run high, need to see real-time thread CPU situation, the following is a very good script, you can quickly export the CPU of each thread, combined with Jstack log, to the specific thread class name.
First, get the process ID of the JVM:
Copy Code code as follows:
Ps-ef|
Hardware: 8 CPUs, x86_64
System: Linux Debian 2.6.26 SMP
(1) Use the TOP command to view CPU usage, and then press "1" to view the usage of each CPU.
Top-13:45:55 up 4 days, 8 users, load average: 0.00, 0.00, 0.00Task: 102 total, 1 running, 101 sleeping, 0 stopped, 0 zombieCpu0: 0.0% us, 0.0% Sy, 0.0% Ni, 100.0% ID, 0
# total number of cores = number of physical CPUs X number of cores per physical CPU# Total Logical CPUs = number of physical CPUs x number of cores per physical CPU X number of hyper-threads# View the number of physical CPUscat/proc/cpuinfo| grep "Physical ID" | Sort| uniq| Wc-l# See the number of cores in each physical CPU
# total number of cores = number of physical CPUs x number of cores per physical CPU # Total Logical CPUs = number of physical CPUs x number of cores per physical CPU X number of hyper-threads # View the number of physical CPUs cat/proc/cpuinfo| grep "Physical ID" | Sort| uniq| wc-l# See the number of cores in each physical C
First, through the Device Manager and my Computer properties, to see the computer CPU, graphics, memory configuration, the following author to their own Win8 notebook as an example, teach you how to look at the core hardware of the computer.
1, on the win8/8.1 traditional desktop "This computer" on the right button, and then click on the "Properties" below, you can open the system interface, as shown in the following picture:
2, open the
Introduction to the top commandDuring system maintenance, you may need to look at the CPU usage at any time, and analyze the system condition according to the corresponding information. In CentOS, you can view CPU usage through the top command. When you run the top command, the CPU usage status is displayed in full scr
At present our monitoring can find the process that consumes the higher CPU (the threshold is 3 CPU), through monitoring we can find the process number that consumes the higher CPU;With the process number PID, we can display the CPU resource consumption of each thread in the process via the Top–h–p Then, through the Th
High CPU temperature will cause the computer to crash, automatically shut down, and accelerate the aging of hardware. Generally used for more than 1 years of notebook computers, there is a high CPU temperature (depending on the use of the environment), we only need to the internal components of the notebook (such as: fan) to clean up in a timely manner. Since more and more users are using Win10 (the laptop
Label: Style Color Io OS ar use SP file data
Memory lsattr-El mem0CPU lsdev-c | grep procCPU information lsattr-El proc0
# Bootinfo-RView physical memory
Run # lsdev-CC memoryView the configured physical memory device. The following is an example of its output:Mem0 available 00-00 memoryL2cache0 available 00-00 L2 cacheUse the command # lsattr-El mem0Output:Size 512 total amount of physical memory in Mbytes falseGoodsize 512 amount of usable physical memory in Mbytes falseIn this example
1. view the memory information. view the memory information through the/proc/meminfo information. # cat/proc/meminfo: view the memory information by using the free command. # free-m indicates that the Unit is M Zhaotong/dev. /shm view available shared memory information # df-h/dev/shm2,
Linux ps command to view the cpu and memory usage sorting (conversion), linuxps
Run the following command to View Details:
ps -aux | sort -k4,4nps auxw --sort=rssps auxw --sort=%cpu
Ps commands in linux
% CPU usage of the cpu pr
Multiple multi-core CPUs are now the mainstream servers. Many applications, such as Squid and nginx, have the ability to distribute processes or threads to different CPU cores.
How can we view the distribution of different processes in the CPU core.
Use the top tool and use the pgrep or pidof commands.
For example, to view
You can use the command to check the 10 processes with the most memory
View the most CPU-intensive processes
PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +3|head
or top (then press m, note that this is uppercase)
To view the most memory-intensive processes
PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +4|head
or top (then press p, note this is uppercase)
The comm
From:http://www.jbxue.com/linuxjishu/14582.htmlTo view CPU information (model number):# Cat/proc/cpuinfo | grep name | Cut-f2-d: | Uniq-C 8 Intel (R) Xeon (r) CPU E5410 @ 2/proc/cpuinfo | grep physical | uniq-C
4 Physical ID : 0 4 Physical ID (Description is actually two 4-core CPUs)# getconf Long_bit32(indicates that the c
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.