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

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

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 22:54.

Thu Feb 25 22:54:47 UTC 2021 up 84 days, 19:06, 0 users, load averages: 1.37, 1.55, 1.57

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.