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

tim Rowledge tim at rowledge.org
Wed Sep 11 21:11:00 UTC 2019


Load OSProcess. Try out the image spawning/forking tools. Works really well on a Raspberry Pi so I suspect it would be even faster on bigger machines.

> On 2019-09-11, at 1:59 PM, Phil B <pbpublist at gmail.com> wrote:
> 
> 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
> 
> 
> 
> 


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: RLBM: Ruin Logic Board Multiple




More information about the Squeak-dev mailing list