cpu. memory. Linux systems view and determine the average load, etc.

2010-05-05  来源:本站原创  分类:OS  人气:177 

1, for cpu occupancy

[Root @ localhost utx86] # top-n 1 | grep Cpu
Cpu (s): 1.9% us, 1.3% sy, 0.0% ni, 95.9% id, 0.6% wa, 0.1% hi, 0.2% si, 0.0% st

Explained: 1.9% us is the user take up cpu case

1.3% sy, is the system is using cpu case

2, access the memory occupancy

[Root @ localhost utx86] # top-n 1 | grep Mem
Mem: 2066240k total, 1515784k used, 550456k free, 195336k buffers

3, Linux system, the average load (load average)

Members might have noticed that when the implementation of the Linux system uptime, w and the top three command. In the end the results of the first line will have a load average, and will be followed by three numbers followed, and this is what we are saying today, the system load average.

Average system load definition: at a specific time interval, the average run queue process number. If a process meets the following conditions, then the queue will be in operation:
1. Without waiting for I / O operation results
2. Not to enter the wait state (that is not called 'wait')
3. Not stop (for example: waiting for termination)

For example, we execute the command uptime.
ff @: ~ $ uptime
09:59:28 up 1:13, 3 users, load average: 1.42, 1.38, 1.38

The three figures represent the back of the system in the last 1,5,15 minutes, the average process in the run queue number. In general, as long as each CPU, the number of currently active process that is not greater than 3 on a good performance; if the number of tasks greater than 5 CPU that the machine's performance on a serious issue.
Suppose the above is a dual-core CPU, uptime output, then the number of each CPU on the current task is: 1.42 / 2 = 0.71.

