<div dir="ltr">Hi Will,<div><br></div><div>Have you tried it with the recent servald update that fixed a few memory leaks?</div><div><br></div><div>As for high load generating malloc() activity in servald, it would need to be activity that touches servald in some way (obvious and direct or otherwise).  It will also be interesting to know if it is in servald or libserval being used by another application.  Are you able to repeat the test with servald not running, and see whether it still happens?</div>
<div><br></div><div>Paul.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 12, 2013 at 11:23 AM, Will Hawkins <span dir="ltr"><<a href="mailto:hawkinsw@opentechinstitute.org" target="_blank">hawkinsw@opentechinstitute.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Using go (yes, that's right!) I was able to create a test program that<br>
opened enough simultaneous HTTP connections to force a crash.<br>
<br>
Thanks to the fact that we were running a serial console that was<br>
logging Pico station console output, we were able to capture the crash<br>
information. I am attaching that here.<br>
<br>
Overall, it looks like the node simply runs out of memory. The first<br>
errors are when malloc()s in servald fail Then, when things get really<br>
bad, there are errors from the wireless driver saying that it cannot<br>
allocate buffer space.<br>
<br>
Obviously the failures from the wireless driver are bad. They are<br>
probably ultimately what causes the node to reboot.<br>
<br>
I wonder, though, about the servald malloc() failures. I'm not sure if<br>
they are pure symptom (i.e, servald just happens to be the application<br>
most commonly allocating memory space when the crash happens and so its<br>
malloc()s fail first), or if it is part of the problem (i.e, servald<br>
causes memory usage to skyrocket under heavy load and *then* these<br>
larger memory problems start to occur).<br>
<br>
In any event, we got some logs, which is a good first step!<br>
<span class="HOEnZb"><font color="#888888"><br>
Will<br>
</font></span><br>_______________________________________________<br>
Commotion-dev mailing list<br>
<a href="mailto:Commotion-dev@lists.chambana.net">Commotion-dev@lists.chambana.net</a><br>
<a href="https://lists.chambana.net/mailman/listinfo/commotion-dev" target="_blank">https://lists.chambana.net/mailman/listinfo/commotion-dev</a><br>
<br></blockquote></div><br></div>