Telling the difference between threads and processes

Terje Eggestad (terje.eggestad@scali.no)
08 Aug 2001 13:27:23 +0200


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???

-- 
_________________________________________________________________________

Terje Eggestad terje.eggestad@scali.no 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 _________________________________________________________________________

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/