dotnwat / lua-rados

RADOS bindings for Lua
http://noahdesu.github.com/lua-rados/
7 stars 7 forks source link

aggressively clean-up bufferlist heap data #17

Closed dotnwat closed 11 years ago

dotnwat commented 11 years ago

Lua doesn't know how large the bufferlist heap data is, so if you create a ton of bufferlists with lots of data then Lua will get OOM killed. The first thing we should do is explicitly delete the bufferlists when they are not needed in the success case. This doesn't help for when there is an error and a longjmp, but it should help the common case. For the error we may be able to tune the GC step size.