ex: / proc / 22062 / statm ----> 83561 4533 3331 58 0 1042 0 系统监视器----> 6.4 MiB 我不知道系统监视器如何获得6.4 MiB。 请告诉我计算进程实际内存使用情况的正确方法。i calculate system memory usage by /proc/meminfo (MemFree + Buffers + Cached) / MemTotal the result is as same as I saw in System Monitor. But how to calculate a process's memory? e.x: /proc/22062/statm ----> 83561 4533 3331 58 0 1042 0 System Monitor ----> 6.4 MiB I wonder how System Monitor get the 6.4 MiB. Please tell me a right way to calculate process's real memory usage.推荐答案 / proc /< pid> / statm (rss - shared)* 4/105 /proc/<pid>/statm (rss - shared)*4/1024 这篇关于如何计算进程的内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-23 04:34