mersenneforum.org  

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

Reply
 
Thread Tools
Old 2007-09-27, 02:28   #34
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

2·13·131 Posts
Default

I'm still getting hard crashes of v25.5 on WinXP32 on my Northwood 3.0C. I ran a 2-thread torture test for 14 hours today, no problems at all, but tried running ECM in 2 threads for maybe 15 minutes and it died. No errors logged.
James Heinrich is offline   Reply With Quote
Old 2007-09-27, 02:42   #35
StarQwest
 
StarQwest's Avatar
 
Jan 2006
Tampa, Florida

2×97 Posts
Default M332,192,831 on v.25.5

OK, I just increased my L2 cache to 32,768KB and the per iteration time decreased to 0.644 seconds. Is there still something I can do to reduce it to 0.500?
StarQwest is offline   Reply With Quote
Old 2007-09-27, 02:51   #36
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

2·5·239 Posts
Default

How do you modify the L2 cache size?
ixfd64 is offline   Reply With Quote
Old 2007-09-27, 02:57   #37
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2×53×71 Posts
Default

Quote:
Originally Posted by StarQwest View Post
OK, I just increased my L2 cache to 32,768KB and the per iteration time decreased to 0.644 seconds. Is there still something I can do to reduce it to 0.500?
How can you increase your L2 cache? The L2 cache is part of your CPU.

Xyzzy's guess is probably accurate. Your huge FFT is putting enormous pressure on your smallish L2 cache. Using another CPU increases the pressure on the L2 cache - negating much of the advantage of using a second CPU.

What can you do? Not much short of buying new hardware. Sorry.
Prime95 is online now   Reply With Quote
Old 2007-09-27, 02:59   #38
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

11101011001102 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
I'm still getting hard crashes of v25.5 on WinXP32 on my Northwood 3.0C. I ran a 2-thread torture test for 14 hours today, no problems at all, but tried running ECM in 2 threads for maybe 15 minutes and it died. No errors logged.
Is it dying because of overcommitting memory? I have a fix for that particular bug. I've uploaded a new Win32 version for you to try.

Last fiddled with by Prime95 on 2007-09-27 at 03:08
Prime95 is online now   Reply With Quote
Old 2007-09-27, 03:17   #39
StarQwest
 
StarQwest's Avatar
 
Jan 2006
Tampa, Florida

2×97 Posts
Default

Quote:
Originally Posted by Prime95 View Post
How can you increase your L2 cache? The L2 cache is part of your CPU.

Xyzzy's guess is probably accurate. Your huge FFT is putting enormous pressure on your smallish L2 cache. Using another CPU increases the pressure on the L2 cache - negating much of the advantage of using a second CPU.

