mersenneforum.org  

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

Reply
 
Thread Tools
Old 2018-01-14, 19:44   #1
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

4408 Posts
Default Throttle questions

Hi,

What is the difference between prime.txt and local.txt?

I'm adding a Throttle=75 line to prime.txt as per undoc.txt but wondered if there's any reason I might add it to local? I'm running mprime/Prime95 on 6 different computers, and I only want the 75% throttling to occur on one of my machines.

Also - in undoc.txt it says that:

Quote:
Some options in prime.txt can be configured to have different values
at different times of the day using this syntax:
Option=setting
where setting is defined as
value OR value during list-of-times else setting
At present, only Memory, MaxHighMemWorkers, PauseWhileRunning, LowMemWhileRunni$
and PauseCheckInterval support this during/else syntax.
Is the support for this feature strictly limited to those variables as stated? It would be handy to have it for the Throttle feature too.

Thanks.
lukerichards is offline   Reply With Quote
Old 2018-01-14, 22:58   #2
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

162778 Posts
Default

Twenty years ago, I thought it would be handy to able to copy your prime95 setup from one computer to another by copying everything in the directory except local.txt and worktodo.txt. Probably not the best design decision I've ever made.

Rather than using throttle, how about using fewer than all cores. If you have a quad core, using three cores would be 75%.

Last fiddled with by Prime95 on 2018-01-14 at 22:58
Prime95 is offline   Reply With Quote
Old 2018-01-15, 14:41   #3
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

4408 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Twenty years ago, I thought it would be handy to able to copy your prime95 setup from one computer to another by copying everything in the directory except local.txt and worktodo.txt. Probably not the best design decision I've ever made.

Rather than using throttle, how about using fewer than all cores. If you have a quad core, using three cores would be 75%.
That's true, thanks.

Altering the number of cores isn't something which can be set to vary automatically at different times of day, is it?
lukerichards is offline   Reply With Quote
Old 2018-01-15, 15:11   #4
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

24·499 Posts
Default

If you do use 3 cores, lock Prime95 to cores 1, 2 and 3. This allows your OS and apps to use the “primary” core 0.

(Your apps and stuff will still use cores 1, 2 and 3, but leaving core 0 open will improve your interaction (latency?) with the system. At least it does for our computer and workload.)

PS - Make sure your cores are real cores. We have an AMD 880K that is advertised as having 4 cores, but it shares some sort of math unit between pairs of cores, so in reality it is a dual core CPU.
Xyzzy is offline   Reply With Quote
Old 2018-01-15, 15:24   #5
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

25·32 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
Make sure your cores are real cores. We have an AMD 880K that is advertised as having 4 cores, but it shares some sort of math unit between pairs of cores, so in reality it is a 2 core CPU.
I have an AMD A8-7650K Radeon R7, 10 Compute Cores 4C+6G. Any idea how I can check this?
lukerichards is offline   Reply With Quote
Old 2018-01-15, 15:25   #6
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

25×32 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
If you do use 3 cores, lock Prime95 to cores 1, 2 and 3. This allows your OS and apps to use the “primary” core 0.
Is this in the undoc.txt? I don't remember seeing it.
lukerichards is offline   Reply With Quote
Old 2018-01-15, 23:51   #7
Madpoo
Serpentine Vermin Jar
 
Madpoo's Avatar
 
Jul 2014

2·5·7·47 Posts
Default

Quote:
Originally Posted by lukerichards View Post
Is this in the undoc.txt? I don't remember seeing it.
On a 4 core CPU (assuming hyperthreading is disabled), the local.txt you'd have something like:

Code:
WorkerThreads=1
CoresPerTest=3

[Worker #1]
Affinity=1,2,3
If you have hyperthreading enabled, your 4 cores will show up as 8, but you want to set your affinity to just the "physical" core. Windows alternates between physical/HT cores in the numbering:
Code:
WorkerThreads=1
CoresPerTest=3

[Worker #1]
Affinity=2,4,6
I use "physical" core loosely... a hyperthreaded core has 2 pipelines (or whatever you'd like to call it) that only has one FPU. So while it may appear to be 2 cpus in the OS, the fact that there's only one FPU between them means there's really no benefit to LL tests which rely entirely on FP calculations.
Madpoo is offline   Reply With Quote
Old 2018-01-16, 00:17   #8
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by Madpoo View Post
On a 4 core CPU (assuming hyperthreading is disabled), the local.txt you'd have something like:

Code:
WorkerThreads=1
CoresPerTest=3

[Worker #1]
Affinity=1,2,3
If you have hyperthreading enabled, your 4 cores will show up as 8, but you want to set your affinity to just the "physical" core. Windows alternates between physical/HT cores in the numbering:
Code:
;
WorkerThreads=1
CoresPerTest=3

[Worker #1]
Affinity=2,4,6
I use "physical" core loosely... a hyperthreaded core has 2 pipelines (or whatever you'd like to call it) that only has one FPU. So while it may appear to be 2 cpus in the OS, the fact that there's only one FPU between them means there's really no benefit to LL tests which rely entirely on FP calculations.
http://www.mersenneforum.org/showpos...89&postcount=1 user runs on lubuntu
science_man_88 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to tell prime95 to throttle down cpu consuming snoopy78 Software 12 2016-12-03 10:16
Limit/throttle CPU usage (110% is too much!) Freightyard Software 32 2014-05-28 14:13
Prime95 throttle? SkiDragon Software 10 2009-11-08 03:03
Throttle feature request? Xyzzy Software 1 2009-08-16 00:47
P4 Temperature Throttle Axel Fox Software 4 2003-06-25 18:55

All times are UTC. The time now is 11:37.

Sun Mar 7 11:37:16 UTC 2021 up 94 days, 7:48, 0 users, load averages: 1.11, 1.63, 1.85

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.