To view CPU, memory, and hard disk size under Linux:How to view CPUs1, cat/proc/cpuinfo or more intuitive to view the model of the CPU command: DMESG |grep-i XeonWays to view memory2. Cat/proc/meminfo or more intuitive command to view memory: free-mView hard disk size3, Df-hFinally, with the top command, you can also see the CPU and memory
Today ran a very time-consuming bulk insert operation. When using the top command to view the CPU and memory usage, the CPU was checked by 120%. Never noticed before. By pressing 1 on the big keyboard in the case of top, the number of cores viewed by the CPU is 4 cores.By looking through the Web, the top command shows
Linux System Info # uname-A # view kernel/OS/CPU Information # head-N1/etc/issue # View OS version # Cat/proc/Cpuinfo # View CPU Info # hostname # view computer name # LSPCI-TV # List all PCI devices # LSUSB-TV # list all USB devices # lsmod # list loaded kernel modules # env # View Environment Variables # Arch displays the processor architecture of the machine (
Tags: mysql process CPU load too high 300%Today received a colleague's call, said the public account of the game can not login, users can not play, trouble to solve as soon as possible.1, visit IDC computer room to view the server traffic map, traffic is normal, troubleshooting and traffic independent.2, the login public account of the game server found that the system is too high, the MySQL process CPU uti
1, Htop2. TopContent Explanation:
PID: ID of the processUSER: Process OwnerPR: The priority level of the process, the smaller the higher the priority is executedNinice: ValueVIRT: Virtual memory consumed by the processRES: The physical memory occupied by the processSHR: Shared memory used by the processS: The state of the process. s for hibernation, R for running, Z for Zombie, n for the process priority value is negative%CPU: Process Consumi
2.-o options is used to describe the mounting method of a device or file. Common parameters include:
Loop: used to connect a file to the system as a hard disk partition.
Ro: mounting a device in read-only mode
Rw: mounting a device in read/write mode
Iocharset: Specifies the character set used to access the file system
3. the device to be mounted.
4. mount point of the dir device on the system ).
Attach a CD image file
Thanks to the huge advances in disk technology in recent years, new compute
Tags: memory length LAN sleep state cache space-memory leak memory utilizationLinux Viewing System Resource UsageDuring system maintenance, it may be necessary to review CPU and memory usage at any time, and to analyze the system's health needs based on the corresponding information. This article describes several common Linux system Resource View commands.1. Vie
View multi-core CPU commandsMpstat-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 as the top monitor view of the memory valu
3. FreeThe free command is a quick and easy way to get an overview of memory usage, which is obtained from "/proc/meminfo". It provides a snapshot of the total/idle physical memory and system swap area, as well as the used/idle kernel buffers.
$ free -h
4. GNOME System MonitorGNOME system Monitor is a graphical interface application that shows more recent historical information about the utilization of system resources, including
In Linux, use the Command amp; #39; top-I amp; #39; to view how many processes are Running, there may be a memory or I/O bottleneck in the system. use free to check whether the system memory usage is high. use iostat to check whether swap is occupied...
Run the 'top-I 'command to check system resource usage in Linux
" command " Time-executes the command and timings"Format" time [-p] command [arguments ...]DescriptionExecute command line "command [arguments]", when the command line execution finishes printing in standard output, the time statistic results of executing the command line, the statistic result contains the following data:1) Actual time: The elapsed time from the command line execution to the end of the run;2) User CPU time: The user
New notes-view memory usage in linux
There are various software on windows that can perform operations such as "one-click acceleration" and release some memory (although I do not know what to do for the time being, I need to learn it later ). The task manager can also conveniently view the memory usage of various processes, such:
Similarly, there are some metho
1. Top
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.
Description:
PID: process IDUser: process ownerPR: process priority. The smaller the value, the higher the execution priority.Ninice: ValueVirt: Virtual Memory occupied by processesRes: physical memory occupied by
reportAs you can see in the above illustration, in the previous two examples, %idle the value of the CPU 0 is determined to be high.In the next section, we'll discuss how to identify resource-hungry processes, how to get more information about them, and how to take appropriate action.Linux Process ReportWe can use the well-known ps commands to sort the processes by CPU utilization by using the -eo option (
, free can see the use of system memory, PS, top can cooperate with the monitoring system of the process running state, Netstat can monitor network traffic status, and so on, the use of these commands in my previous article has been told a lot, it is not here to explain.In response to this problem, the first step to do is to detect the network, you can ping the site to check the domain name resolution is normal, at the same time, ping server address delay is too large, and so on, in this way, fi
Use ' top-i ' to see how many processes are in Running state, there may be memory or I/O bottlenecks in the system, use free to see the system memory usage, swap is occupied a lot, use Iostat to look at the I/O load situation ... One more way is Ps-ef | Sort-k7, the process is sorted by run time to see which process consumes the most CPU time.Top:Main parametersD: Specifies the interval of the update, in se
Overview:
Use ' top-i ' to see how many processes are in Running state, there may be memory or I/O bottlenecks in the system, use free to see the system memory usage, swap is occupied a lot, use Iostat to look at the I/O load situation ...
One more way is Ps-ef | Sort-k7, the process is sorted by run time to see which process consumes the most CPU time.
TopMain parameters
D: Speci
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: 48up1: 0.06 user, loadaverage: 0.60, 0.48, Tasks: 29 total, 1run
The top command is a common performance analysis tool in Linux. i
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.