Thread affinity under Parallels Desktop

Discussion in 'Parallels Desktop on a Mac with Apple silicon' started by NicholasF4, Aug 10, 2025.

  1. NicholasF4

    NicholasF4 Bit poster

    Messages:
    1
    Hello,
    I am attempting to optimize software for Apple silicon (M1) and OS X makes it particularly challenging by prohibiting core pinning/disabling/fixing the frequency/etc. Without the ability to set thread affinity, OS X ends up using a round robin mechanism which complicates performance measurement quite considerably. Even something like flushing the CPU/BTB caches is complicated as they must be flushed on all cores which slows down performance measuring to the point where it is painful to iterate on changes rapidly.

    I attempted to set thread affinity under Linux using a docker image and sadly it seems that it doesn't work as well.

    I was wondering if guest VMs under Parallel Desktop are able to pin threads to specific cores (efficiency or otherwise) under Linux or Windows? Has anyone tried this and had any luck?

    Thanks
     
    MatthewR20 likes this.

Share This Page