How to view the memory and swap usage of each process through the proc directory

Source: Internet
Author: User

Can be viewed according to/proc/pid/smap, the value of each of the following contents of the file, add, you can
RSS: Physical memory (can also be seen from PS Axu)
Swap: Virtual Memory

Cat/proc/self/smaps
size:44 KB Virtual Memory size
Rss:28 KB actual use of physical memory size
Pss:28 KB
shared_clean:0 KB page is changed, then is dirty, otherwise is clean, page reference count >1, is shared, otherwise private
shared_dirty:0 KB
Private_clean:28 KB
private_dirty:0 KB
Referenced:28 KB
anonymous:0 KB
anonhugepages:0 KB
swap:0 KB page size in swap area
Kernelpagesize:4 KB Operating System one page size
Mmupagesize:4 KB Architecture MMU one page size
locked:0 KB


How to view the memory and swap usage of each process through the proc directory

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.