Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [affinity]

The tag has no usage guidance.

0
votes
4answers
147 views

Change affinity while process active

I'm running a CPU consuming process (calculate mandelbrot set) and that process takes almost 100% of the CPU (I have 8 cores on my machine). when I change the affinity to half of the cores the CPU ...
0
votes
1answer
34 views

How to remove and prevent all processes except one that I choose from certain core in practice (win10)?

Problem: I have a single core process that has oscillating load (sc2 path optimizer). How can I make a script that moves this process to a certain core and prevents other processes to enter that core?...
-1
votes
1answer
216 views

CPU under load despite removing all process affinities [duplicate]

I've installed Process Lasso and in All processes tab, set all affinities to 1-7, meaning that all the processes can be start on all my CPUs except the first one. Yet, there is a huge load on my first ...
0
votes
0answers
315 views

Setting affinity in a script/batchfile

Setting the affinity for a given process using the following works fine PowerShell "get-process Notepad | %% { $_.ProcessorAffinity=1 }" What I would like to be able to do is set the processor mask ...
0
votes
1answer
831 views

launching a program with cpu affinity AND priority presets

I'm trying to create a shortcut for Traktor pro 2 which assigns the programs priority level and core assignments. In this case i'm trying to launch Traktor with realtime priority, set to function on ...
2
votes
0answers
875 views

What process controls the CPU affinity of new python processes

I wrote code to set the affinity of every process under my username to core 0 only. I ran this code, and then it exited once it was finished. Then, even when I launched a brand new terminal, and ...
0
votes
0answers
281 views

set affinity for program with bat, not working

