<div class="gmail_quote">On Mon, Feb 23, 2009 at 5:57 PM, Luke Faraone <span dir="ltr">&lt;luke@faraone.cc&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div class="Ih2E3d">On Mon, Feb 23, 2009 at 5:46 PM, Carol Farlow Lerche <span dir="ltr">&lt;<a href="mailto:cafl@msbit.com" target="_blank">cafl@msbit.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">

Spend a few hours in a kindergarten classroom.  It doesn&#39;t work to prevent repeated launching of activities and ultimately a need to reboot.<div><div></div></div></blockquote></div><div><br>Is there anything sugar can do in this regard? <br>

<br>Would this activity starting logic work: <br>* If no activity instances are running, start it.<br>* If an instance has been &quot;started&quot; already but the process has not yet signaled on the dbus that it is &quot;running&quot;, ie drawing windows etc. for the user, switch to that instance<br>

* If an instance has been started and is running, start a new instance. (*or* send a &quot;start new instance&quot; request to the existing instance, which allows us to save the overhead of loading up another &quot;python&quot; process)<br>

* Reap all instances still in the &quot;starting&quot; state for more than X seconds that have not explictly requested this functionality to be disabled nor signaled via the dbus that they are still active</div></div></blockquote>
<div><br></div><div>What about watching system resources and refusing to start a new activity when there isn&#39;t enough RAM available to launch it?  </div><div><br></div><div>It should be pretty straightforward to add a required_memory field to <a href="http://activity.info">activity.info</a> - it would be a simple, approximate high water mark memory usage for a given activity.  The default could be determined by analyzing the basic activities - maybe 20mb would be good?</div>
<div><br></div><div>Just seems like we should be attacking the problem by attacking the problem.</div><div><br></div><div>Cheers,</div><div>Wade</div><div><br></div><div><br></div></div>