From: ara.t.howard@... Date: 2006-08-27T23:35:10+09:00 Subject: Re: [ANN] Mongrel 0.3.13.4 Pre-Release -- Ruby's LEAK Fixed (Death To Mutex!) On Sun, 27 Aug 2006, Daniel Martin wrote: > ara.t.howard@noaa.gov writes: > >> in any case a careful script which allocated memory in a thread, >> waits for all threads to finish allocation, checks memory, and then >> kills all threads before checking again shows some suprising results >> which you should read carefully: > > There's a problem with how this script measures its memory usage - it > measures %MEM, which is proportional to RSS. However, RSS is just how > much of the program's memory is *resident*; i.e. not swapped out. > > To look at how much total memory is used, the variable you want is > VSZ, which isn't available in a "ps v" but is in a "ps u". I modified > your script to look at the %MEM, VSZ, and RSS numbers from "ps u" and > also to run GC.start a variable number of times. good catch! i'm tweaking my script now.... -a -- to foster inner awareness, introspection, and reasoning is more efficient than meditation and prayer. - h.h. the 14th dalai lama