From: Robert Klemme Date: 2007-08-06T17:36:46+09:00 Subject: Re: How to reclaim memory without GC.start [Using up massive amounts of RAM] 2007/8/6, Ari Brown : > 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? I'm not sure what you're after. Consuming memory is easy. For example: a=[];a << " "*1024 while true Or, a bit more involved Chain = Struct.new :data, :next c = nil c = Chain.new("."*1024, c) while true Kind regards robert