Anything related to processor affinity, also known as CPU pinning. The processor affinity is a propriety of a process or a thread in an OS on multi-processor or multi-core systems that influences the OS' scheduling algorithm, binding the execution of that process (or thread) to a specific processor (or core). DO NOT use this tag as a synonym for [affinetransform] tag.
Questions tagged [affinity]
330 questions
0
votes
0 answers
How to set threat affinity mask in RTOS for Arm processor through CMSIS layer?
How to set threat affinity mask in RTOS for Arm processor through CMSIS layer?
I am exploring a large codebase of earbuds made on CMSIS/ RTX5 rtos. This device runs in multiple co-processor. There are multiple threads for multiple features. I want…

Sazzad Hissain Khan
- 37,929
- 33
- 189
- 256
0
votes
0 answers
Kubernetes Node Affinity and Taints
I'm testing Node Affinity with Taints such that the below pod will be scheduled exactly in the expected node. I have added a Label to the Node and a Taint.
Label: node=testvm
Taint: node=testvm:NoSchedule
The pod manifest looks like…

Container-Man
- 434
- 1
- 6
- 17
0
votes
0 answers
Pod is not getting scheduled with anti-affinity
apiVersion: v1
kind: Pod
metadata:
name: test
labels:
app: test
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
…

amrutha
- 5
- 1
- 3
0
votes
1 answer
TopologyKey in pod affinity
Where will this pod be positioned?
apiVersion: v1
kind: Pod
metadata:
name: nginx-anti-pod
labels:
app: nginx-anti-pod
spec:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
…

amrutha
- 5
- 1
- 3
0
votes
0 answers
Too many Threads delay Keyboard Inputs in general. (Python) Better Solution?
I'm running a python script that is creating 5 threads on the windows OS.
All of the threads are doing light work (api calls, simple computations)
However if I type on my keyboard, while the script is running, the letters appear with a very…

Worker
- 11
- 4
0
votes
0 answers
How to set affinity for percona mysql helm deployment?
I have a percona mysql cluster deployed in my kubernetes cluster and can't figure it out how to use "pxc.affinity.advanced" parameter to add tolerations.
In the values.yaml file it looks like this:
affinity:
antiAffinityTopologyKey:…

alex suru
- 9
- 2
0
votes
1 answer
Any way to make program run only on a performance core (P-core)?
I need to run a compiler, and people have previously found that it runs well on a single core.
Now that Intel's 12th generation consumer chips have separate P-cores and E-cores, can I somehow tell the compile worker to run specifically on a P-core,…

eccentricOrange
- 876
- 5
- 18
0
votes
1 answer
Why querying process available CPUs return all CPUs?
I'm trying to query the process available CPUs (on which CPUs he can run) using cpuset_getaffinity.
cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, getpid(),
sizeof(*cpuset), cpuset);
The cpu set returned by the…

Brave
- 159
- 11
0
votes
0 answers
Why does kubernetes not schedule pods equally with podAntiAffinity?
I want to make sure that pods of my deployment are schedules across the nodes. To do so, I'm using preferred pod anti affinity. However, I observe that pods are not equally distributed among the nodes. For instance, there are still some available…

cosmos-1905-14
- 783
- 2
- 12
- 23
0
votes
1 answer
How to check if some affinity values exists in Ignite Cache?
Is there any function like cache.containsAffinity(T myField) to check if such affinity value exists in the cache?
For example, I set cache config like this: , Object>, and write data using streamer:
streamer.addData(new…

Vincent Y
- 109
- 6
0
votes
1 answer
How to set Affinity Key for Object type in Ignite Cache
I wish to set affinity key for my ignite cache. Since I use binary object builder to load data into the cache, so the value type of my cache is generic: . The Schema is defined using QueryEntity.
I tried to…

Vincent Y
- 109
- 6
0
votes
1 answer
setting cpu affinity using multiprocessing in python windows
I am trying to run 1200 iterations of a function with different values using multiprocessing.
Is there a way I can set the priority and affinities of the processors within the function itself ?
Here is an example of what I am doing :
with…

Adi
- 1
- 1
0
votes
1 answer
Subscriber affinity with Ordering Key, but without *in-order* delivery
As far as I have understood, the orderingKey specifies the partition to which a message is published when publishing a message to a particular topic. I have also come to understand that affinity is provided for a given ordering key as to which…

muffe
- 47
- 7
0
votes
2 answers
Force Linux to schedule processes on CPU cores that share CPU cache
Modern AMD CPUs consist of multiple CCX. Each CCX has a separate L3 cache.
It's possible to set process affinity to limit a process to certain CPU cores.
Is there a way to force Linux to schedule two processes (parent process thread & child process)…

cmpxchg8b
- 661
- 5
- 16
0
votes
1 answer
Assigning Pods to different nodepools with NodeAffinity
I am trying to assign a cluster of pods to nodepools and I would like those nodepools to change based on the resources requested by the cluster pods. However, I'd like the pods to prefer the smaller of the nodepools (worker) and ignore the larger…

Snow24
- 317
- 3
- 11