Linux OS: /proc/[pid]/smaps vs /proc/[pid]/statm

后端 未结 2 1967
面向向阳花
面向向阳花 2021-02-08 15:59

I would like calculate the memory usage for single process. So after a little bit of research I came across over smaps and statm.

First of all what is smaps and statm? W

2条回答
  •  长情又很酷
    2021-02-08 16:23

    I would suggest looking through 'top' command line source code. It gets all its info from /proc as well so jt may be a good reference.

提交回复
热议问题