Telling the difference between threads and processes
It started when I got annoyed with gtop's report on resident sizes and that the sum of resident sizes can be twice that of physical mem.
Turns out that gtop adds the RS of threads and it should be a simple fix to gtop.
The trouble is that I can't see a proof way from /proc/<pids> to figure out if the process was clone()'ed with CLONE_VM or not. Is there???
Signature · 10 lines
_________________________________________________________________________ Terje Eggestad [email protected] Scali Scalable Linux Systems http://www.scali.com Olaf Helsets Vei 6 tel: +47 22 62 89 61 (OFFICE) P.O.Box 70 Bogerud +47 975 31 574 (MOBILE) N-0621 Oslo fax: +47 22 62 89 51 NORWAY _________________________________________________________________________