: 460 2729 swap: 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 information here.
/Proc/meminfo memory usage
View multi-core CPU commandsMpstat-p All and sar-p allDescription: Sar-p all > Aaa.txt redirect output to file Aaa.txtTop commandOften used to monitor Linux system conditions, such as CPU, memory usage, the programmer basically know this command, but it is strange to use it very few people, such as the top
When you want to monitor a Linux machine, you have many options. Although there are many product quality monitoring solutions (such as Nagios, Zabbix, and Zenoss), they have a gorgeous UI, scalable monitoring, and easy-to-understand reports, these solutions are too powerful for most end users.
When you want to monitor a Linu
performance:Http://www.ibm.com/developerworks/cn/aix/library/analyze_aix/index.html
Nmon analyser-a free tool for generating AIX performance reports:Http://www.ibm.com/developerworks/cn/aix/library/nmon_analyser/index.html
Bytes ------------------------------------------------------------------------------------------------------------------------
Nmon is a free tool provided by IBM to monitor AIX and
In the analysis of the system, one of the first and most basic tools is often a simple measurement of the CPU utilization of the system. Linux and most unix-based operating systems provide a command to display the system's average load (loadaverage).
[huangc@v-02-01-00860 ~]$ uptime 11:18:05 up for days
, 1:17, one users, load average:0.20, 0.13, 0.12
Specifically, the average load value represents the
~/.TOPRC file. This is the recommended way to write top configuration files.As you can see, the top command is a very powerful tool for monitoring systems and is especially important for system administrators. However, its disadvantage is that it consumes a lot of system resources.Application examplesYou can use the top command to monitor a specified user, and the default is to monitor processes for all us
paging operation, this paging operation is very expensive host CPU resources. If the process is found to be in a non-sleep state through top, and it runs for a long time, you can initially determine that the system is continuously paging, and you can turn the problem to an out-of-memory reason for troubleshooting.
Problem Description:The kswapd0 process consumes a large amount of CPU resources on
VME de PSE TSC MSR PAE MCE cx8 APIC MTRR PGE MCA cmov Pat PSE36 clflush DTS ACPI MMX FXSR SSE SSE2 SS HT TM PB E lm constant_tsc PNI monitor ds_cpl CID XTPRbogomips:5999.55
Displays 4 logical CPUs, the same as the previous two logical CPUs through the physical ID, followed by two, so there are two physical CPUs. The previous two core IDs are the same, followed by the same two core IDs, indicating that all two CPUs are single cores. That is to say, t
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
Analysis toolsA free tool for analyzing AIX and Linux performance, the Nmon tool helps to display all of the important performance tuning information on one screen and dynamically update it. This efficient tool can work on any dumb screen, Telnet session, or even dial-up lines. In addition, it does not consume a lot of CPU cycles, usually less than 2%. On the updated computer, its
+data
Shr
Shared memory size, in kilobytes
S
Process Status: d= non-disruptive sleep state, r= run, s= sleep, t= track/Stop, z= zombie process
%cpu
CPU time consumption percentage last updated to current
%MEM
Percentage of physical memory used by the process
time+
Total C
Article Title: View CPU information in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The top command is a common performance analysis tool in
Linux CPU metrics
Linux provides a wealth of commands to monitor CPU-related data, such as top and vmstat. Top is a dynamic display process, that is, you can press the key to continuously refresh the current status. If you execute this command on the foreground, it will excl
View multi-core CPU commands mpstat-p all and sar-p all
Description: Sar-p all > Aaa.txt redirect output to file Aaa.txt
The top command is often used to monitor Linux system conditions, such as CPU, memory use, the programmer basically know the command, but it is strange that there are few people can use it well, such
For many self-implemented services, many people prefer to use a dedicated monitoring process to monitor their own services. To prevent the monitoring process from collapsing, they even use classic dual-process monitoring. Not to mention anything else, writing and debugging this dual process is enough for me to have a pot of tea. It is a tough task for me to write bugs like this. Even one day, I will not write any bugs, but you will not be able to go t
, CPU status, memory usage, swap occupancy . Input: TopOutput: From the CPU state that line, you can clearly grasp the CPU utilization: User mode (US), System mode (SY), Low priority user mode (NI), idle task (ID), I/O Waiting (WA). The top command can also detail how much CPU and how much memory each process consumes.
kernels.
Method 3
The top command can also display the process to which the CPU is allocated. First, use the "P" option in the top command. Press the "f" key to display the "Last used CPU" column. The currently used CPU kernel will appear in the "P" (or "SRS") column.
$ top-p 5357
Compared with ps commands, the advantage of using top commands is that you can
Set of cpu monitoring tools for Linux
Set of cpu monitoring tools for Linux
1. top tools provided by the systemDetailed parameter description:15:46:08: current system time45 days: the system runs for 45 days.2 users: the system currently has two users logging onLoad average: 0.04, 0.01, 0.00 -- load of
the percentage of time to wait for the input output to finish
%steal: The percentage of the virtual CPU's unconscious wait time when the hypervisor maintains a second virtual processor
%IDLE:CPU Idle time percentage
If the value of%iowait is too high, indicates that the hard disk has an I/O bottleneck and a high%idle value indicates that the CPU is idleIf the%idle value is high but the system responds slowly, it is possible that the
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.