# affinity control os paraview-osmesa-mpi on cluster with SLURM

**URL:** https://discourse.paraview.org/t/affinity-control-os-paraview-osmesa-mpi-on-cluster-with-slurm/477
**Category:** ParaView Support
**Created:** [August 26, 2018, 4:51pm UTC](https://discourse.paraview.org/t/affinity-control-os-paraview-osmesa-mpi-on-cluster-with-slurm/477 "2018-08-26T16:51:53Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![chengdi123000](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/e9a140/32.png) [@chengdi123000](https://discourse.paraview.org/u/chengdi123000)
#### Post date: [August 28, 2018, 3:32pm UTC](https://discourse.paraview.org/t/affinity-control-os-paraview-osmesa-mpi-on-cluster-with-slurm/477/3 "2018-08-28T15:32:12Z")

</div>

- about affinity setting

I found a TACC’s script:

> <https://github.com/TACC/vis-workloads/blob/master/scripts/llvmpipe>

the setting is  
`KNOB_MAX_WORKER_THREADS=$(($NUMBER_CORES_IN_NODE / $TASKS_PER_NODE))`

- about performance  
I noticed intel’s benchmark in the slides: [https://www.intel.com/content/dam/www/public/us/en/documents/presentation/paraview-waspray-openswr.pdf](https://www.intel.com/content/dam/www/public/us/en/documents/presentation/paraview-waspray-openswr.pdf)

It shows that for a same CPU with 32 cores and a certain dataset, performance is:  
4Process_8Threads \> 8Process_4Threads \> 16 Process_2Threads \> 16Process_1Threads

---

_[View the full topic](https://discourse.paraview.org/t/affinity-control-os-paraview-osmesa-mpi-on-cluster-with-slurm/477)._
