mersenneforum.org  

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

Reply
 
Thread Tools
Old 2023-05-03, 14:21   #1
Chai T Rex
 
Mar 2023

1 Posts
Question mprime is significantly slowing down other programs

The problem I'm having is that, for whatever reason, mprime is significantly slowing down the other programs that I'm running. I frequently have to turn off mprime and then I'll forget to turn it back on when I'm done using the computer.

How can I limit mprime so that this doesn't happen? Is there some way to, for example, limit the number of CPU cores that mprime is using? Is there some other way to stop mprime from interfering with the performance of other programs?

I'm using mprime (Mersenne number primality test program version 30.8) on Ubuntu 22.04 with a Ryzen 5900X.
Chai T Rex is offline   Reply With Quote
Old 2023-05-03, 15:52   #2
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

Quote:
Originally Posted by Chai T Rex View Post
The problem I'm having is that, for whatever reason, mprime is significantly slowing down the other programs that I'm running. I frequently have to turn off mprime and then I'll forget to turn it back on when I'm done using the computer.

How can I limit mprime so that this doesn't happen? Is there some way to, for example, limit the number of CPU cores that mprime is using? Is there some other way to stop mprime from interfering with the performance of other programs?

I'm using mprime (Mersenne number primality test program version 30.8) on Ubuntu 22.04 with a Ryzen 5900X.
Yes. What does top show? Normally mprime /prime95 runs at low priority, but by default assigns all cores to worker(s). There are ways to reduce the number of cores, number of workers, etc. It comes with fairly good documentation included. Reading its readme.txt and undoc.txt is likely to be informative and helpful.

Welcome to the forum. You may also find some of the reference info collection useful, now or later. Good luck.

Last fiddled with by kriesel on 2023-05-03 at 15:53
kriesel is offline   Reply With Quote
Old 2023-05-03, 17:15   #3
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

3·953 Posts
Default

Quote:
Originally Posted by kriesel View Post
Yes. What does top show? Normally mprime /prime95 runs at low priority, but by default assigns all cores to worker(s). There are ways to reduce the number of cores, number of workers, etc. It comes with fairly good documentation included. Reading its readme.txt and undoc.txt is likely to be informative and helpful.

Welcome to the forum. You may also find some of the reference info collection useful, now or later. Good luck.
When I first set up this i7 system back in 2018, Mark Rose suggested the following be placed in prime.txt

Code:
WorkerThreads=1
CoresPerTest=4
I have kept it there. Prime95 can be aggressive about using resources despite running at a low priority. I have mprime on my Ubuntu box. I applied the above to it also.
storm5510 is online now   Reply With Quote
Old 2023-05-03, 17:23   #4
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

The 5900x has 12 cores and supports 24 threads. https://www.pcmag.com/reviews/amd-ryzen-9-5900x
kriesel is offline   Reply With Quote
Old 2023-05-03, 17:49   #5
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

1011001010112 Posts
Default

Quote:
Originally Posted by kriesel View Post
The 5900x has 12 cores and supports 24 threads. https://www.pcmag.com/reviews/amd-ryzen-9-5900x
In this situation, I would not use any more than 8 cores per test and stick with one worker thread. Something else I do, actually don't do, is run any CPU intensive processes in tandem with Prime95. I run it as a sole process. In the past, I have tried running other things with it, but it did not work very well. Hard resets would occur. Low impact things, like Excel do not cause problems.
storm5510 is online now   Reply With Quote
Old 2023-05-08, 18:57   #6
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/

24·199 Posts
Default

Quote:
Originally Posted by storm5510 View Post
When I first set up this i7 system back in 2018, Mark Rose suggested the following be placed in prime.txt

Code:
WorkerThreads=1
CoresPerTest=4
I have kept it there. Prime95 can be aggressive about using resources despite running at a low priority. I have mprime on my Ubuntu box. I applied the above to it also.
That's applicable to a machine with 4 cores on a single chiplet.

For a 5900X, which has two chiplets with six cores each, the best configuration for mprime performance would be

Code:
WorkerThreads=2
CoresPerTest=6
Mark Rose is offline   Reply With Quote
Old 2023-05-08, 19:10   #7
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/

24·199 Posts
Default

Quote:
Originally Posted by Chai T Rex View Post
The problem I'm having is that, for whatever reason, mprime is significantly slowing down the other programs that I'm running. I frequently have to turn off mprime and then I'll forget to turn it back on when I'm done using the computer.

How can I limit mprime so that this doesn't happen? Is there some way to, for example, limit the number of CPU cores that mprime is using? Is there some other way to stop mprime from interfering with the performance of other programs?

I'm using mprime (Mersenne number primality test program version 30.8) on Ubuntu 22.04 with a Ryzen 5900X.
What you're likely running into is memory bandwidth saturation. Each memory channel will roughly support 2 cores. Additional cores may give a little more performance, but they are limited by memory bandwidth.

I'd try the following in local.txt (or prime.txt in 30.11 or later):

Code:
WorkerThreads=1
CoresPerTest=6
and lower 6 until you get acceptable performance.

You can also play with the PauseWhileRunning= option in prime.txt.

30.12 adds support for changing CoresPerTest on a time schedule. 30.12 is still undergoing testing.
Mark Rose is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I run Prime95 without slowing down my computer alan19 Information & Answers 6 2019-11-14 20:57
2 of 4 cores slow down significantly when I turn main monitor off markdjonson Information & Answers 9 2012-12-31 15:34
MPrime Significantly Faster than P95 Dubslow Software 8 2011-12-06 15:44
Is mprime significantly slower than Prime95? abcd Linux 9 2007-08-31 14:26
Prime95 slowing down a server Jeremy Pharoah Software 8 2004-07-09 17:58

All times are UTC. The time now is 14:03.


Fri Jul 7 14:03:04 UTC 2023 up 323 days, 11:31, 0 users, load averages: 0.60, 0.98, 1.09

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.

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