On 13 October 2013 16:46, Valérian Saliou <[email protected]> wrote: > On Oct 11, 2013, at 1:13 PM, Matthew Wild <[email protected]> wrote: >> > Our server implementation (courtesy of Marco Cirillo aka Maranda) is also > working well in production environment, with more than 300 unique users > simultaneously using the module (and much more over a larger timespan). > >> How is memory usage? If I recall you were storing each user's archive >> entirely in memory. > > Memory usage is pretty good. We don't see any difference (just a tiny one). > We also configured the Lua GC to be triggered more often: AFAIK it's now > being triggered when memory is multiplied by 1.25 (instead of the default x2 > coming from Prosody, which was not efficient enough and caused allocated > memory, which was not used at most, to grow rapidly).
More frequent GC cycles cause higher latency and higher CPU usage. In my experience the optimal GC settings vary between different deployments, according to the modules loaded, traffic patterns, and the goal of the system (low resource usage or low latency). Anyway, this isn't related to MAM so much :) >> Having had time to think about it now, and considering the general >> consensus forming in this thread, I'm not sure deletion is going to >> get in. A new XEP perhaps if you want to attempt it :) > > All right. A new XEP might be a better option yes. Excellent, thanks for your understanding. Regards, Matthew
