From: Chiyuan Zhang Date: 2008-04-16T22:17:46+09:00 Subject: Re: ruby memory allocation ------=_Part_8855_32033888.1208351866833 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Here's an useful article by _why: http://whytheluckystiff.net/articles/theFullyUpturnedBin.html Maybe you can modify the parameters in gc.c to achieve your goals. On Wed, Apr 16, 2008 at 9:06 PM, Emanuele Ricci wrote: > I just discovered that ruby allocates memory in 8Mb chunks. > Forgive my ignorance. > Is there a way to change this behaviour? Since my app runs in an > environment with very strict memory constraints, a memory spike of 8Mb > can be lethal... > I would change it to a lower figure. > It doesn't matter if I have to patch my ruby source files in order to > achieve this goal. > Any clues? > > Thank you in advance, > Emanuele Ricci. > -- > Posted via http://www.ruby-forum.com/. > > -- pluskid ------=_Part_8855_32033888.1208351866833--