[squeak-dev] Processor affinity for VM's?

Phil B pbpublist at gmail.com
Wed Sep 11 20:59:33 UTC 2019


The difference is that the JVM inherently supports multi-core at via
threads in a single VM instance while the Squeak/Cog VM's don't as they
only support 'green' threads on a single logical core.  So for Cog you'd
use the core affinity tools provided at the OS level to assign affinity at
the instance level.  That said, I'd suggest measuring performance with and
without processor affinity set as you might find it doesn't provide enough
benefit to be worth the hassle depending on the load characteristics.

On Wed, Sep 11, 2019 at 4:27 PM gettimothy via Squeak-dev <
squeak-dev at lists.squeakfoundation.org> wrote:

> Hi All,
>
> I have a large processing task to do that I would like to divvy up among
> separate copies of an image running on their own VM instance running on a
> virtual core.
>
> Processor is a Ryzen7 with 16 virtual cores.
> I figure 1 for me and 15 for separate Cog VM's
>
> I remember from decades that the JVM had a processor affinity switch.
>
>
> Is there such a thing in Cog?
>
> Thanks in advance.
>
> tty
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190911/ead2955b/attachment.html>


More information about the Squeak-dev mailing list