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 usage of 0.3% us user space1.0% sy CPU usage in kernel space0
Article Title: CPU load in Linux. Linux is a technology channel of the IT lab in China. Some basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open-source systems view the Nagios alarm information yesterday and find that one of the servers is overloaded with
372 47 90 10 0 0From the first result above, we can see that the last column (ID) represents the idle time. We can see that during baseline statistics, the CPU idle time is between 79% and 100%. the second result shows that the system is in the 100% usage and there is no idle time. from this comparison, we can determine whether the CPU usage should be optimized.2.0 install monitoring toolsMost * nix system
In the Linux system, the software and hardware information of proc file system display system is supplied. If you want to understand the system of CPU suppliers and coherent device information, it can be obtained through the process/proc/cpuinfo file. This article makes a brief summary of the file.Unlike the/proc/cpuinfo file generated by the instruction set (ISA) CPU
In the last blog post, we talked about how to get the results of executing the command line in Linux, and eventually get CPU usage, but unfortunately it is:1) via Top-n 1 | The CPU usage obtained by the GREP CPU is not refreshed, and the results of the first execution are only available for each read.2) may cause a con
, which is not exactly the same thing as the threading ID that pthread_t in POSIX.The thread implemented by the POSIX line libraries in Linux is actually a lightweight process (LWP), which is the true PID of this thread.But it cannot be obtained through the getpid () function, which defines the Gettid () interface in Linux, but is usually not implemented, so it is necessary to obtain the TID in the followin
Linux was initially developed as a POSIX-compatible kernel that could run on Intel's "i386"cpu.And now the mainstream Linux is the kernel that can run on so-called "pc". "pc" refers to a machine that uses "ia (Intel architecture).IA (Intel Architecture) Although "i" refers to Intel, Linux does not only run on Intel-produced CPUs. For example, another very large
I. Preface in order to understand the meaning of this article more conveniently, it is better to look at the following cumbersome concepts and make it easier to understand. Do not understand these concepts, even after reading you can only know, run the next vmstat, look at the results of Linux feedback, but also to know why ~ First said the concept of memory. It's not about the CPU. Because the memory will
Tags: Ali section recommended ASM Linux kernel ISA PID hardware and software platformFirst, Source: Why the introduction of PER-CPU variables?1. Performance issues with Lock busPrior to ARMV6 on the arm platform, the SWP and SWPB directives were used to support access to the shared memory:
SWP
In Rn, the memory address of the SWP instruction is saved, which allows the memory data specified by
)
Returns the address of the per CPU variable on the specified CPU number, based on the address and CPU number of the per CPU variable
Third, the realization1. Static PER-CPU variable definitionWe use the implementation of DEFINE_PER_CPU as an example to desc
Metrics to measure CPU performance:1, the user uses the CPU situation;CPU runs regular user processesCPU Running niced ProcessCPU running real-time process2, the system uses CPU condition;For I/O Management: interrupts and drivesFor memory management: page swappingUser Process Management: Process start and context swit
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
interrupt and soft interrupt concept. For example, a hard interrupt, the CPU in the execution of the program, suddenly peripheral hardware (such as hard disk problems) The machine needs to immediately notify the CPU for onsite storage work. This time the CPU will have a context switch. Is that the CPU will be a part o
The Linux kernel is a great circus performer who plays juggling carefully between process and system resources and keeps the system running properly. At the same time, the kernel is fair: it allocates resources equitably to processes.
But what if you need to prioritize an important process? Or, how do you reduce the priority of a process? Or, how do you limit the resources used by a group of processes?
The answer is that the user is required to spec
Linux-CPU performance optimization,
Preface
What is performance optimization? In my opinion, performance optimization aims to improve application or system capabilities. So how can we optimize the performance of the application? We have designed a lot of content here, including the Linux kernel, CPU architecture and
, the CPU in the execution of the program, suddenly peripheral hardware (such as hard disk problems) The machine needs to immediately notify the CPU for onsite storage work. This time the CPU will have a context switch. Is that the CPU will be a part of the time will be hard interrupt occupation, this time is hi. Simil
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 CPU monitoring script progra
Recently responsible for the SVR pressure is large, business logic is a little more complex, can optimize the place has been all optimized,
Currently 3k per second, CPU load is still relatively high
Top look, 4 core CPU load is not too balanced, it is intended to consider the business process is assigned to 3 CPU running, the other
Transferred from: http://blog.csdn.net/goodluckwhh/article/details/9005585Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.Directory (?) [-]
One per CPU variable
Two-atom operation
Three optimizations and memory barriers
Four spin lock
Spin lock
Data structure and macro functions for spin locks
Read/write Spin lock
Correlation function of read-write
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.