Questions tagged [affinity]

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.

330 questions
0
votes
1 answer

Openmp thread affinity: Set 2 threads in the program, how many cores are running?

I wrote an Openmp Program, running it on a two core machine. When I changed the thread number from 1 to 2 and from 2 to 4, I couldn't get the 2x speed up. 2 threads to 4 threads, that's the hyperthreads. Hyperthreads generally can't get 2x speed up…
0
votes
1 answer

Cannot allocate exclusively a CPU for my process

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 random index in the second buffer It reads the value…
0
votes
1 answer

Assigning process to a processor group

I have server with two physical processors. I want to set a current process to a specific group as if I do it manually from task manager. Note that it is not affinity but processor group (each group has 16 logical processors). I could not find any…
sergman
  • 171
  • 1
  • 2
  • 12
0
votes
1 answer

Allocate a full CPU to a specific thread in order to maximize performance and avoid context switch

I have a task not parallelizable that I want to process as fast as possible. This task performs pure computation, no I/O. Of course this task runs on a multi-core system and many other processes are simultaneously doing "things" that also also…
0
votes
1 answer

Different thread affinities in Parallel.For Iterations

I need an iteration of a parallel for loop to use 7 cores(or stay away from 1 core) but another iteration to use 8(all) cores and tried below code: Parallel.For(0,2,i=>{ if(i=0) Process.GetCurrentProcess().ProcessorAffinity =…
huseyin tugrul buyukisik
  • 11,469
  • 4
  • 45
  • 97
0
votes
0 answers

how can i set affinity in my bat file for loop

I have a bat file that calls a program to cycle through a list of files to process. I like to run multiple instance at the same time, and some times they cause each other to crash. I would like to be able to have 8 or more instances running at the…
morgan
  • 63
  • 1
  • 8
0
votes
1 answer

Windows Java thread affinity with OpenHFT AffinityLock

I'm trying to optimize an application by binding its threads to different cores. To begin with, I would like to bind the entire application to a single core using the Affinity-3.0.6 package from OpenHFT. So far I've had no luck. At first I imported…
0
votes
1 answer

Software parallelization with OpenMP versus Affinity scheduling?

Scenario: I have an program which can be easily parallelized using OpenMP, lets say the main loop of the program is a for loop and independent data within it, so paralleizing it would be trivial. However currently I don't parallelize it, and instead…
Syntactic Fructose
  • 18,936
  • 23
  • 91
  • 177
0
votes
1 answer

MacOSX: Scheduler affinity seems not to work

I tried to follow the suggestions in this blog, and it seems that, even if I'm setting the CPU Set to only one core of my MacOS, more of one thread is involved per time. Is it possible to make the thread run only in one processor on such Operative…
jackb
  • 695
  • 8
  • 26
0
votes
2 answers

Good idea? MS SQL Limit CPU Affinity to prevent system lock down?

recently I had to run few heavy one-time queries on our MSSQL 2008 R2 64-bit server and faced a problem: executing them made SQL server consume 100% CPU which eventually (in about 20 seconds) made server absolutely unresponsive. Thus I was forced to…
0
votes
1 answer

Thread affinity in linux

I have made an application in c which creates 4 threads. How can I check which thread is running on which core through terminal and through code.
Barinder Grewal
  • 49
  • 1
  • 1
  • 6
0
votes
1 answer

Thread Affinity: Cannot create children for a parent that is in a different thread

I have seen a similar question, but I feel that I am implementing the correct pattern and still I can't get it done! Well, I have a Gui to start and stop data acquisition from a serial port and display necessary communication messages. To keep the…
QuestionMark
  • 412
  • 1
  • 4
  • 16
0
votes
2 answers

Executing hybrid OpenMP/MPI jobs in MPICH

I am struggling to find the proper way to execute a hybrid OpenMP/MPI job with MPICH (hydra). I am easily able to launch the processes and they do make threads, but they are stuck bound to the same core as their master thread whatever type of…
0
votes
1 answer

Disable core affinity for all thread defaults

I'm using ffmpeg in my application which internally spawns lots of threads. However, I would like that my application which has real-time semantics has one of the cpu cores for itself. So basically I need a way to disable scheduling of ffmpeg…
ronag
  • 49,529
  • 25
  • 126
  • 221
0
votes
1 answer

Shortcut and or bat file with login and set affinity

I have this game I like to play: ryzom.com, it really wasn't built for windows and I'm running windows 10, I have to set the processor affinity each time I start the game (because the default is single 1st core) and I have multiple accounts (that i…
Anna
  • 43
  • 7