相关文章
  • cpu. memory. Linux systems view and determine the average load, etc. 2010-05-05

    1, for cpu occupancy [Root @ localhost utx86] # top-n 1 | grep Cpu Cpu (s): 1.9% us, 1.3% sy, 0.0% ni, 95.9% id, 0.6% wa, 0.1% hi, 0.2% si, 0.0% st Explained: 1.9% us is the user take up cpu case 1.3% sy, is the system is using cpu case 2, access the

  • Unix / Linux Systems Management: CPU management articles 2010-04-08

    In the Unix / Linux systems administration and daily system maintenance process, at any time may need to check the CPU usage status analysis system in accordance with the appropriate status information to determine the system resource usage and syste

  • View Linux kernel. CPU. Memory and other components version of the commands and methods 2010-10-14

    This article comes from, " Wong Po's blog "blog, be sure to keep this source http://huangbao.blog.51cto.com/725279/152679 View Kernel version: uname-a more / etc / * release more / etc / redhat-release more / proc / version View CPU Information:

  • Redhat Linux commands such as View cpu.memory 2010-11-20

    Redhat Linux see cpu, memory and other commands March 20, 2009 Friday 10:03 1, a summary View the system kernel version: # Uname-a View system version: # More / etc / redhat-release View Kernel version gcc version # More / proc / version View cpu inf

  • See the Linux kernel. CPU. Memory and the version of the component commands and methods 2010-10-14

    This article comes from " yellow treasure of the blog "blog, be sure to keep this source http://huangbao.blog.51cto.com/725279/152679 Check kernel version: uname-a more / etc / * release more / etc / redhat-release more / proc / version View CPU

  • Linux + OS Capability Analysis / CPU. Memory.I / O.Network.File 2010-11-09

    Performance Analysis and Tuning Linux Command Summary http://www.bitscn.com/os/linux/201009/190744.html CPU performance analysis tools: vmstat ps sar time strace pstree commonly used commands top http://rainbird.blog.51cto.com/211214/109310 c shows t

  • Linux SNMP OID's for CPU, Memory and Disk Statistic 2010-08-24

    Linux SNMP OID's for CPU, Memory and Disk Statistics Study: Dopsdck From: http://www.linuxdiyf.com SNMP stands for Simple Network Management Protocol and consists of three key components: managed devices, agents, and network-management systems (NMSs)

  • Zhuantie: Linux CPU utilization under the View 2011-02-24

    The top command is commonly used under Linux performance analysis tools, real-time display system in the process of resource consumption of each state, similar to the Windows Task Manager. The following details how to use it. top - 01:06:48 up 1:22,

  • Unix / Linux Systems management: process management articles 2010-11-03

    Unix / Linux Systems management: process management articles This article is a Unix / Linux systems management in an automated series, mainly on how to automate the monitoring process status and performance and notify the system administrator. Proces

  • Tuning Linux systems 2011-05-15

    Most Linux distributions are defined in the appropriate buffers and other Transmission Control Protocol (TCP) parameters. These parameters can be modified to allocate more memory, thus improving network performance. Set the kernel parameters is throu

  • Detailed command and its use of Linux systems 2010-11-08

    [Size = large] [size = medium] [size = medium] [size = medium] Linux system commands and the use of explain (Daquan) (Source: China System Analyst) cat cd chmod chown cp cut Name: cat Access: All users use: cat [-AbeEnstTuv] [- help] [- version] file

  • Detailed command and its use of Linux systems (Daquan network Abstract) 2011-07-22

    ( Source : China System Analyst ) cat cd chmod chown cp cut Name :cat Permissions : All users use :cat [-AbeEnstTuv] [--help] [--version] fileName Explain : The connection string passed to file the basic output ( Screen or additional > fileName To an

  • Detailed command and its use of Linux systems (Daquan) 2011-08-13

    Detailed command and its use of Linux systems cat cd chmod chown cp cut Name: cat Access: All users use: cat [-AbeEnstTuv] [- help] [- version] fileName Description: The connection string passed to the basic file output (screen or add> fileName to an

  • linux system view system performance command Xiang Jie (1) 2010-07-22

    Generally, we view the system performance mainly in the following areas 1. Show the situation for the user% user CPU 2. Systems use case shows the% sys CPU 3.wio or iowait show the% iowait process was waiting for disk IO Ershi CPU idle ratio 4.CPU id

  • Windows and Linux systems in the dynamic library 2010-11-08

    (Rpm) Of: Liu Shidong Yang Lin 1 Introduction Dynamic libraries (Dynamic Link Library abbr, DLL) technique is often used in programming technology. The aim to reduce the size of the program, save space, improve efficiency, with high flexibility. Dyna

  • linux process view Serialization linux top command 2011-04-13

    linux process view, there is a lot we can learn from, here we introduce the linux top command, including the introduction of parameters in the top command. top command and the fundamental role of the ps command is the same, display the current proces

  • JBoss5 JMX - See JBoss thread stacks, CPU, memory, information 2010-04-22

    JBoss has a JMX management, web management interface called the jmx-console, in the http://localhost:8080/jmx-console/ directory. In JBoss, the principal through the jmx-console to manage, although an increase in the JBoss5.1 Lane admin-console. But

  • Linux Tutorials --- Linux systems commonly used in compression and decompression command 2010-03-11

    Linux Tutorials --- Linux systems commonly used in compression and decompression command Articles Category: Operating system Linux common commands, such as compression and decompression as shown in Table 2-5. Table 2-5 Linux common compression and de

  • Java access to system information (cpu, memory, hard disk, process, etc.) Related to methods 2010-04-04

    1. Jdk that comes with using API to obtain information: (the above version only supports jdk1.60 ah) import java.io.InputStreamReader; import java.io.LineNumberReader; import java.util.ArrayList; import java.util.List; import mytools.com.sun.manageme

  • linux system view system performance command Xiang Jie (6) 2010-07-22

    Arguments detailed: top command ceremony will be the most sensitive parameters of the system information listed. PR: the distribution of the processing system processes the time, if 16, then assigned a 16 * 10 ms length of time to deal with the threa