mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2022-06-19, 16:45   #23
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

144210 Posts
Default

On startup, it will set the affinities of all processes that are named as the process name that was specified. After that, it will subscribe to a system call that informs about newly spawned processes.

So you have omitted .exe in the command line as I have done? You could try to call AffinitySetter notepad and look if something happens if you open Notepad. It might be that Windows 11 blocks the behaviour of my program, I cannot test that. (I am assuming you might use Windows 11 because you were speaking about performance cores.)
  1. In your example, -H (hyperthreading enabled) would equal to -i 2 on Windows and not specifying -H would equal to -i 1. Yes, this seems more user friendly, but I will keep -i when adding such a switch.
  2. This could be done on startup, which is the only point where this could apply.
  3. This is already the default and should be shown if it works correctly. Real world example from one of the machines where I am running it:
    Code:
    Execute on PID 18340. Set affinity to core 15.
    Core 9 freed.
    Execute on PID 6744. Set affinity to core 9.
    Core 13 freed.
    Execute on PID 17332. Set affinity to core 13.
    Core 1 freed.
    Execute on PID 10520. Set affinity to core 1.
    Core 9 freed.
    Execute on PID 17088. Set affinity to core 9.
    Core 11 freed.
    Execute on PID 17208. Set affinity to core 11.
    Core 13 freed.
    Execute on PID 10792. Set affinity to core 13.
    Core 1 freed.
    Execute on PID 17516. Set affinity to core 1.
    Core 5 freed.
    Core 11 freed.
    Execute on PID 18824. Set affinity to core 5.
    Execute on PID 19148. Set affinity to core 11.
  4. This does not apply to the event watcher I use, unfortunately.

Yes, already set PIDs are watched and the used cores are marked as "used" in the program.
kruoli is offline   Reply With Quote
Old 2022-06-19, 17:29   #24
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

23·307 Posts
Default

I see what I did wrong. I was adding the .exe to the process name as that is what Task Manager shows. I have it working now. Thanks.
rogue is offline   Reply With Quote
Old 2022-06-19, 23:21   #25
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

2·32·7·13 Posts
Default

Affinity problem under Windows is old one. I like using Prime95 for PRP test and always , regardless configuration one worker is faster then another. I know other program steal cycles , but that is reason why I on 6 core CPU ( 6 true core, no HT) use only 4. But even on that configuration first worker is always slower then another. Prime95 set affinity itself, so I dont know will your program work on not in this case.
pepi37 is online now   Reply With Quote
Old 2022-07-13, 14:29   #26
Jean Penné
 
Jean Penné's Avatar
 
May 2004
FRANCE

617 Posts
Default Affinity management on LLR

The Affinity managing was not really implemented on LLR...
This issue is now fixed in new LLR 4.0.2, on Linux and WIN32 versions.
It is also fixed on llrCUDA Version 3.8.6 (indeed for the CPU part of the work).
The option -oAffinity=2 allows the progam to run on logical core 2.
You may also choose a list of cores by setting -oAffinity="2,3,5" for example.

Regards,
Jean
Jean Penné is offline   Reply With Quote
Old 2022-07-13, 17:19   #27
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

1B9516 Posts
Default

FYI, PRPNet supports setting affinity "out of the box" for LLR. PRPNet has been updated to support affinity for pfgw. I'm working on pfgw support for setting CPU affinity, at least for Windows.
rogue is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
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

All times are UTC. The time now is 18:53.


Sun Mar 26 18:53:25 UTC 2023 up 220 days, 16:21, 0 users, load averages: 0.91, 0.93, 0.93

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