Linux find the memory used by a program / process using pmap command

last updated in Categories CentOS, Debian Linux, FreeBSD, Gentoo Linux, Hardware, Howto, Linux, Monitoring, RedHat/Fedora Linux, Tips

You can find the memory used by a program (process) by looking into /proc directory or using standard command such as ps or top. However, you must calculate all memory usage by hand i.e. add Shared Memory + mapped file + total virtual memory size of the process + Resident Set Size + non-swapped physical memory used by process.

So how do you find the memory used by a process or program under Linux? Continue reading “Linux find the memory used by a program / process using pmap command”

How to: Linux Kill and Logout Users

last updated in Categories Howto, Linux, Monitoring, Sys admin, Tips

Yet another newbie question that suggests people love to kill and show their power to rest of the world 😉

There is a package called procps. It includes various useful (nifty) utilities. One of such utility is skill which is responsible to send a signal to users and process such as:

  • Halt user terminal
  • Kill user and logout