<div>Thanks you Chris,</div><div>good to know that there is a real world magma application with 24 GB of size.</div><div><br></div><div>See you,</div><div>Facu</div><br><div class="gmail_quote">On Fri, Nov 26, 2010 at 3:43 PM, Chris Muller <span dir="ltr">&lt;<a href="mailto:asqueaker@gmail.com">asqueaker@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It&#39;s a proprietary data-aggregation tool that permutes every<br>
combination of data-attributes of an input-source at multiple levels.<br>
Even small inputs into the system can lead to very large output<br>
graphs.  It&#39;s a signature test-application for Magma; building and<br>
accessing a fairly large and complex data-structure and something I<br>
think would be very difficult to do, at least abstractly, with an<br>
RDBMS..<br>
<div><div></div><div class="h5"><br>
On Thu, Nov 25, 2010 at 6:56 AM, Facundo Vozzi &lt;<a href="mailto:facundov79@gmail.com">facundov79@gmail.com</a>&gt; wrote:<br>
&gt; Hi Chris,<br>
&gt; what kind of application is that? At work I&#39;m working on a ten years old<br>
&gt; production system with Oracle DBMS and it&#39;s 1 GB of size.<br>
&gt;<br>
&gt; Thanks for share your analysis again,<br>
&gt; Facu<br>
&gt; On Wed, Nov 24, 2010 at 2:38 PM, Chris Muller &lt;<a href="mailto:ma.chris.m@gmail.com">ma.chris.m@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; There has been interest in Magma&#39;s read and query performance lately,<br>
&gt;&gt; so I thought I would share results of a recent benchmark test.<br>
&gt;&gt;<br>
&gt;&gt; It&#39;s an actual application which does very heavy reading and writing<br>
&gt;&gt; to a Magma repository.  This test was 24GB of repository work, over<br>
&gt;&gt; two days.  My goal was to determine, once the persistent model becomes<br>
&gt;&gt; many times the size of RAM and HD access appeared to become the<br>
&gt;&gt; limiting factor:<br>
&gt;&gt;<br>
&gt;&gt;  - how fast is Magma, in terms of &quot;objects per second&quot; and in<br>
&gt;&gt; &quot;kilobytes per second&quot;?<br>
&gt;&gt;  - how fast is this relative to the speed when the repository was empty?<br>
&gt;&gt;<br>
&gt;&gt; Conclusion:<br>
&gt;&gt;<br>
&gt;&gt;  - Magma started at 4K objects per second (empty repository), 282K per<br>
&gt;&gt; second.<br>
&gt;&gt;  - Finished with 2.3K objects per second (6GB repository), 750K per<br>
&gt;&gt; second.<br>
&gt;&gt;  - Memory consumption by the image never exceeded 300MB.<br>
&gt;&gt;<br>
&gt;&gt; It is important to note, these times are from the client MagmaSession<br>
&gt;&gt; point-of-view, including the full server roundtrip plus<br>
&gt;&gt; materialization.  Also, as can be seen from the attached data, there<br>
&gt;&gt; were many requests which only brought back one or two objects which,<br>
&gt;&gt; while dramatically lowering the overall reported throughput, is<br>
&gt;&gt; actually a real-world scenario for applications.<br>
&gt;&gt;<br>
&gt;&gt; Verbose description:<br>
&gt;&gt;<br>
&gt;&gt; When the test first started the repository was tiny, and there were<br>
&gt;&gt; only ~4K server requests during a 5-minute monitored period.  The<br>
&gt;&gt; total number of objects read across all ~4K requests was ~17M for an<br>
&gt;&gt; average throughput of 4K objects per second (ops).  As the model grew<br>
&gt;&gt; in size and complexity, more and more objects during the 5-minute<br>
&gt;&gt; monitored intervals were required to perform application-posting of<br>
&gt;&gt; the same number of input records; doubling to ~8K server requests<br>
&gt;&gt; during a 5-minute period, however only a few more objects brought back<br>
&gt;&gt; (total 21M), for an average of 2500 ops.  32 hours after that, the<br>
&gt;&gt; rate of reads dropped to about 2300 ops.  This is due to two factors:<br>
&gt;&gt;<br>
&gt;&gt;  - the objects were larger (e.g., more pointers to other objects)<br>
&gt;&gt;  - they were less clustered (having been replaced with objects which<br>
&gt;&gt; could not be co-located with the original object)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; The fact that objects got bigger (e.g., more pointers to other<br>
&gt;&gt; objects) is corroborated by another stat, &quot;the number of *bytes* per<br>
&gt;&gt; second&quot; read off the HD in order to access those objects.  Initially,<br>
&gt;&gt; when the test first started, there were about 4K *requests* for<br>
&gt;&gt; objects in one of the first five-minute periods, which were read at a<br>
&gt;&gt; rate of 282K per second.  24 hours later, there were only 2 times as<br>
&gt;&gt; many requests for objects, but were read-and-materialized at a rate of<br>
&gt;&gt; 750K bytes / second.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;  - Chris<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Magma mailing list<br>
&gt;&gt; <a href="mailto:Magma@lists.squeakfoundation.org">Magma@lists.squeakfoundation.org</a><br>
&gt;&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/magma" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/magma</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Magma mailing list<br>
&gt; <a href="mailto:Magma@lists.squeakfoundation.org">Magma@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/magma" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/magma</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>