Linux view CPU, memory size

Source: Internet
Author: User
Tags memory usage

To view CPU, memory, and hard disk size under Linux:

How to view CPUs

1, cat/proc/cpuinfo or more intuitive to view the model of the CPU command: DMESG |grep-i Xeon

Ways to view memory

2. Cat/proc/meminfo or more intuitive command to view memory: free-m

View hard disk size

3, Df-h

Finally, with the top command, you can also see the CPU and memory usage by pressing "1" directly after entering the top command to see the CPU and memory usage clearly.

------------------------------------------------------------

Linux View graphics Information:

lspci | grep -i vga

Using the NVIDIA GPU, you can:

lspci | grep -i nvidia

Linux view nvidia graphics card information and usage

Nvidia comes with a command-line tool to view video memory usage:

nvidia-smi

Table Header Interpretation:

    • Fan: Show the fans speed, the value between 0到100%, is the computer's expected speed, if the computer is not cooled by the fan or the fan is broken, display is n/A;
    • Temp: The temperature inside the graphics card, the unit is Celsius;
    • Perf: Characterizing the performance state, representing the maximum performance from P0 to P12,p0, and P12 representing the state minimum performance;
    • PWR: energy consumption indication;
    • Bus-id: Related information about the GPU bus;
    • DISP.A: is the display active meaning, indicating whether the GPU is initialized;
    • Memory usage: usage of memory;
    • Volatile Gpu-util: Floating GPU utilization;
    • Compute M: Calculation mode;

The processes below shows the memory usage for each process on each GPU.

If you want to use the output video card periodically, you can use the Watch command to achieve:

10 nvidia-smi

The command-line argument-n is followed by the period of execution of the command, in S.

Linux view CPU, memory size

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.