What can you do? Not much short of buying new hardware. Sorry.
It is easy to increase your cache. First press Ctrl+Alt+Delete to bring up Windows Task Manager (I am doing this on Windows XP, I don't know if this will work for Vista). Click on the performance tab and there will be a "Physical Memory (K)" section. Look at your System Cache to see how much cache you have available (it should be in the order of 400,000KB). Then, open up your Prime95 v.25.5 folder and click on local.txt. It will open up a configuration setting text box. Insert the line CpuL2CacheSize=32768. This will increase your L2 Cache to 32,768KB. You can set the number to anything you want up to your available cache limit.

I just increased the cache to 256,000KB and it reduced interation time to 0.636 seconds. However, I noticed that if I even move the mouse the iteration time increases to 0.650 - 0.660 seconds, even though I have the priority set to 10! Another thing that I am wondering about is that I only have 1GB of RAM on my computer. I am allotting 920MB (the maximum allowed) to this system, but Windows Task Manager says Prime95 is only using 367MB (it uses about 20MB for a 10 million digit number) and 95% of the CPU. Would adding more RAM increase the speed at all, or is 0.636 iterations per second the best I can do with my current machine using both cores of the Pentium D?
StarQwest is offline   Reply With Quote
Old 2007-09-27, 03:43   #40
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

22·7·167 Posts
Default

Quote:
Originally Posted by StarQwest View Post
I just increased the cache to 256,000KB and it reduced interation time to 0.636 seconds.
Is this just a version 25 thing?

I am still running the current production version 24.14 and LL testing a number in the 36M range. I tried CPUL2CACHESIZE anywhere from 128 to 32768 and the per iteration time on my P4 2.4 Ghz was always 0.082 secs.
petrw1 is offline   Reply With Quote
Old 2007-09-27, 03:51   #41
StarQwest
 
StarQwest's Avatar
 
Jan 2006
Tampa, Florida

19410 Posts
Default

Quote:
Originally Posted by petrw1 View Post
Is this just a version 25 thing?

I am still running the current production version 24.14 and LL testing a number in the 36M range. I tried CPUL2CACHESIZE anywhere from 128 to 32768 and the per iteration time on my P4 2.4 Ghz was always 0.082 secs.
It doesn't improve your per iteration time all that much (increasing from 128MB to 256000MB improved mine from 0.660 seconds to 0.636 seconds). The only way to check if it worked or not is to open up Prime95, click on Options, then CPU. It will tell you your L2 Cache size in this window at the bottom.
StarQwest is offline   Reply With Quote
Old 2007-09-27, 03:54   #42
chappjc
 
chappjc's Avatar
 
Jul 2007

22·5 Posts
Default

Quote:
Originally Posted by StarQwest View Post
It is easy to increase your cache. First press Ctrl+Alt+Delete to bring up Windows Task Manager (I am doing this on Windows XP, I don't know if this will work for Vista). Click on the performance tab and there will be a "Physical Memory (K)" section. Look at your System Cache to see how much cache you have available (it should be in the order of 400,000KB). Then, open up your Prime95 v.25.5 folder and click on local.txt. It will open up a configuration setting text box. Insert the line CpuL2CacheSize=32768. This will increase your L2 Cache to 32,768KB. You can set the number to anything you want up to your available cache limit.
L2 cache is something completely different from the Physical Memory you are describing.
chappjc is offline   Reply With Quote
Old 2007-09-27, 09:16   #43
Mr. P-1
 
Mr. P-1's Avatar
 
Jun 2003

7×167 Posts
Default

Quote:
Originally Posted by StarQwest View Post
It is easy to increase your cache. First press Ctrl+Alt+Delete to bring up Windows Task Manager (I am doing this on Windows XP, I don't know if this will work for Vista). Click on the performance tab and there will be a "Physical Memory (K)" section. Look at your System Cache to see how much cache you have available (it should be in the order of 400,000KB). Then, open up your Prime95 v.25.5 folder and click on local.txt. It will open up a configuration setting text box. Insert the line CpuL2CacheSize=32768. This will increase your L2 Cache to 32,768KB. You can set the number to anything you want up to your available cache limit.
As has already been pointed out, the system cache and the L2 cache are two very different things. You cannot alter your L2 cache other than by changing your processor. What you are doing with your CpuL2CacheSize line is overriding Prime95's auto-detected value.

Quote:
I just increased the cache to 256,000KB and it reduced interation time to 0.636 seconds.
That's very interesting, since it indicates, at least for these huge exponents, that the codepaths used when the autodetected (i.e., correct) value is used are highly suboptimal. George might want to have a look at that, (or he might not, given that the exponent is so far from the normal range).

Quote:
However, I noticed that if I even move the mouse the iteration time increases to 0.650 - 0.660 seconds, even though I have the priority set to 10! Another thing that I am wondering about is that I only have 1GB of RAM on my computer. I am allotting 920MB (the maximum allowed) to this system, but Windows Task Manager says Prime95 is only using 367MB (it uses about 20MB for a 10 million digit number)
That sounds about right. Extra memory is only used during stage 2 of P-1 and ECM.

Incidently, have you tried running a few ECM curves on your exponent? It could find a factor missed by P-1 and trial factoring and save you a lot of time.

EDIT: the limit for ECM factoring is 20,500,000, which your exponent is obviously way beyond.

Quote:
and 95% of the CPU.
My guess is that LL iterations can't be parallelised 100%, so for part of the time one thread will be waiting for the other.

Quote:
Would adding more RAM increase the speed at all, or is 0.636 iterations per second the best I can do with my current machine using both cores of the Pentium D?
Extra ram won't help but further revisions of the code might.

Last fiddled with by Mr. P-1 on 2007-09-27 at 10:10
Mr. P-1 is offline   Reply With Quote
Old 2007-09-27, 09:27   #44
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

239010 Posts
Default

Yes, the L2 cache and physical memory are two different things. I tried increasing my "L2 cache" to 32,768 kb like you described, and nothing happened.
ixfd64 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime95 version 29.4 Prime95 Software 441 2020-02-16 15:18
Prime95 version 27.3 Prime95 Software 148 2012-03-18 19:24
Prime95 version 26.3 Prime95 Software 76 2010-12-11 00:11
Prime95 version 25.4 Prime95 PrimeNet 143 2007-09-24 21:01
When the next prime95 version ? pacionet Software 74 2006-12-07 20:30

All times are UTC. The time now is 01:49.


Sat Jul 17 01:49:39 UTC 2021 up 49 days, 23:36, 1 user, load averages: 1.83, 1.57, 1.40

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.