From: Mauricio Fernandez Date: 2006-08-18T04:13:01+09:00 Subject: Re: Ruby, memory and speed On Thu, Aug 17, 2006 at 10:54:04PM +0900, Guillaume Marcais wrote: [...] > When the script start, it processes the files at a speed of 10K/s or > so. Not lightening fast, but will get the job done. As time goes on, > the speed drops down to 100 bytes/s or less, while still taking 100% > CPU time. Unbearable. The machine it is running on is pretty good: > 4xAMD Opteron 64bit, 32G memory, local scsi raided drive. > > Does the performance of Ruby collapse past a certain memory usage? Like > the GC kicks in all the time. > > Any clue on how to speed this up? Any help appreciated. [...] Have you tried to increment GC_MALLOC_LIMIT in gc.c? -- Mauricio Fernandez - http://eigenclass.org - singular Ruby