From: Todd Benson Date: 2007-08-07T02:34:25+09:00 Subject: Re: How to reclaim memory without GC.start [Using up massive amounts of RAM] On 8/6/07, Ari Brown wrote: > > 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. OK. I might be using up my credibility here, but ... /memory/intelligence/ > > You see? Its not malicious! That's not my intention either. The only thing that comes to mind is "shooting themselves in the foot"? Point being: yes, it is useful to be destructive in order to be productive. But, do you really have to? Todd