I want to create a .bat file for a program as opposed to having to instruct a someone how to set affinity himself. This is a program that can crash when it uses too many cores due to an elusive bug (...
0
votes
1answer
35 views

If Affinity on Windows is set on 1 thread only, does it eliminate problems with thread-unsafe software?

Say I have a third party software executable I can't really edit or alter in anyway or debug properly. I suspect it has issues with multithreading in a way that it segfaults the application due to ...
1
vote
1answer
2k views

Set program affinity without opening the task manager in Windows 8.1

Is it possible to set program affinity without opening the task manager in Windows 8.1 using the program shortcut? (by using a command like -setaffinity) Is this method (changing affinity) a good way ...
2
votes
2answers
2k views

Force Windows to use all cores

I've got Win8.1, and an Intel CPU with 2(4) (logical) Cores. BUT: Windows only uses 1 core. The Taskmanager shows the 1st CPU permanently at 100%; all others are mostly idle. After several hours of ...
6
votes
1answer
1k views

How do I set the group and affinity of a Windows executable from the command line

I have an executable foo.exe that I need to run concurrently 6 times on a multiprocessor setup where the first 3 instances will be assigned to cores in Group 0 and the next 3 instances will be ...
0
votes
0answers
200 views

Set .exe affinity without shortcut

I do not want to state an incomplete XY problem, so here's the full situation: X I am running builds in Visual Studio on my Windows 7 machine, using both parallel builds and parallel compilation. ...
2
votes
2answers
2k views

Is there a way to “hack” windows 10 to use its entire CPU power in one task or process?

I work with applications like Blender, and, according to "Task Manager" and "Resource Monitor", windows uses less than 40% CPU (at most, with the option below) and less than 30% memory when I render a ...
17
votes
3answers
19k views

How do I permanently set the affinity of a process?

I have a game that has issues with CPU usage, so one of the fixes is to disable one core out of a quad core cpu. Since everytime I launch the game I have to manually go into the Task Manager and ...
0
votes
0answers
1k views

setting affinity for multiple cores on dual cpu system

We are using some systems with 2cpu's with 6 cores/12 threads each so 24 threads in total, for quite a lot of multitread simulations. Because the problem doesnt scale perfectly, i usualy run 4 ...
1
vote
1answer
955 views

How can I set CPU affinity for a device driver in Windows 7?

Does anybody know how to set on which core a device driver will run and process its interrupt requests? Situation: I'm having iusb3hcs.sys and acpi.sys causing lags when my soundcard processes ...
2
votes
1answer
1k views

How do I use linux processor affinity to dedicate 2 cores to user1 and 2 cores to user2?

at first I wanted to dedicate 2 cores(4 threads) to one java PID, and 2 cores(4 threads) to the other. However the volatility of these programs makes me think that they will end up crashing and ...
0
votes
1answer
1k views

Automatically distributing applications' CPU usage between cores (Windows 8)

I have an Athlon 8 core CPU (4 h/w, 8 logical) and I find that it rarely goes above 12.5% usage. I read this article which explains why, and that there are two solutions: Set processor affinity for ...
1
vote
0answers
252 views

How does Windows affinity work with hyperthreaded CPUs?

Let me describe our requirement in detail. We are doing some kind of assignment which requires capturing of IP data through NIC card and then processing the captured data in real time. The processing ...
1
vote
0answers
14 views

DarkEngine processor affinity bug

Does anybody know what was happening in DarkEngine at multiprocessor systems? The problem was: Application run, but crashed if it had more than one processor affinity. Why was it happening?
1
vote
0answers
169 views

Can QEMU be used on Mac OS X to emulate a one-core CPU (preferably only the CPU)?

Can QEMU do this kind of emulation? On Macs there's no an easy way to set CPU affinity, so this could an interesting workaround for the older programs that don't work well in multi-core environments.
4
votes
3answers
5k views

Set default processor affinity for all applications

I'm trying to improve CPU performance in a game, to do this I want to try giving it 2-4 CPU cores that run ONLY that application, and no windows related services. Is there I was where I can set the ...
4
votes
0answers
530 views

How to restrict windows service to X cores?

I'm currently trying ot figure out a decent/nice way of determening what core(s) a single service should run on, in Windows Server 2008. I'm aware that for procceses there is two ways to do it: set ...
1
vote
0answers
257 views

On windows 7 - Set core Affinity on boot, Or bulk affinity/tasking tool? (Like a KsysGuard for windows)

Not even sure if its possible but: you know how you can set custom scheduling in Linux. → and sure, I can set affinity for Windows 7 Programs one @ a time. But do you know of a tool that would allow ...
6
votes
2answers
3k views

Which logical CPU (core) belongs to which socket?

I need to test performance of a multithreaded program on 1 CPU, but I have a dual CPU machine. I need to set affinity to those logical CPU's, that share their socket, oterwise they strongly benefit ...
1
vote
0answers
454 views

How to set affinity on multi-socket system (2 CPUs)

I have a machine with two six-core processors (hyper-threading turned off). I understand how to set the affinity for a program using the command line when there is only one processor, but how do you ...
0
votes
2answers
502 views

Setting process affinity in Linux

In Windows, it is possible to make a program run on any number of cores in a multicore processor. It can be set in the Task Manager GUI. Likewise, Is it possible to set the process affinity in Linux, ...
3
votes
2answers
2k views

Where does Windows store CPU affinity settings?

I’m experiencing a strange issue in Windows XP. On bootup, any processes spawned by the system (services, autorun programs, etc.) are set to use both of the CPU’s threads. Explorer however, and any ...
5
votes
3answers
4k views

How can I automatically adjust the affinity of a process after it is started?

I want to open some programs in the startup without affecting the performance and I want to create shortcuts to them on my startup folder. If I can do this with adding modifiers at the end of the ...
5
votes
3answers
14k views

How can I set the default affinity for any process in Windows?

I want to run some benchmarks on Windows 7. These benchmarks have to do with hyper-threading on a multi-core CPU. For this, I want to ensure that only the benchmarks are running on their own logical ...
25
votes
3answers
14k views

How does Windows processor affinity work with hyperthreaded CPUs?

How does Windows processor affinity work with hyperthreaded CPUs? Let's use an example (pictured) of a system with four cores, each with a hyper-threaded virtual core. Which cores correspond to each "...
4
votes
1answer
5k views

Running a virtual machine on a dedicated processor or core

Our base system runs on Linux but unfortunately the UI has to be on Windows. Its a long story. But thats the requirement. So our idea was to run Windows in a virtual machine using VirtualBox or Xen. ...
0
votes
1answer
3k views

“execvp: no such file or directory” when attempting taskset on a running process

I have a process, PID 7150. I want to assign the process to core #4 of my system. (Core numbering starts with zero, so the fourth core should be core #3) I know I can do this by using Taskset. ...
9
votes
4answers
31k views

What is Windows Priority and Affinity and what advatanges does it provide?

What exactly is Priority and Affinity (found within Task Manager) and what are they used for: In what situations should/could they be used and what advantages are found while customizing these ...
0
votes
1answer
128 views

Is it possible to set a more generic process affinity (automatically)?

I know with start /affinity X where X is a hex-number bit-masking the CPUs to be used a process can be started to use certain CPUs only. However, is there a possibility to state something like "start ...
15
votes
4answers
24k views

How to set processor affinity on OS X?

How do you set processor affinity in Snow Leopard on a MacBook Pro?I know in Windows you could just switch it in Task Manager.
5
votes
3answers
5k views

How to set CPU affinity in Wine or CrossOver?

There are some old games who don't like the multicore processors in today's computers. I am wondering if there is a way to set the CPU affinity for them to '1' under Wine or CrossOver? i.e. In a ...