mersenneforum.org  

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

Reply
 
Thread Tools
Old 2009-08-27, 16:49   #1
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

22·401 Posts
Exclamation Crash!

I found Prime95 crashed a little while ago. From what I could see on the worker windows, the second core was using the bulk of the memory I had allocated doing a P-1 stage 2. The first core had completed P-1 stage 1 and was trying to start stage 2.

I managed to capture a temporary file that the error reporting service uses, It don't say much. There was nothing in the system logs.

The RAM allocation is 512 MB. The second core was running at 632 MB I think I made a mistake in thinking that each core would be allocated 512 MB. Not sure how to set it now.
storm5510 is offline   Reply With Quote
Old 2009-08-27, 21:08   #2
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

718810 Posts
Default

Quote:
Originally Posted by storm5510 View Post
The RAM allocation is 512 MB. The second core was running at 632 MB I think I made a mistake in thinking that each core would be allocated 512 MB. Not sure how to set it now.
I can't speculate about the cause of crash, but want to present a clarification:

"The RAM allocation is 512 MB." -- The allocation figure you give ("Available memory") is for only the auxiliary work areas used in P-1 (and ECM) stage 2. It is not a bound on total memory used, because it does not include any other memory allocation done by Prime95.

The reason is that all other (other than the auxiliary work areas, that is) memory allocation done by Prime95 is necessary, not optional, so there's no point in having the user limit it. Prime95 will allocate what it needs, and no more, other than the auxiliary work areas (which are the only optional memory allocations).

The difference of 120 MB (= 632 MB - 512 MB, or actually probably a bit more since the aux workareas probably don't total 512 MB exactly) probably represents what Prime95 had to allocate in order to do the processing at all.

Note that I'm not saying whether 512 MB was too large an amount to specify for "available memory". I'm just addressing the matter of what the 512 and 632 figures mean, relative to each other.
cheesehead is offline   Reply With Quote
Old 2009-08-27, 23:26   #3
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

22×401 Posts
Default

I restarted P95 without problems.

This computer has 2 GB total RAM. The system grabs 256 MB of that for its own used at power-on. By the time everything is loaded by the OS, there is usually around 1.3 GB available. I could have set the memory allocation higher in P95, but didn't.
storm5510 is offline   Reply With Quote
Old 2009-08-28, 01:08   #4
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

210018 Posts
Default

Pause the second worker until the first finishes stage 2.
Uncwilly is offline   Reply With Quote
Old 2009-08-30, 19:23   #5
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

7,699 Posts
Default

We would do a lot less trial factoring and a lot more interesting work (P-1 or ECM) if we could fix this problem.

We are tempted to go back to an older client that is not multi-threaded. Then we could define the memory per "worker".

(BTW, "MaxHighMemWorkers" did not work for us. It did allow the specified number of workers to use a lot of memory, but the workers that were not to use a lot of memory went idle. And the 2 workers set to use a lot of memory still fought over memory.)
Xyzzy is offline   Reply With Quote
Old 2009-08-30, 19:38   #6
S485122
 
S485122's Avatar
 
Sep 2006
Brussels, Belgium

157510 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
We are tempted to go back to an older client that is not multi-threaded. Then we could define the memory per "worker".
Even with the new multithreaded clients, you can limit them to one thread and run 4 instances like you did with the previous versions (I do this now on a quad core : one instance using 3 workers and one using one worker.) Another possibility would be to run one four threaded worker to do P-1 factoring (not very efficient though.)

Jacob
S485122 is online now   Reply With Quote
Old 2009-08-30, 22:56   #7
nucleon
 
nucleon's Avatar
 
Mar 2003
Melbourne

51510 Posts
Default

I'm hitting something similar on mprime under linux.

My work around, was to only do 1x P-1 at a time. The other workers to do double checks. This appears to be stable.

-- Craig
nucleon is offline   Reply With Quote
Old 2009-08-31, 01:02   #8
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

7,699 Posts
Default

Quote:
Even with the new multithreaded clients, you can limit them to one thread and run 4 instances like you did with the previous versions (I do this now on a quad core : one instance using 3 workers and one using one worker.)
Very cool! Thanks!

Xyzzy is offline   Reply With Quote
Old 2009-08-31, 02:07   #9
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

22×401 Posts
Default

I've had no problems since. I keep the same work type assigned to both cores; seemed to logical thing to do.
storm5510 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
gmp-ecm crash yoyo GMP-ECM 26 2011-06-01 06:31
GMP-ECM crash lavalamp GMP-ECM 55 2011-04-03 01:58
GMP-ECM crash on win XP SP3 yoyo GMP-ECM 2 2009-01-26 19:22
Crash? remaker Software 4 2007-05-03 16:39
Crash coastertux Software 2 2004-03-16 20:49

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

Wed Oct 21 08:14:01 UTC 2020 up 41 days, 5:24, 0 users, load averages: 1.62, 1.53, 1.45

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