<div dir="ltr">Hi Sven,<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 23, 2013 at 5:52 AM, Sven Van Caekenberghe <span dir="ltr">&lt;<a href="mailto:sven@stfx.eu" target="_blank">sven@stfx.eu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 23 Oct 2013, at 14:22, Igor Stasenko &lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Yeah, i was also exploring, why even if i do not touch image i got like 3-5% CPU load.<br>
&gt; What i found that it is in VM. Because i basicaly removed everything in image,<br>
&gt; and just left idle process, and still had such loads.<br>
<br>
</div>Igor, some time ago you told me which thread inside the VM was doing this, but maybe you forgot ;-)<br></blockquote><div><br></div><div>two different things.  One is the idle process, in the image.  This is heavy-weight.  It calls relinquishProcessorForMicroseconds: which does all sorts of things, including system calls to poll for i/o.  The other is the poll thread in the Cog and Stack VMs.  This simply sleeps for a millisecond, wakes up and sets a variable, and then goes back to sleep.  It is relatively lightweight.</div>
<div> </div><div>I suspect the 3-5% is due to the former, not the latter.  One way to test would be to compare the interpreter VM against the Stack and Cog VMs and see how much time the interpreter VM takes.  If the interpreter VM also takes a lot of time at idle, then the poll thread is not the culprit.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im HOEnZb"><br>
&gt; On 23 October 2013 13:52, Sven Van Caekenberghe &lt;<a href="mailto:sven@stfx.eu">sven@stfx.eu</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; This morning I upgraded my MacBook Air to Mac OS X 10.9 Mavericks. The good new is that my trusty VM [1] is still working OK !<br>
&gt;<br>
&gt; However, something seems to have changed regarding full screen mode: it more or less works but there are two black bands and the window title remains visible, it is as if it did not expand enough:<br>
&gt;<br>
</div><div class="im HOEnZb">&gt; &lt;Screen Shot 2013-10-23 at 13.40.56.png&gt;<br>
&gt;<br>
</div><div class="im HOEnZb">&gt; Which is a pity: I rely on this a lot to get more screen space on my 13 inch screen and to work distraction free.<br>
&gt;<br>
&gt; I guess we’ll have to wait for our hero Esteban to have a look.<br>
&gt;<br>
&gt; Also new is the focus on energy management and efficiency. Sadly Pharo is flagged as using to much (look at the menu under the battery icon top right and the energy tab in the activity monitor):<br>
&gt;<br>
</div><div class="im HOEnZb">&gt; &lt;Screen Shot 2013-10-23 at 13.49.53.png&gt;<br>
&gt;<br>
</div><div class="HOEnZb"><div class="h5">&gt; This is probably related to the busy thread running/polling every ms or so inside the VM.<br>
&gt;<br>
&gt; I could turn these into issues.<br>
&gt;<br>
&gt; Sven<br>
&gt;<br>
&gt; [1]<br>
&gt;<br>
&gt; Virtual Machine<br>
&gt; ---------------<br>
&gt; /Users/sven/Develop/Smalltalk/Pharo.app/Contents/MacOS/Pharo<br>
&gt; NBCoInterpreter NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013<br>
&gt; NBCogit NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013<br>
&gt; git://<a href="http://gitorious.org/cogvm/blessed.git" target="_blank">gitorious.org/cogvm/blessed.git</a> Commit: 412abef33cbed05cf1d75329e451d71c0c6aa5a7 Date: 2013-03-13 17:48:50 +0100 By: Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>&gt; Jenkins build #14535<br>

&gt;<br>
&gt; Mac Cocoa Cog 5.8b12 21-Sep-10 &gt;1B0534FA-246C-47C5-AB29-7A76C81CCDCB&lt;<br>
&gt; VMMaker versionString git://<a href="http://gitorious.org/cogvm/blessed.git" target="_blank">gitorious.org/cogvm/blessed.git</a> Commit: 412abef33cbed05cf1d75329e451d71c0c6aa5a7 Date: 2013-03-13 17:48:50 +0100 By: Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>&gt; Jenkins build #14535<br>

&gt; NBCoInterpreter NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013<br>
&gt; NBCogit NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Best regards,<br>
&gt; Igor Stasenko.<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>