I figured out that it's difficult to find out from /proc which processes that share VM (created with clone(CLONE_VM)). made a patch that adds in /proc//status a VmClones field that tells how many proc that uses the same VM (mm_struct). if there are clones I add another field VmFirstClone with the pid of clone with the lowest pid. Needed for things like gtop that adds mem usage of groups of proc, or else they add up the usage of SIZE and RSS of threads. The patch need to be applied to linux/fs/proc/array.c NB: developed on 2.4.3 TJ -- _________________________________________________________________________ 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 _________________________________________________________________________