Linux viewing processes that occupy the highest CPU
PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +3|head
or top (then press m, note that this is uppercase)Linux 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 that this is uppercase)This combination of commands is actually the following tw
Sometimes the leader will ask you how many cores a server is, how many threads, is not will be Meng, the following teach you how to see Cpuinfo
1, view the number of CPUs:
# Cat/proc/cpuinfo | grep ' Physical ID ' | Sort-u
2, view the number of CPU cores:
# Cat/proc/cpuinfo | grep ' Core ID ' | Sort-u | Wc-l
3. View
The processor is the computer operation important core equipment, now the processor uses the multi-core technology, is more common is the dual core, the four cores and the eight cores, the CPU core number can affect the system performance. For those who have just contacted the computer must not know where to check their computer processor is a few cores? Here are two simple tips for looking at the core number of processors.
(mem_tip) cpu_usage= Int (get_cpu () *100) Cpu_tip="CPU Usage (max 100%):"+str (cpu_usage) +"%"Print(cpu_tip) load_average=os.getloadavg () Load_tip="system Load (one of three values is more than 3 is high):"+Str (load_average)Print(Load_tip)Touch a py file on the Linux server and paste the above into it and save it. Run the Python script with the following effect:Glance. In the future to access the background interface 502, no return situation, in th
View the processes that consume the most CPU and memory in Linux1. top 10 processes with the most CPU usage: PS auxw | head-1; PS auxw | sort-Rn-K3 | head-102. top 10 processes with the most memory consumption PS auxw | head-1; PS auxw | sort-Rn-K4 | head-103. top 10 processes with the most virtual memory used PS auxw | head-1; PS auxw | sort-Rn-K5 | head-10 4. y
Http://xinxiangsui2018.blog.163.com/blog/static/10609785620119279322437/
1. view system usageYou can use the topas command2. view memorySvmon-G3. View CPU clock speedBash-2.05b # vmstatSystem Configuration: lcpu = 2 mem = 3072 MB ent = 0.20Kthr Memory Page faults CPU------
Linux View CPU temperature, install Lm_sensors tool1, install Lm_sensors tools to see the temperatureYum-y Install Lm_sensorsRpm-qa|grep Coretemp See if there is kmod-coretemp, no words need to install thisx86 and x64 systems are directly wget http://www.pperry.f2s.com/linux/coretemp/kmod-coretemp-1.1-2.el5.x86_64.rpm2, then RPM-IVH kmod-coretemp-1.1-2.el5.x86_64.rpm installation can.3, then execute the sen
Size end: the way in which the CPU sorts memory unit data.The method for storing the operands of CPU in the little-Endian mode is from low byte to high byte (from right to left, that is, from low to high). This is the mode adopted by the X86 platform;The big-Endian mode is used to store the operands from the high byte to the low byte. The data transmitted over the network is used;For example:16 bits: 0x1234
View the most CPU-and memory-intensive processes under Linux The top 10 processes that occupy the most 1.CPU:PS Auxw|head-1;ps auxw|sort-rn-k3|head-102. Top 10 processes with the most memory consumptionPS Auxw|head-1;ps auxw|sort-rn-k4|head-103. The top 10 processes that use the most virtual memoryPS Auxw|head-1;ps auxw|sort-rn-k5|head-10 4. You can also trywww.haoshuju.cnPS Auxw--sort=rssPS Auxw--sort=%
Reference documentsHttp://www.cnblogs.com/emanlee/p/3587571.htmlThe following are the operation in Centos 6.5Viewing the system version[Email protected] ~]# cat/etc/redhat-releaseView Kernel version[Email protected] ~]# Uname–rView number of Bits[Email protected] ~]# uname–mView all information[Email protected] ~]# Uname–aView Physical number of CPUs[[Email protected] ~] #cat/proc/cpuinfo| grep "Physical ID" | Sort| uniq| Wc-lView each physical the number of cores in the
How to view CPU temperature in centos
As the host of AI machine, do we have to ask for help? The following describes how to view the CPU temperature in Linux.
CentOS series:
1. yum install lm_sensors;
2. sensors-detect
3. sensors
Ubuntu series:
1. apt-get install lm-sensors
2. sensors-detect
3. service kmod st
Tags: I/O analysis tool cached memory Linux C view CPU visible share statistics1. Top command: It is a common performance analysis tool under Linux, which can show the resource occupancy of each process in real-time.2. Free command:free-m Viewing memory usagefree-s continuously monitor how much memory is in use--------------------------------------------------------------------------------------------------
In linux, view the cpu usage-Linux Enterprise Application-Linux server application information. The following is a detailed description. Permission: All Users
Usage: top [-] [d delay] [q] [c] [S] [s] [I] [n] [B]
Description: displays the process status in real time.
Count?
D: Change the display update speed, or press s in interactivecommand
Q: there is no delay in display speed. if the user has
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.