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: how to verify if a service is running in Linux
Example: service squid status; service httpd stop; service sendmail start
[show me the details]
coolcommand: vxprint - how to display all the available information in Veritas Volume Manager
Example: vxprint -ht
[show me the details]
coolcommand: how to gather processor information on an attached IBM P5 server using the HMC
Example: lshwres -m p570 --header -Flpar_name, lpar_id, curr_shared_proc_pool_id, curr_proc_mode...
[show me the details]
coolcommand: hinv - how to get a hardware inventory on an SGI IRIX server
Example: hinv
[show me the details]
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts