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
1 answer
How to set connection affinity mask in SQL server 2005 when enabling VIA protocol
I have developed an SUP HWC application(for iOS) to fetch data from SQL server 2005 using stored procedure.In SUP workstation, I'm able to see the preview while creating MBO.I deployed my application in Sybase control center and able to view the…

bapi
- 1,903
- 10
- 34
- 59
0
votes
1 answer
Does set affinity ensure that only one core resources are used?
I just wanted to find out if setting cpu affinity ensure that the application runs only on that core ?

Kailash
- 1
0
votes
1 answer
Load balancing: one user, multiple devices to same server
I have the following situation: A user logs in in a ASP.NET MVC4 app using a PC. This app is running on multiple IIS servers, behind a load balancer. After this a SignalR connection between the server and the client is established. When the user is…

pexxxy
- 489
- 1
- 6
- 17
0
votes
1 answer
Loop read.transactions over multiple datasets
I have a large number of files that I want to separately run read.transactions() on (part of the ARULES package).
I'd like to do something like this:
x_1 = read.transactions(file_1.csv,...); rules_1 = apriori(x_1,...);
x_2 =…

user2432675
- 715
- 1
- 6
- 14
0
votes
2 answers
I am using ab as benchmark tool for performance analysis on apache server
I am using AB as benchmark tool for performance analysis on apache server.
Is there any way, we can restrict the AB request to specific CPU cores by setting their mask?
I tried with sched_setaffinity() but it restricts the AB request to a single…

sanchitjain
- 51
- 1
- 2
- 6
0
votes
0 answers
Changing CPU affinity affects performance of other functions
I have a code in C which has the following overall framework:
while (err > tol){
func_A();
func_B();
func_C();
func_Par();
}
The codes are changing some global variables and this how they are connected. In func_Par(), three threads…

Pouya
- 1,871
- 3
- 20
- 25
0
votes
2 answers
Can irq smp_affinity replace the rps(receive package steering)?
I have a Netcard eth0,it has single queue and its IRQ number is 63,
My question is:
If I set /proc/irq/63/smp_affinity to fffff
Whether means that the Linux kernel will distribute the IRQ of eth0 to each cpu in my system?
is its function equal to…

Chinaxing
- 8,054
- 4
- 28
- 36
0
votes
1 answer
How to install python-affinity package on Debian?
I hope this is the correct place instead of Unix User of Stack Overflow etc;
How do I install the Python package affinity on Debian Squeeze?
I have downloaded the tar, unpacked it, and ran the following command but it fails; I have never insall a…

jwbensley
- 10,534
- 19
- 75
- 93
0
votes
1 answer
Parent window and thread affinity
I'm having a WinForms application where I would like to perform some long-running operations, e.g. imagine Explorer copying 2 big files in parallel. For each of those long-running operations I'm starting a separate UI thread (which includes pumping…

liggett78
- 11,260
- 2
- 29
- 29
0
votes
1 answer
Setting priority class and processor affinity on a process vs job object
In .NET processor affinity and priority class for all threads and child processes can be set using Process.ProcessorAffinity and Process.PriorityClass properties. Using a job object it seems that the same can be set using JOB_OBJECT_LIMIT_AFFINITY…

kateroh
- 4,382
- 6
- 43
- 62
-1
votes
2 answers
How to set process affinity to "All processors" in C#?
I've figured out how to set process affinity mask to run process on just single processor:
Process p = ... //getting required process
p.ProcessorAffinity = (IntPtr)0x0001;
But I can't figure out how to set it back to all processors. How do I do so?…

rsod
- 57
- 4
-1
votes
1 answer
Move all threads to use other CPU core so one thread can use other CPU core?
Linux has many threads and processes executing across (lets say 2) CPU cores. I would like my single-threaded C/C++ application to be the only thread on CPU0. How would I "move" all the other threads to use CPU1?
I know I can use the Linux CPU…

user997112
- 29,025
- 43
- 182
- 361
-2
votes
2 answers
How to ensure Code immediatly after a call to sched_setaffinity() run on the specified thread before waiting for next turn at the cpu queue?
I have written a code to make 7 process in addition to the parent, so the sum is 8 ... I managed to make each process tied to a different thread .. ie I have intel core-i7 ..which have 4 cores X 2 threads/core = 8 threads ... now my problem how…

AbdAllah Talaat
- 15
- 5
-3
votes
1 answer
Setting process affinity to a specific process
I want to set the process affinity to a specific process.
Like:
I have a process called "word.exe" with PID: 2045
How I can set the process affinity to it?
I searched online and I didn't find much. I only found the GetCurrentProcess(), but it sets…

VikSn0w
- 43
- 4