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

gettimothy gettimothy at zoho.com
Wed Sep 11 21:22:29 UTC 2019


Tim



Thanks you very much. 



I have OSProcess installed in my image for the project I have in mind and I will do just that.



cheers.



t










---- On Wed, 11 Sep 2019 17:11:00 -0400 tim Rowledge <tim at rowledge.org> wrote ----


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 <mailto: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 <mailto: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; mailto:tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: RLBM: Ruin Logic Board Multiple
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190911/d0329f6c/attachment-0001.html>


More information about the Squeak-dev mailing list