From: MiG Date: 2004-08-26T23:32:00+09:00 Subject: Re: Ruby interpreter as client-server >You could try a quick test and see how many times you can fork() >in a second.... Should be a lot. Now I'm trying to find the way to get real memory usage. I have written a memory protector that kills a process which use more than max memory and it doesn't work well with this forks because it counts output of ps command: > ps -e -o "vsz,pid,args" 2848 6228 ruby f 2848 6227 ruby f 2848 6226 ruby f 2848 6225 ruby f 2848 6224 ruby f 2848 6223 ruby f 2848 6222 ruby f 2848 6221 ruby f ... It looks like every ruby interpreter needs 2MB, but if I run free, memory usage is almost the same. Have you any idea how to get the real memory usage of each process? Thank you, Jan Molic