![]() |
![]() |
#12 | |
"Mark"
Apr 2003
Between here and the
724110 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#13 |
"Oliver"
Sep 2017
Porta Westfalica, DE
110000110012 Posts |
![]()
At the program's start, it will build a queue of cores available to LLR. When detecting a newly spawned process, it will assign it to a core and mark that core as used. This gets undone if the LLR process ends.
So it is not about the directory, but multiple processes are definitely supported. I found no advantage in assigning affinities by the working directory. It is more important to have one physical core per lifetime of a process. |
![]() |
![]() |
![]() |
#14 | |
"Mark"
Apr 2003
Between here and the
13·557 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#15 |
"Oliver"
Sep 2017
Porta Westfalica, DE
7·223 Posts |
![]()
Yes, take a look at the help the program generates (-h switch). You can set
|
![]() |
![]() |
![]() |
#16 |
"Mark"
Apr 2003
Between here and the
13·557 Posts |
![]()
I d/l'd your program, ran it in a command window (started as administrator). Used -h. Nothing. It doesn't output anything.
|
![]() |
![]() |
![]() |
#17 |
"Oliver"
Sep 2017
Porta Westfalica, DE
7×223 Posts |
![]()
You are correct, I could not believe it but tested it myself. That's dumb. I have not tested this before I uploaded it, sorry. Running it without parameter will give this (this is tested):
Code:
Usage: AffinitySetter [options] {process name} Options: -h Shows help and exits. -i {number} Increment of cores to set affinity to (default: 2). -m {number} Maximum number of processes to set affinity of at one given time (default: number of cores / 2). -q Hides the console window. -s {number} Zero-based first core to set affinity to (default: 1). -t {number} Thread count of each process (default: 1). Remarks: This program assumes HT. If not, you will have to specify -i, -m and -s manually. The program will only work up to 64 logical cores. Last fiddled with by kruoli on 2022-06-18 at 13:39 Reason: Clarification. |
![]() |
![]() |
![]() |
#18 | |
"Mark"
Apr 2003
Between here and the
13·557 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#19 |
Sep 2002
Database er0rr
2·5·467 Posts |
![]()
If you turn off the energy efficient cores in BIOS, does your motherboard allow the performance cores to use AVX512?
|
![]() |
![]() |
![]() |
#20 |
"Mark"
Apr 2003
Between here and the
724110 Posts |
![]()
I haven't tried that and I'm not certain I want to. It is my wife's computer, so performance will be an issue if she doesn't have cores available for her stuff.
|
![]() |
![]() |
![]() |
#21 | |
"Oliver"
Sep 2017
Porta Westfalica, DE
7·223 Posts |
![]() Quote:
AffinitySetter -s 3 -m 7 llr64, assuming your executable is called llr64. The option -i does not need to be added since it is the default on Windows. Leave it running in background. It will automatically detect newly spawned processes. |
|
![]() |
![]() |
![]() |
#22 | |
"Mark"
Apr 2003
Between here and the
13·557 Posts |
![]() Quote:
After running for a few minutes, it is doing nothing. I see no change in the affinity of the processes. I suggest a few things: 1) Add a switch that indicates if hyper threading is enabled. That way -s 1 -H -m 3 would use cores 1, 3, 5 and -S -m 3 would use cores 1, 2, 3. 2) Output information such as "no process found with that name". 3) Output information such as "process <processname> with pid <pid>" changed to use core <core>. 4) Add a switch to specify the number of seconds to poll the OS for running processes to change. Default to 60 seconds. This means that your program will need to have a table of pids for which it changed the affinity so that it doesn't need to change them each time (and output that the affinity was changed) the system is polled. Last fiddled with by rogue on 2022-06-19 at 12:36 |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Prime95 and cpu affinity | pepi37 | Software | 4 | 2019-04-25 05:51 |
Unexplained slowdown (affinity problem?) | Siegmund | Software | 6 | 2017-06-03 05:31 |
[Patch] CPU affinity prompt problem in mprime Linux / OS X build | Explorer09 | Software | 1 | 2017-03-01 02:34 |
Set affinity does not work | g33py | Software | 3 | 2016-07-27 05:26 |
Processor Affinity | R.D. Silverman | Programming | 19 | 2015-04-24 22:46 |