From: KOSAKI Motohiro Date: 2010-12-23T23:03:39+09:00 Subject: [ruby-core:33838] Re: PATCH: REE fast-thread.patch: stack_free() not called in rb_thread_die(). 2010/12/23 KOSAKI Motohiro : >> Similar technique might be relevant in MRI 1.9 if fiber/continuation stacks >> are also not freed until GC. >> >> On 12/22/10 11:32 PM, Kurt Stephens wrote: >>> >>> http://code.google.com/p/rubyenterpriseedition/issues/detail?id=57 >>> >>> Helps reduce memory usage for short-lived Threads that might not be GC >>> fast enough. >>> >>> Might be relevant to other MRI builds with the fast-thread.patch. > > FWIW, Recent linux glibc malloc has some optimization for it. Can you try > recent glibc + 64bit linux combination? And, MALLOC_MMAP_THRESHOLD_ might help you even if you are using old distribusions. I guess.