mersenneforum.org  

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

Reply
 
Thread Tools
Old 2012-11-04, 20:25   #1
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

22·941 Posts
Default P-1 question

I am running mprime with 6 threads trying to do 6 P-1. The box has 2GB of RAM, but no matter what I set the memory limit to, mprime it keeps saying "exceeded...looking for work that requires less memory" i would like to allocate 150Mb or 200Mb to each thread. Is there a cheat code for doing this?

Maybe I should run 6 mprime programs?

Last fiddled with by paulunderwood on 2012-11-04 at 20:37
paulunderwood is offline   Reply With Quote
Old 2012-11-04, 20:39   #2
sdbardwick
 
sdbardwick's Avatar
 
Aug 2002
North San Diego County

5×137 Posts
Default

The only solution that I know of is to run 6 separate instances, and give each instance the desired RAM allocation. I'd like to be wrong about this...I had 16 instances running on a box and admin becomes a PITA.
sdbardwick is offline   Reply With Quote
Old 2012-11-04, 21:15   #3
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

22·941 Posts
Default

That is what i am doing now.. 6 instances.

I have another question. because I have very little disk space to play with, is it all right to run an hourly crontab to delete all the m9999999 files? Or would this mess up stage 2?
paulunderwood is offline   Reply With Quote
Old 2012-11-04, 21:34   #4
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2·3·1,693 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
I am running mprime with 6 threads trying to do 6 P-1. The box has 2GB of RAM, but no matter what I set the memory limit to, mprime it keeps saying "exceeded...looking for work that requires less memory" i would like to allocate 150Mb or 200Mb to each thread. Is there a cheat code for doing this?

Maybe I should run 6 mprime programs?
Look in local.txt:
Code:
CpuSpeed=3617
OldCpuSpeed=3617
NewCpuSpeedCount=0
NewCpuSpeed=0
RollingAverage=1031
RollingStartTime=1352024271
ComputerID=pod64
SrvrP00=73
LastEndDatesSent=1351911205
CPUHours=24
Memory=12500 during 8:00-23:59 else 12500
RollingHash=1189150768
RollingCompleteTime=242295
WorkerThreads=3
ThreadsPerTest=1
MaxHighMemWorkers=2
ComputerGUID=d4efbd5cb254de5ea74983406c9ef877
SrvrUID=72938019
SrvrComputerName=357451788
SrvrPO2=1
SrvrPO3=7
SrvrPO4=12500
SrvrPO5=12500
SrvrPO6=480
SrvrPO7=1439
SrvrPO8=1
SrvrPO9=3
SrvrPO1=4

[Worker #1]
Affinity=3

[Worker #2]
Affinity=5

[Worker #3]
Affinity=4

[Worker #4]
Affinity=2

[Worker #5]
Affinity=1

[Worker #6]
Affinity=1
Your MaxHighMemWorkers should be at least 4 if you are running six threads. You can also set MaxHighMemWorkers to 6, and set a memory amount for each [Worker #n] section.

Quote:
(from undoc.txt)The Memory=n setting in local.txt refers to the total amount of memory the
program can use. You can also put this in the [Worker #n] section to place
a maximum amount of memory that one particular worker can use.
In any case, you only need to run one mprime with as many threads as you wish to use. There is no need to run multiple instances

Last fiddled with by kladner on 2012-11-04 at 21:37
kladner is offline   Reply With Quote
Old 2012-11-04, 22:34   #5
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

5×17×97 Posts
Default

We have always had to run multiple instances to do what you want to do.

Xyzzy is offline   Reply With Quote
Old 2012-11-04, 23:19   #6
philmoore
 
philmoore's Avatar
 
"Phil"
Sep 2002
Tracktown, U.S.A.

3×373 Posts
Default

It would be a useful feature for some future version of prime95/mprime to be able to specifiy the maximum memory per thread. I run several threads of ECM, and the program often has to re-initialize with lower memory limits to divide the allocated memory between multiple threads.
philmoore is offline   Reply With Quote
Old 2012-11-04, 23:35   #7
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

722110 Posts
Default

Quote:
Originally Posted by philmoore View Post
It would be a useful feature for some future version of prime95/mprime to be able to specifiy the maximum memory per thread. I run several threads of ECM, and the program often has to re-initialize with lower memory limits to divide the allocated memory between multiple threads.
.
Quote:
Originally Posted by kladner View Post
You can also set MaxHighMemWorkers to 6, and set a memory amount for each [Worker #n] section.
Quote:
Originally Posted by undoc.txt
(from undoc.txt)The Memory=n setting in local.txt refers to the total amount of memory the
program can use. You can also put this in the [Worker #n] section to place
a maximum amount of memory that one particular worker can use.
Dubslow is offline   Reply With Quote
Old 2012-11-04, 23:40   #8
philmoore
 
philmoore's Avatar
 
"Phil"
Sep 2002
Tracktown, U.S.A.

100010111112 Posts
Default

Thanks!
philmoore is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 22:33.


Fri Aug 6 22:33:09 UTC 2021 up 14 days, 17:02, 1 user, load averages: 4.51, 3.75, 3.41

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.