Re: [SLUG] more precise measurements

From: Scotty Logan (scotty@catbert.net)
Date: Wed Jul 22 2009 - 20:15:03 EDT


On Jul 22, 2009, at 4:39 PM, Eben King wrote:
> Is there a way to get more precise information about how much RAM/
> swap a process uses? For instance, this line from top:
>
> PID USER NI VIRT RES SHR WCHAN S %CPU %MEM TIME COMMAND
> 19252 eben 0 1097m 529m 19m - S 15 13.4 409:18
> firefox
>
> that shows the important data (VIRTual, RESident, and SHaRed) has
> 2-4 digit resolution. 4's good, 2's not. Straight page count would
> be best, of course. Never mind the width; this isn't for (direct)
> human consumption anyway.

look in /proc/PID/stat and /proc/PID/statm

man proc for details.

   Scotty

-- 
Never take life seriously - Nobody gets out alive anyway

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:41:23 EDT