计算Linux某一进程所占用内存

cat /proc/<pid>/statm |awk '{printf "%dm\n",$1/1024}'  

posted @ 2010-09-10 14:32  sunss  阅读(346)  评论(0编辑  收藏  举报