For i in ' SEQ 1 $ (cat/proc/cpuinfo |grep "Physical id" |wc-l) '; Do DD If=/dev/zero Of=/dev/null DoneDescriptionCat/proc/cpuinfo |grep "Physical ID" | Wc-l can get the number of CPUs, which we represent as N.SEQ 1 n is used to generate numbers between 1 and NFor i in ' seq 1 N '; is the loop execution command, from 1 to nDD If=/dev/zero Of=/dev/null Executes the DD command, output to/dev/null, actually consumes only CPU, no IO operation.Due to the
Linux The kernel has been tested for a long time in terms of performance, especially 2.6/3.x kernel. However, in the case of high IO, especially the network, the processing of interrupts can become a problem. We have found this problem on a high-performance system with one or more saturated 1Gbps NICs, and recently there are many small packets concurrently (about 10000packets/second ) overload on the virtual machine also found this problem. The reaso
This afternoon, the site two times the machine, the dispatch to Aliyun, found that the reason is the server's CPU 100%.
After restarting the server, use the top command to see which processes are consuming so much CPU usage. Stare at a good more than 10 minutes, the main CPU-consuming process has two, one is MySQL, th
Some time ago there is a maintenance of the author of the small computer room air conditioning failure, high temperature caused the system card slow, no one found. So I want to use Zabbix to monitor the CPU temperature and set the alarm threshold value, but also can monitor the fan anomaly, the wind board too dirty air, process deadlock caused high CPU usage anom
/mnt_storage_pic.txt time= ' Date +%m '. %d ""%k ":"%m ' connect= ' Netstat-na | grep "219.238.148.30:80" | Wc-l ' Echo $time $connect >>./temp/connect_count.txt
3, monitoring the host's disk space, when the use of more than 90% in space by sending mail to send a warning
The code is as follows
Copy Code
#!/bin/bash#monitor Available disk spaceSpace= ' DF | Sed-n '//$/P ' | Gawk ' {print $} ' | Sed ' s/%//'If [$SPACE-ge 90]ThenSend mailFi
4
In linux, virtual machines are often used. What is the impact on CPU and video card?-Linux general technology-Linux technology and application information. The following is a detailed description. Everyone can speak freely. I only install Linux, and some work must be complet
In Linux, when the CPU usage reaches 100%, you can also run the program-general Linux technology-Linux technology and application information. The following is a detailed description. If it is Windows, the system will slow down, and then wait for you to go to the K program o
Linux lookup Java process consumes high CPU cause1. Find a processTop View Process Usage resourcesIt is obvious that Java's two processes 22714,12406 consume too much CPU.2. Find ThreadsUse Top-h-P 3. Finding stack information for JavaConvert thread ID to hexadecimal#printf%x 15664#3d30Then use Jstack to query the thre
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
Reprint the original source of the articleIn the absence of nagios monitoring, as long as the server can be on the Internet, you can send e-mail to remind administrators of the use of system resources.First, write the Linux system warning mail script# vim/scripts/sys-warning.sh#!/bin/Bash#monitor the system load and CPU, memory, hard disk, log on the number of users, beyond the alert to send email alerts. #
. http://www.super-computing.org/download page:ftp://pi.super-computing.org/wgetftp://pi.super-computing.org/Linux/super_pi.tar.gzTAR-XZVF super_pi.tar.gz./super_pi20 is the number of digits. Indicates how many times to calculate the azimuth of 2, such as the 1M bit after the decimal points are usually counted. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/4E/wKiom1R-rnXCmbdwAASCjAYEnzQ462.jpg "title=" Super_ Pi.png "alt=" Wkiom1r-rnxc
Under Linux, get the 10 processes that consume the most CPU resources, using a combination of the following commands:PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +3|headUnder Linux, get the 10 most memory-intensive processes, which can be combined using the following command:PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +4|headCommand combination parsing (for
Tags: BSP value TTY KTH program priority default Kthread pipe breakUnder Linux, get the 10 processes that consume the most CPU resources, using a combination of the following commands:PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +3|headUnder Linux, get the 10 most memory-intensive processes, which can be combined using the following command:PS Aux|head-1;ps aux|grep
Tags: process start output sort Sort Note time Data-gpo compare contentUnder Linux, get the 10 processes that consume the most CPU resources, using a combination of the following commands:PS Aux|head-1;ps aux|grep-v pid|sort-rn-k +3|headUnder Linux, get the 10 most memory-intensive processes, which can be combined using the following command:PS Aux|head-1;ps aux|
Irqbalance for Linux CPU Optimization
First: Service Introduction
This service is specially designed to interrupt service instructions!
Ensure reasonable allocation of multi-core CPUs at the system level!
Ii. Installation Method
# Yum-y install irqbalance
#/Etc/init. d/irqbalance start
Third: Advantages and Disadvantages analysis:
Advantage: it can improve performance and reduce energy consumption.
1. Find process Top view process Resource Usage It is clear that Java's two processes 22714,12406 consume too much CPU.2. Find thread use top-h-P 3. Find Java stack information convert thread ID to hexadecimal #printf%x 15664#3d30 Then use Jstack to query the thread's stack information syntax: Jstack Linux lookup Java process consumes high
First: Service IntroductionThis service is dedicated to interrupt service instructions!can guarantee the reasonable distribution of multi-core CPU at the system level!Second: Installation method# # Yum-y Install Irqbalance#/etc/init.d/irqbalance StartThird: Advantages and disadvantages Analysis:Advantages: It can improve performance and reduce energy consumption.Principle: Irqbalance optimizes interrupt allocation, which automatically collects system
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.