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

How to set AFFINITY with CALL in batch

Im using the command start /AFFINITY 3 standalone.bat to start jboss 7.1.1 from a command line. Now I want to create a windows service to start jboss with AFFINITY , so what is the equivalent of this command using CALL from another batch file…
aminedev
  • 323
  • 3
  • 9
  • 22
0
votes
1 answer

How to tell a single threaded process to use alternately multiple cpus

I need for a specific reason of my work to configure a process in Ubuntu 14.10 Linux distro to use alternately different CPUs. I know with taskset I can pin a process on a specified CPUs but how I tell that process to use let say 50% of CPU 0 and…
user2567806
  • 460
  • 3
  • 7
  • 17
0
votes
1 answer

cpu affinity, allowing only process to run on a specific cpu

I want to bind a process to a specific core #0 (cpu affinity) via taskset -c 0 ./run_prog while the program it self is running on core #0, operating system may decide to run other background and active process to core #0. In other word, that…
mahmood
  • 23,197
  • 49
  • 147
  • 242
0
votes
1 answer

SMSS.exe set priority or afinity - insane CPU usage

I am having a problem on my Windows 8 64bit (legitimate) computer. I've got all the drivers for my motherboard, and in the last few weeks I have realised that smss.exe is using up to 40% (average of 30%) of my CPU. When it starts doing this, it can…
Freddie
  • 21
  • 1
  • 11
0
votes
1 answer

How to allow only a (few) specific process/thread run on a core on Linux

I know how to pin a process/thread to a core on Linux. What I like to know is how to ban/exclude any other process/thread from running on that particular core.
0
votes
0 answers

Linux thread affinity makes thread run slower

I am trying to improve cpu utilization and make thread run faster by setting thread's CPU affinity. Here is my code: #define _GNU_SOURCE #include #include #include #include #include #include…
Winter Ma
  • 63
  • 6
0
votes
2 answers

DOS Batch multicore affinity not working

I have a batch that launches a few executables .exe and .py (python) to process some data. With start /affinity X mybatch.bat it will work as it should only if X equals to 0, 2, 4 or 8 (the individual cores) But if I will use a multicore X like 15…
Adrian Cumpanasu
  • 1,028
  • 1
  • 10
  • 24
0
votes
1 answer

Is there any way to set processor affinity of a powershell script before execution?

There are lots of examples showing the use of Get-Process myprocess to change the processor affinity, and some examples using Get-WMIObject; but these won't work for my use. I want to set processor affinity of my script as it executes. Is there a…
EGr
  • 2,072
  • 10
  • 41
  • 61
0
votes
2 answers

smp affinity setting in linux

I want to load balance the interrupt (irq 75) on my virtual machine system. It has 64 bit redhat 5.8, kernel 2.6.18. There are 8 CPUs in the virtual machine. When I run: cat /proc/interrupts 75: 9189 0 0 0 0 0 0 0 …
Arda Demiray
  • 31
  • 1
  • 4
0
votes
1 answer

No option to choose Regional VNET or Affinity for new DocumentDB

I tried to setup Affinity or Regional VNET in Azure preview portal for new DocumentDB. I can setup this from normal portal, however I am interested in placing DocumentDB and Virtual Machine close to each other so the latency is minimal. I tried to…
dimkdimk
  • 1
  • 1
0
votes
1 answer

How does one specify physical CPU ids in openmpi 1.6.4+ rankfiles?

The latest (v1.8.3) OpenMPI documentation specifies that rankfiles must now use the logical cpu IDs reported by hwloc rather than the physical IDs, see the last sentence in the Rankfiles section of the mpirun documentation here: Starting with Open…
Squirrel
  • 2,262
  • 2
  • 18
  • 29
0
votes
1 answer

Change default CPU affinity

I would like to know whether it's possible the default affinity for linux processes. The default value is ~0 (truncated to the number of CPUs available) but I'd like to be able to set it for all the process of the system. It would be also nice to do…
David G.F.
  • 162
  • 1
  • 8
0
votes
0 answers

set CPU affinity of a particular pthread failure

My speedup-example.cpp source code is shown below #include #include #include #include #include #include "tern/user.h" #define N 8 #define M 10000 int nwait = 0; int nexit = 0; volatile long…
Will Wang
  • 105
  • 1
  • 3
  • 10
0
votes
0 answers

taskset wrapped has a "?" mark, not sure how its introduced

I'm running commands from python via popen. On multi-core system, I have a function that will return the string "/usr/bin/taskset -c <>" based on the system's utilization. I then append the string to the system command prior to sending it to…
user2066671
  • 177
  • 4
  • 16
0
votes
1 answer

How one can set affinity for kernel threads?

On a Linux kernel 3.11.0-13-generic i can't set affinity for kernel threads as in the following example: >ps -p 828 PID TTY TIME CMD 828 ? 00:00:00 nfsiod >sudo taskset -pc 7 828 pid 828's current affinity list: 0-11 taskset:…
Manuel Selva
  • 18,554
  • 22
  • 89
  • 134