在嵌入式系统中,内存非常宝贵,监控内存情况是必做工作之一。
- proc @ kernel.org;
- proc @ wikipedia;
/proc/meminfo
父进程
ps -ef|grep superd |grep -v grep | awk '{print $1}'
cat /proc/32036/status | grep PPid | awk '{print $2}'
- How to get parent PID of a given process in GNU/Linux from command line?
/proc/$PID>/statm
- statm
Process memory status information
The statm file contains more detailed information about the process
memory usage. Its seven fields are explained in Table statm.
网友评论