[Vm-dev] idle VM runs at constant 3-5% CPU load
Andreas Raab
Andreas.Raab at gmx.de
Tue Jun 5 05:39:24 UTC 2012
-------- Original-Nachricht --------
> Quoting Igor Stasenko <siguctua at gmail.com>:
>
> >
> > i just wonder, what takes so much CPU time, even if it completely
> idle...
> >
> >
> > 4831- NBCog 4.8
> > 51519- NBCog 3.5
> >
> > if i kill a UI process, the load goes down to 2.5-3 % ...
> > still too much.
>
> Well, there are both image and VM issues here. I'll assume you're
> running Pharo on a Mac. Running Cuis on a Mac, when idle, uses 2.6 -
> 2.7%. So, the UI process can be optimized to the point where it takes
> almost zero CPU.
>
> But there are VM platform code issues too. Doing the same on a Windows
> 7 Atom netbook, Cuis uses 0% (zero!) CPU.
The reason for which is that ioRelinquishProcessor() is implemented in precisely the fashion Eliot described it in his earlier message, by calling a blocking function which wakes up when there is some activity (either UI or other such as sockets).
Cheers,
- Andreas
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
More information about the Vm-dev
mailing list