ipcs - calculate the memory used by a user hiding in shared memory
Description
Traditional UNIX tools like topas, top or nmon won't show the memory consumed by a process if the memory is in a shared segment, to calculate the memory consumed in MB in shared memory by a user:
# ipcs -m -a | awk '/user/ {i+=$10} END { print i/1024/1024 }'
Example
ipcs -m -a | awk '/db2q510/ {i+=$10} END { print i/1024/1024 }'
coolcommand: runmqchl - start a channel in Websphere MQ
Example: runmqchl -m MQBOBOQ1 -c MQP2.MQBOBOQ1
[show me the details]
coolcommand: mppUtil - how to use the RDAC (MPP) utility to display RDAC driver internal information for a virtual target
Example: mppUtil -g 0
[show me the details]
coolcommand: whence - how to find a command's full path in ksh
Example: whence -p mycmd; whence -v mycmd
[show me the details]
coolcommand: ldd - how to list dynamic dependencies of executable files or shared objects in Sun Solaris
Example: ldd /path/filename
[show me the details]
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts