On Oct 13, 2013, at 5:55 PM, Matthew Wild <[email protected]> wrote:

> 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 :)
> 

Yep, this is what we wanted to avoid while making the GC more aggressive.

It turned out to work very well on Jappix.com (Debian 7 32bits w/ 512MB RAM, 
handling up to 800 simultaneous XMPP users connected w/ about 180MB daemon RAM 
usage).
No latency noticed, mean CPU usage increased 4% from 7% to 11%. Pretty good 
results on our side :)

>>> 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


Ping me once you reviewed my changes and added yours, and we'll be ready to 
submit XEP update :)

-- 

Valérian Saliou

Jappix & FrenchTouch Web Agency founder.
Waaave Network co-founder.
Uno IM product lead.

More about me on my personal page.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to