affinity Questions

3

Solved

I'm attempting to create a std::vector<std::set<int>> with one set for each NUMA-node, containing the thread-ids obtained using omp_get_thread_num(). Topo: Idea: Create data which is ...
Interested asked 3/3, 2022 at 16:50

5

Solved

How do I assign 2 MPI processes per core? For example, if I do mpirun -np 4 ./application then it should use 2 physical cores to run 4 MPI processes (2 processes per core). I am using Open MPI 1.6...
Queue asked 31/7, 2012 at 21:20

6

Solved

Is there a programmatic method to set CPU affinity for a process in c/c++ for the Linux operating system?
Beeswing asked 11/11, 2008 at 13:47

2

Solved

I'm trying to debug some performance issues with pthreads on Linux and I think sched_getcpu() may be lying to me. It reports a constant CPU for each thread, whereas profiling experiments seem to su...
Isochromatic asked 29/4, 2016 at 9:33

1

I've set IRQ affinity in the past on Linux by setting values to the proc files. [1] However, I noticed that when I do this on an system that uses MSI-X for the device (PCIe) that I want to set affi...
Tarnish asked 11/10, 2013 at 21:2

2

I have k8s cluster with 3 nodes I would like that a sample deployment with 3 replicas as the follwing , so each pod got schduled in a different node ? apiVersion: apps/v1 kind: Deployment metada...
Resupinate asked 9/6, 2020 at 21:52

6

Solved

I spent this morning trying to find out how to determine which processor id is the hyper-threaded core, but without luck. I wish to find out this information and use set_affinity() to bind a proc...
Baffle asked 1/9, 2011 at 18:12

2

is there a way to set the "task affinity" programmatically? I mean like with some Intent flag or sth? I didn't find anything about this being possible in the Android docs. Setting the affinity in ...
Percussion asked 25/5, 2011 at 7:49

4

Solved

In Windows, with START /node 1 /affinity ff cmd /C "app.exe" I can set the affinity of app.exe (number of cores used by app.exe). With a windows script, How I can change the affinity of a runn...
Define asked 4/10, 2013 at 17:23

0

I have a pandas dataframe with 100 rows and 10,000 features. I want to fit hierarchical clustering on my data by using pearson correlation as the affinity argument in sklearn.cluster.FeatureAgglome...
Southeastwards asked 14/8, 2018 at 18:38

3

Solved

I am trying to: Run 16 copies concurrently with processor pinning (2 copies per core) Run 8 copies concurrently with processor pinning (2 copies per core) and flipping processor core to the furth...
Lamoureux asked 7/5, 2012 at 23:59

3

I am investigating how run a process on a dedicated CPU in order to avoid context-switches. On my Ubuntu, I isolated two CPUs using the kernel parameters "isolcpus=3,7" and "irqaffinity=0-2,4-6". I...
Lawanda asked 23/11, 2016 at 21:11

2

I want to set the number of RX/TX queues used by an Intel 10G NIC. Let me explain why: I am using an Intel 10G NIC of type X520, on a Dell R720 system. I am using ixgbe version 3.6.7-k. The kernel...
Outshine asked 19/5, 2014 at 5:30

3

Solved

I have a quad core CPU, and lets say I always want to start a Thread on the second core. Is that possible in C#?
Mikesell asked 5/7, 2011 at 14:33

1

So I'm a noob when it comes to this sort of stuff. I'm struggling to compile a climate model on macOS and I've boiled it down to what is going on here: #define _GNU_SOURCE #include <stdio.h&...
Hygrophilous asked 21/7, 2017 at 0:9

3

Solved

I am using the start /AFFINITY [n] [.exe] command to start an executable with the specified affinity. I have a system with 8 processors (1,2,3,4,5,6,7,8). I'd like to set the process to use all of ...
Defendant asked 13/10, 2011 at 20:17

1

Solved

I am trying to restrict the number of CPUs used by Python (for benchmarking & to see if it speeds up my program). I have found a few Python modules for achieving this ('os', 'affinity', 'psuti...
Compact asked 7/3, 2017 at 21:6

1

Solved

I am trying to check the number of cores my script is using with 'os.sched_getaffinity' method as suggested in Why does multiprocessing use only a single core after I import numpy?. But when I run ...
Stanislas asked 1/3, 2017 at 17:24

1

I have a simple mono-threaded application that does almost pure processing It uses two int buffers of the same size It reads one-by-one all the values of the first buffer each value is a...
Palmira asked 19/11, 2016 at 12:2

1

Desired behaviour: run a multi-threaded Linux program on a set of cores which have been isolated using isolcpus. Here's a small program we can use as an example multi-threaded program: #include &...
Margherita asked 13/4, 2016 at 16:27

1

Solved

I need to update some old codes to work with the most recent version of OpenMPI, but I'm very confused by the new --map-by system. In particular, I'm not sure how to replace --cpus-per-proc N. Se...
Senhorita asked 7/4, 2016 at 22:46

1

Solved

Is there any way to force a process with specific PID, to be executed and run on only one of the cpu s of a server? I know that there is a command like this taskset -cp <Cpu_Number> <Pid&...
Galliwasp asked 30/11, 2015 at 9:14

4

Solved

And would it be a good idea to do so if I needed the processor cores running on 100% for a dozen seconds or would I get better performance if I let the system decide how to handle the threads? Wha...
Sergo asked 11/11, 2012 at 21:29

4

Solved

I have created a window application in C#.Now I want to set the CPU affinity for this application.I may have 2 processors,4 processors,8 processors or may be more than 8 processors. I want to set ...
Acetophenetidin asked 12/12, 2012 at 7:7

4

Solved

I was benchmarking a large scientific application, and found it would sometimes run 10% slower given the same inputs. After much searching, I found the the slowdown only occurred when it was runnin...
Hayrick asked 13/5, 2009 at 18:55

© 2022 - 2024 — McMap. All rights reserved.