mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   P-1 question (https://www.mersenneforum.org/showthread.php?t=17374)

paulunderwood 2012-11-04 20:25

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? :bangheadonwall:

Maybe I should run 6 mprime programs?

sdbardwick 2012-11-04 20:39

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.

paulunderwood 2012-11-04 21:15

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?

kladner 2012-11-04 21:34

[QUOTE=paulunderwood;316980]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? :bangheadonwall:

Maybe I should run 6 mprime programs?[/QUOTE]

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
[U][B]MaxHighMemWorkers=2[/B][/U]
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

[/CODE]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.[/QUOTE]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

Xyzzy 2012-11-04 22:34

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

:mike:

philmoore 2012-11-04 23:19

It would be a useful feature for some future version of prime95/mprime to be able to specifiy the maximum memory [B]per thread[/B]. 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.

Dubslow 2012-11-04 23:35

[QUOTE=philmoore;317007]It would be a useful feature for some future version of prime95/mprime to be able to specifiy the maximum memory [B]per thread[/B]. 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]
[COLOR="White"].[/COLOR]
[QUOTE=kladner;316986]You can also set MaxHighMemWorkers to 6, and set a memory amount for each [Worker #n] section.
[quote=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.[/quote]
[/QUOTE]

philmoore 2012-11-04 23:40

Thanks!


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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.