Nginx does not turn on using multicore CPUs by default, we can make full use of multicore CPUs by adding worker_cpu_affinity configuration parameters. CPU is the task processing, compute the most critical resources, the more CPU cores, the better performance.
configuring Nginx Multi-core
In Linux, the meaning of CPU load and CPU usage indicates that the Nagios alarm information was viewed yesterday. It was found that the CPU load on one of the servers was too heavy and the machine was CentOS. Information: 2011-2-15 (Tuesday) 17: 50 WARNING-load average: 9.73
Background: Sometimes you need to look at the CPU and occupancy of a process, sometimes you need to look at a single occupancy of the overall process. I. Linux PS command to view CPU and memory usage of a process [[emailprotected] vhost]# PS aux user pid%cpu%memvsz RSS T
Linux is available under the top, PS command to check the current CPU, mem usage. Here's a simple example:First, using PS to view the process of resource consumptionPs-auxWhen you view the process information, the third column is the CPU check-in.[Email protected] utx86]# Ps-aux | grep my_processWarning:bad syntax, per
Linux TOP commands are sorted by memory usage and by CPU usage P-process list in the order of CPU usage M-process list in the order of memory usage during system maintenance, you may ne
The top command is a common performance analysis tool in Linux. It can display the resource usage of various processes in the system in real time, similar to the Windows Task Manager. The following describes how to use it.
Top-01:06:48 up, 1 user, load average: 0.06, 0.60, 0.48Tasks: 29 total, 1 running, 28 sleeping, 0 stopped, 0 zombieCPU (s): 0.3% us, 1.0% Sy, 0.0% Ni, 98.7% ID, 0.0% wa, 0.0% hi, 0.0% SiM
Linux provides top, PS commands to view current CPU, mem usage, briefly described as follows:One, using the PS view process resource consumptionPs-auxWhen you view process information, the third column is CPU consumption.[Email protected] utx86]# Ps-aux | grep my_processWarning:bad syntax, perhaps a bogus '-'? See/usr/
> compressedfile.bz2Especially for Bzip2,gnu parallel on multicore CPUs is super fast. When you're not careful, it's done.GrepIf you have a very large text file, you might have done this before:grep pattern Bigfile.txtNow you can do this:Cat Bigfile.txt | Parallel--pipe grep ' pattern 'or this:Cat Bigfile.txt | Parallel--block 10M--pipe grep ' pattern 'This second usage uses the –block 10M parameter, which
: 460 2729Swap: 2000 78 1921
View the size of the/proc/kcore file (memory image ):[Root @ scs-2 TMP] # ll-H/proc/kcore-R -------- 1 Root 4.1g Jun 12 12:04/proc/kcore
Note:
Memory usage Measurement
Measure how much memory a process occupies. Linux provides us with a very convenient method. The/proc Directory provides us with all the information, in fact, the top tool also obtains the corresponding informatio
; compressedfile.bz2
Especially for Bzip2,gnu parallel on multicore CPUs is super fast. When you're not careful, it's done.GrepIf you have a very large text file, you might have done this before:
greppattern bigfile.txt
Now you can do this:
catbigfile.txt | parallel --pipe grep‘pattern‘
or this:
catbigfile.txt | parallel --block 10M --pipe grep‘pattern‘
This se
Meaning of cpu usage in linux top Command, linuxtop
Meaning of cpu usage in linux top Command[Respect for original articles from: http://www.iteye.com/topic/1110848]CPU
the file named Top.log:Top-n 2-b Attach a command brief introduction to Linux traceroutewindows tracert two commands quite, trace network routing2.vmstatAs the performance comparison of any system we discussed earlier is baseline based, and monitoring CPU performance is the above 3 points, running queue, CPU utilization, and context switching. The following are
-primes only uses 50% CPU resources, and the remaining CPU time is idle.
CPULimit can also dynamically restrict processes at run time, using the-P option to specify the PID of the process, and here is an example:
The code is as follows:
Cpulimit-l 50-p 1234
Of these, 1234 is the PID of the process.
cgroups command Set
Finally, the usage of the most powerful
In Linux, you can view CPU and memory usage during system maintenance. you may need to view CPU usage at any time and analyze the system status based on the relevant information. In CentOS, you can use the top command to view CPU
overall processing interrupt;For an application such as a database server, tying the disk controller to a CPU and binding the NIC to another CPU will improve the response time of the database and optimize performance. A reasonable balance of IRQ interrupts based on your production environment and application characteristics can help improve the overall throughput and performance of the system.Vpsee often r
, the disk Binding the controller to one CPU and tying the NIC to another CPU will increase the response time of the database and optimize performance. A reasonable balance of IRQ interrupts based on your production environment and application characteristics can help improve the overall throughput and performance of the system.Vpsee often received a letter asked how to optimize the
These days I have been studying shell scripts and writing some system load and CPU monitoring script programs. Without nagios monitoring software, as long as the server can access the Internet, you can send an email to remind the administrator of the system load and CPU usage. I. install the shell script and write some system load and
During system maintenance, it may be necessary to review the CPU usage at any time, and to analyze the system condition according to the corresponding information. In CentOS, you can view CPU usage by using the top command. After running the top command, the CPU
How to view machine configuration under Linux? cpu/Memory/HDDDmesgDisplays the boot information. The kernel will store the boot information in the ring buffer. If you are too late to view the information, you can use DMESG to view it. The boot information is also saved in the/var/log directory, in a file named DMESGDmesg|grep HDHard diskDmesg|grep CPUCpuDMESG|GREP procMemoryDmesg|grep RedhatOperating system
During system maintenance, it may be necessary to review the CPU usage at any time, and to analyze the system condition according to the corresponding information. In CentOS, you can view CPU usage by using the top command. After running the top command, the CPU
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.