From: Roger Pack Date: 2008-08-22T03:22:19+09:00 Subject: Re: Ruby GC > Ruby 1.8.6 and 1.9 do not have compacting collectors, so the memory > space gets increasingly more segmented. For the record, MRI 1.9 sorts its 'free' objects in ascending order, thus tending to "fill" memory slots that are close together. Since the GC is fairly aggressive [it by default runs pretty frequently--a mixed blessing] it therefore avoids some fragmentation. There also was one report of a fellow who, on a long-running Ruby app, experienced fragmentation due to the fact that by default ruby uses malloc. Malloc itself causes some fragmentation so he switched his to ptmalloc3 [1]. Ruby Enterprise Edition uses tcmalloc with probably similar [possibly better] results. -=R -- Posted via http://www.ruby-forum.com/.