What I really want is a patch that will allow me to use 40 gig of FFI allocations on a server that contains 80 Gig of Ram. If you know how to accomplish this then I may be able to sponsor part of the work depending on the cost. In this instance once we build our internal models that could use the BIG ram I can lock them into RAM and just keep re-using them. The part we need to GC is much smaller and can generally fit under the 2 gig limit.
On 12/10/2014 2:58 PM, Yichun Zhang (agentzh) wrote:
Hello! On Wed, Dec 10, 2014 at 9:33 AM, Joe Ellsworth wrote:function gc_check_collect_if_needed(max_mem_meg) if max_mem = nil max_mem = 1200 end local meg_used = collectgarbage("count") / 1024 if meg_used > 1500 then local beg_time = curr_sec() collectgarbage()My colleague Shuxin Yang has been working on a patch that can make LuaJIT use the full 2GB memory space on Linux x86_64 (and possibly a few other x86_64 operating systems). We're still polishing things up. Most of the developement happens here: https://github.com/cloudflare/luajit-mm Already usable to some extend. Eventually we can further make use of the full 4GB memory once we (or Mike Pall) remove the pointer sign extension limitation from LuaJIT. But now 2GB is already much better than 1GB already and is a good start ;) Regards, -agentzh