From: Ari Brown Date: 2007-08-07T00:53:38+09:00 Subject: Re: How to reclaim memory without GC.start [Using up massive amounts of RAM] On Aug 6, 2007, at 11:22 AM, Todd Benson wrote: > On 8/5/07, Ari Brown wrote: >> Finally! I've been waiting for someone to resurrect this thread. >> >> Ok. I've decided that if a program consumes ALL of a computer's >> available memory (free, inactive), then GC.start is run, it will be >> able to free all that RAM. >> >> I have done several scientific tests with this on World of Warcraft >> (heh. work on WoW) and image rendering. >> >> So what's the best way to consume all of a computer's RAM? I've been >> toying with the idea of massive variable generation, but i think that >> might be a bit difficult. >> >> So what do you all think? > > Why oh why are you asking for this, Ari? This can be of great use for computers with low memory - You run this script, it uses up all available memory, and then it exits. Guess what happens then? GC clears out all of the RAM the ruby script was using. And since it was using up all available RAM, other programs can then run better and faster. You see? Its not malicious! -------------------------------------------------------| ~ Ari crap my sig won't fit