sh BrickstorOS过程信息

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh BrickstorOS过程信息相关的知识,希望对你有一定的参考价值。

#!/bin/sh
# This expects intput to be the name of process in memory, for example,
# assuming name of process as seen by `ps` is foo, first, and only
# argument should be foo.

if [ -z $1 ] ; then exit 1 ; fi

for proc in `pgrep $@ | sort -n`; do
  /usr/bin/pmap -x "${proc}" \
  | awk -v p=$proc '
    /total/ {printf("pid: %d\ pages allocated: %dK actual shared: %dK\n", p,$3,$4)}'
done

以上是关于sh BrickstorOS过程信息的主要内容,如果未能解决你的问题,请参考以下文章