Hi, Michael<br><br>You're right. Why didn't I think of that. :)<br><br>I also got instructions from OpenSER mailing list to increase the size of the hash table by modifying the source of the usrloc, since I'm using so many users.
<br><br>Thanks for your comments. I'll report back what were the results with these modifications.<br><br>- Teemu<br><br><div><span class="gmail_quote">2006/3/10, Michal Matyska &lt;<a href="mailto:michal@iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
michal@iptel.org</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This seems to me quite understandable, the time is consumed while locating the<br>usrloc entry. Try to change the &quot;SEQUENTIAL&quot; order to &quot;RANDOM&quot; in the<br>SIPP injection file, I suppose you'd then get what you expected, equal CPU
<br>usage during all the time the test runs. If not, please post it again.<br><br>Michal<br><br><br>On Fri, Mar 10, 2006 at 09:57:36AM +0200, Teemu Harju wrote:<br>&gt; Hi!<br>&gt;<br>&gt; I posted about this same subject to openser mailing list already, but since
<br>&gt; I haven't had response from there I'll try here. I guess the usrloc module<br>&gt; and the core functionality is quite the same with ser and openser.<br>&gt;<br>&gt; I've been running some performance tests on my OpenSER box and while
<br>&gt; registering large number of users I faced some very strange problems. At<br>&gt; least they seem strange to me, but I hope someone on this list would be able<br>&gt; to shed some light on this.<br>&gt;<br>&gt; So, I use Openser 
1.0.1 and I load test it using SIPp. I've done tests<br>&gt; creating about 1000 registrations per second registering 300k-450k different<br>&gt; users. Register rate is constat and for each register different user is<br>

&gt; used. What is strange to me that just about when 300k users have registered<br>&gt; the CPU of the PC running the proxy hits 100% usage and messages start<br>&gt; dropping. I made a nice image to illustrate my problem using Excel. Check it
<br>&gt; at <a href="http://www.teemuharju.net/wp-images/register_300k_users_at_1000rps.png" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.teemuharju.net/wp-images/register_300k_users_at_1000rps.png
</a>.<br>&gt;<br>&gt; On this test I registered 300k different users at 1000 RPS and after
<br>&gt; registering those users the registering starts again from the beginning. As<br>&gt; you can see from it the CPU usage rises constantly and drops immediately<br>&gt; after I've registered 300k users and the registering starts again from the
<br>&gt; start. So then each user is being registered all over again, but still the<br>&gt; CPU load grows. Does anyone have explanation for this? Why does the CPU<br>&gt; usage grow based on the number of users registered? And why does it drop for
<br>&gt; a while when registering starts all over again? I've tried different usrloc<br>&gt; modes, but there seems to be no difference. This one was done with having<br>&gt; usrloc only in the memory. Shouldn't the CPU usage at constant register
<br>&gt; rate, be somewhat constant also? Has anyone else noticed the same problem?<br>&gt; Could this be somehow explained or do I have something wrong with my system?<br>&gt;<br>&gt; Regards,<br>&gt;<br>&gt; Teemu<br>&gt;
<br>&gt; --<br>&gt; Teemu Harju<br>&gt; <a href="http://www.teemuharju.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.teemuharju.net</a><br><br>&gt; _______________________________________________
<br>&gt; Serusers mailing list<br>&gt; <a href="mailto:serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
serusers@lists.iptel.org</a><br>&gt; <a href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.iptel.org/mailman/listinfo/serusers</a><br><br>_______________________________________________
<br>Serusers mailing list<br>
<a href="mailto:serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">serusers@lists.iptel.org</a><br><a href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.iptel.org/mailman/listinfo/serusers</a><br></blockquote></div><br><br clear="all"><br>-- 
<br>Teemu Harju<br><a href="http://www.teemuharju.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.teemuharju.net</a>