mersenneforum.org  

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

Reply
 
Thread Tools
Old 2012-07-20, 00:37   #1
TObject
 
TObject's Avatar
 
Feb 2012

34×5 Posts
Default Helper Thread Affinity

How to manually assign CPU affinity to helper threads in Prime95?

The “Worker Windows” dialog allows setting CPU affinity to a worker; but how does one set affinity when a worker uses more than one thread?

Thank you
TObject is offline   Reply With Quote
Old 2012-07-20, 06:11   #2
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

11100001101012 Posts
Default

Prime95 should be able to do it fairly intelligently.

If not, Ctrl+F "AffinityScramble2" in undoc.txt.
Dubslow is offline   Reply With Quote
Old 2012-07-20, 19:07   #3
TObject
 
TObject's Avatar
 
Feb 2012

34×5 Posts
Default

I want to prevent Prime95 from affecting my mfaktc performance by landing on hyper threaded cores that share physical cores with the hyper threaded cores used by mfaktc.

I know I can turn off hyper threading, but I use this computer for daily tasks, and with hyper threading enabled the PC is much more responsive.
TObject is offline   Reply With Quote
Old 2012-07-20, 19:21   #4
TObject
 
TObject's Avatar
 
Feb 2012

34·5 Posts
Default

So, if I have 8 logical cores, and I want the two threaded worker thread one use CPU4 and CPU5, then I can set:

AffinityScramble2=45672301

Pretty clever; thank you.
TObject is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Processor Affinity R.D. Silverman Programming 19 2015-04-24 22:46
Thread-affinity API issues under RedHat ewmayer Linux 7 2013-09-16 00:01
Workers, Threads, Helper Threads, Cores, Affinity. lorgix Information & Answers 12 2011-01-13 22:31
How to assign helper threads affinity? Meikel Software 3 2008-11-22 14:36
Affinity on Linux bmg9611 Software 5 2002-11-04 21:26

All times are UTC. The time now is 08:55.


Sat Feb 4 08:55:18 UTC 2023 up 170 days, 6:23, 1 user, load averages: 0.93, 0.86, 0.86

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.

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