Seeing as Linux gives each thread a PID, top and ps like to tell me that there
are lots of processes out there using lots of memory and it doesn't add up to
what's actually being used.  Generally I can figure out which processes are
forked and thus actual processes and those which are cloned and thus are
threads.  The difference that I'm interested here is the memory usage.  I'd
like to be able to just see how much memory the process is using, rather than
each thread.  Does anyone know of a way of telling the difference besides just
known because you wrote the application?  I'm thinking of some nifty flags in
/proc somewhere.

-- 
Jon Schewe | http://mtu.net/~jpschewe | jpschewe at mtu.net
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39