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

19516 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

3·29·83 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

19516 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

19516 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 11:51.


Sat Sep 23 11:51:09 UTC 2023 up 10 days, 9:33, 0 users, load averages: 0.88, 0.97, 1.02

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.

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