affinity Questions
1
I am working on a tool to allow students to self-evaluate their programming assignment's performance. In particular, the program they're writing is multi-threaded and I have no direct way of influe...
Saddlebag asked 15/10, 2014 at 19:55
3
Solved
I need to set the affinity (thread to core, eg: 1st thread to 1st core) before creating a thread. Something like KMP_AFFINITY in OpenMP. Is it possible?
edit:
I try in this way, but dont' work :/
...
1
I want to bind the threads in my code to each physical core.
With GCC I have successfully done this using sched_setaffinity so I no longer have to set export OMP_PROC_BIND=true. I want to do the sa...
Strow asked 21/7, 2014 at 10:6
3
Solved
I'm developing an application in c++. One of the components of the application uses Matlab (via the Matlab engine) for data processing. At the same time, a data acquisition system is streaming data...
Kid asked 19/3, 2012 at 21:32
2
Solved
I would like to know if it is possible to identify physical processor (core) used by thread with specific thread-id?
For example, I have a multithreaded application that has two (2) threads (thre...
Ocarina asked 29/7, 2010 at 21:3
2
Solved
I am using the taskset tool to set CPU affinity for one of my programs. How do I set the affinity on a single CPU only - since I was not sure about this, so I was doing this:
taskset -c 2-2 tests/...
Bane asked 12/7, 2011 at 2:41
2
Solved
I'm trying to set core affinity (Thread #1 goes on first core, Thread #2 goes on second core, ...) while using std::thread in C++ 11.
I've already searched around various topics and on the interne...
1
In linux where I work mostly, we use a technique called CPU isolation, that effectively locks a process on to a processor and also prevents the processor from running anything else. Our kernel guys...
Eldoneldora asked 10/3, 2013 at 16:30
2
I'm trying to set the CPU affinity of threads on Linux. I'd like to know which one of the following approaches is recommended:
Get thread id using pthread_self()
Set CPU affinity using pthre...
8
Solved
I have a quad core system with third party application that once in a while spins several processes (always the same executable but several instances of it) and takes 100% of CPU time. I also have ...
Monad asked 9/3, 2009 at 21:10
1
Solved
(Posting this with answer because I couldn't find a full explanation of how to do this anywhere, so I thought it might have some value for someone)
How can I set the processor affinity of a partic...
1
Solved
I have noticed that several of my multi-threaded calculations run faster if I disable hyper-threading in the BIOS.
I have also learnt that I can programmatically disable the (logical) CPU:s by mod...
Hospital asked 7/6, 2012 at 11:21
1
This question asks about ensuring two processes run on the same CPU. Using sched_setaffinity I can limit a process to a number of logical CPUs, but how can I ensure that these are mapped to specifi...
1
Possible Duplicate:
how to set CPU affinity of a particular pthread?
Is there a way in Linux to disable one core for all processes except one process? I would like to have one core reserve...
3
Solved
I have 4 threads, and I am trying to set thread 1 to run on CPU 1, thread 2 on CPU 2, etc.
When I run my code below, the affinity masks are returning the correct values, but, however, when I do a s...
Mattson asked 1/4, 2010 at 20:27
1
Solved
I have a server process that forks many child processes. The server process has affinity to a CPU core, but I don't want that affinity to be inherited by child process (rather OS should handle wher...
2
I have written a program that captures and displays video from three video cards. For every frame I spawn a thread that compresses the frame to Jpeg and then puts it in queue for writing to disk. I...
Erdei asked 2/10, 2011 at 12:59
2
Solved
I am having a hard time finding information about how to set cpu affinity for linux kernel (with all of its loaded modules), NOT for a specific process.
This is because I want the kernel to ...
1
Solved
In Linux there is a sched_setaffinity() function defined in sched.h, but I can't seem to find anything like that in Mac OS X 10.6 pthreads implementation... If it is not possible to set affinity, w...
Hamite asked 31/5, 2011 at 6:42
4
Solved
Lets say there are two processors on a machine. Thread A is running on P1 and Thread B is running on P2.
Thread A calls Sleep(10000);
Is it possible that when Thread A starts executing again, it ...
Belting asked 31/1, 2011 at 3:42
1
Solved
How can the CPU affinity of a process be set in kernel module? In user mode there is a syscall sched_setaffinity, but I am looking for the kernel mode equivalent.
In the Linux kernel code, there i...
Heteronomy asked 20/7, 2009 at 0:28
3
I have a program written in C#, I am using VSTS 2008 + .Net 3.5 + Windows Vista Enterprise x86 to develop a Windows Forms application.
My current computer is dual-core CPU, I want to set CPU affin...
Yarber asked 27/6, 2009 at 7:9
3
Solved
I've got a dual processor machine and I would like to launch an executable via a batch file on both processors.
For example:
(1) Launch Notepad.exe on Processor 1, and
(2) Simultaneously, Notepad...
Hawley asked 6/5, 2009 at 2:21
© 2022 - 2024 — McMap. All rights reserved.