![]() |
![]() |
#1 | |||||
Feb 2008
Bray, Ireland
139 Posts |
![]()
Using mprime. I have a machine with 32GB memory. I'm running PRPs/DC on 3 workers, but thought I'd assign one worker for P-1.
I assigned 4GB memory initially. For the first exponent, when it reached stage 2, the bounds were as follows: Quote:
Quote:
So for next eponent, got this at Stage 2 Quote:
Quote:
Quote:
Last fiddled with by ZFR on 2020-12-12 at 10:16 |
|||||
![]() |
![]() |
![]() |
#2 |
"Curtis"
Feb 2005
Riverside, CA
2×5×467 Posts |
![]()
Never seen that happen- it looks like memory access has slowed for the larger memory footprint. Is this a dual-socket / NUMA box? What OS?
|
![]() |
![]() |
![]() |
#3 | ||
Feb 2008
Bray, Ireland
139 Posts |
![]() Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#4 |
Jun 2003
23·607 Posts |
![]()
Something funky is going on. This is not supposed to happen. However...
Your "before" data shows two Stage 2 running in parallel. Is that right? How many stage 2 are running in parallel in the "after" scenario? Also, you're not showing how much memory is actually being used and how many relative primes are being processed. Can you provide those details as well (preferably for both before & after). Finally, are you seeing any harddisk activity indicating potential thrashing of memory? |
![]() |
![]() |
![]() |
#5 | ||||
Feb 2008
Bray, Ireland
13910 Posts |
![]() Quote:
In the "after" it's only this one that's doing P-1. Quote:
Here is the full output of the "before". I've removed the other workers. Quote:
Quote:
As I said, I keep the full output logs. So if you need me to post more, let me know. Last fiddled with by ZFR on 2020-12-12 at 16:37 |
||||
![]() |
![]() |
![]() |
#6 |
Feb 2008
Bray, Ireland
139 Posts |
![]()
Is it normal that whenever I start mprime I get "Processing 480 relative primes (0 of 480 already processed)."
|
![]() |
![]() |
![]() |
#7 |
1976 Toyota Corona years forever!
"Wayne"
Nov 2006
Saskatchewan, Canada
3×37×41 Posts |
![]() |
![]() |
![]() |
![]() |
#8 |
Feb 2008
Bray, Ireland
139 Posts |
![]()
Is there a way to restart stage 2 only, while keeping the stage 1 result? I want to test different memory values to see what it looks like.
I have m107610803 m107610803.bu m107610803.bu2 m107610803.write files. If I remove them, it starts from P-1 stage 1. |
![]() |
![]() |
![]() |
#9 |
Feb 2008
Bray, Ireland
8B16 Posts |
![]()
By the way, not sure if it matters, but P-1 stage 1 was stopped midway before doing stage 2.
Basically, initially I only had around 300MB assigned. Did stage 1 of exponent1 Started stage 1 of exponent2 (I wonder why stage 2 of exponent1 didn't start, checked logs and saw too little memory) Increase to 4GB, stage 2 of exponenent1 starts. Normal speed. At the same time stage 2 of one of the PRPs starts. Normal speed. Stage 2 of exponent1 finishes. Stage 1 of exponent2 completes. Stage 2 of exponent2 starts. Slow speed. Anyway, I've removed those m107610803 files and am restarting this. Let me see how it goes. |
![]() |
![]() |
![]() |
#10 |
Feb 2008
Bray, Ireland
139 Posts |
![]()
OK, that looks like the reason.
The first one used the original bounds for its stage 2; the ones that were used at the end of its stage 1. The second one switched bounds in the middle of its stage 1. So while the second one is slower, it has much bigger bounds. I'm not 100% familiar with the 2 stage P-1 algorithm. Are you allowed to change bounds in the middle of stage 1? When I change memory allocation while in stage 1, the bounds and speed change accordingly. But when I change memory allocation while in stage 2, I get the message "Ignoring optimal bounds, using bounds from save file". Is this correct? |
![]() |
![]() |
![]() |
#11 |
Jun 2003
23×607 Posts |
![]() Code:
[Worker #2 Dec 10 09:50] Ignoring suggested B1 value, using B1=610000 from the save file [Worker #2 Dec 10 09:50] Ignoring suggested B2 value, using B2=7022000 from the save file Last fiddled with by axn on 2020-12-13 at 02:38 |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Stage 2 Memory Setting - Again | Antonio | Software | 6 | 2012-09-04 12:48 |
Stage 2 Memory Settings | gamer30 | Software | 17 | 2012-08-23 20:02 |
memory usage in P-1 stage 1 | James Heinrich | Software | 5 | 2005-03-22 20:05 |
memory usage in stage 2 of P-1 factoring | gckw | Software | 3 | 2003-09-07 06:56 |
Cheesy memory slows down prime95? | nomadicus | Hardware | 9 | 2003-03-01 00:15 |