A way to determine a process's “real” memory usage, i.e. private dirty RSS?

后端 未结 10 1706
我在风中等你
我在风中等你 2020-11-29 15:15

Tools like \'ps\' and \'top\' report various kinds of memory usages, such as the VM size and the Resident Set Size. However, none of those are the \"real\" memory usage:

10条回答
  •  情书的邮戳
    2020-11-29 15:58

    For a question that mentioned Freebsd, surprised no one wrote this yet :

    If you want a linux style /proc/PROCESSID/status output, please do the following :

    mount -t linprocfs none /proc
    cat /proc/PROCESSID/status
    

    Atleast in FreeBSD 7.0, the mounting was not done by default ( 7.0 is a much older release,but for something this basic,the answer was hidden in a mailing list!)

提交回复
热议问题