mersenneforum.org  

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

Reply
 
Thread Tools
Old 2004-05-04, 15:04   #1
crash893
 
crash893's Avatar
 
Sep 2002

23×37 Posts
Lightbulb saving over a network

I have three computers that are running prime95 right now that could be wisked away at anytime to be formated and disturbuted


I tried makeing 3 diffrent folders on a machine that was going to be there longer and then exe it from the network drive but it was awfully slow and it used alot of bandwith

does anyone know a way were prime will back up its progress every so often to a diffrent drive than it lives

?
crash893 is offline   Reply With Quote
Old 2004-05-04, 18:51   #2
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

70210 Posts
Default

From undoc.txt:

Quote:
In prime.ini you can force the program to use different filenames for 6 files.
This is in response to a user that is running security software that prevents
writing to any file with a .ini extension. There may well be other uses.
You can also change the working directory (identical to the -W command line
argument).
prime.ini=your_filename
local.ini=your_filename
worktodo.ini=your_filename
prime.log=your_filename
prime.spl=your_filename
results.txt=your_filename
WorkingDir=your_directory_name
PrimeCruncher is offline   Reply With Quote
Old 2004-05-04, 21:46   #3
crash893
 
crash893's Avatar
 
Sep 2002

23×37 Posts
Default

so change WorkingDir=your_directory_name to \\whatevercomputer\whatever unique folder?



does it work over the network ( if you know off the top of your head ) im going to test it here in a bit


thanks i saw that before but i never saw the workdir part (guess i need to read better) thanks
crash893 is offline   Reply With Quote
Old 2004-05-04, 22:00   #4
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

2×33×13 Posts
Default

I assume it works over the network, though I haven't actually tried it. But yes, \\computername\shared_folder_name should do it.
PrimeCruncher is offline   Reply With Quote
Old 2004-05-05, 01:37   #5
crash893
 
crash893's Avatar
 
Sep 2002

23·37 Posts
Default

good news

\\whatever\c\whatever works


bad news


prime runs at about 16% and the network useage on a 100mb full duplex lan goe to about 12%


so is there a way to have the working dir the dir that prime is in but save one back up file localy and the other over the network?

i dont need prime to work off the other computer but just to store a back up there incase it gets tapped to go out on the floor or something like that
crash893 is offline   Reply With Quote
Old 2004-05-05, 03:41   #6
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13×89 Posts
Default

Maybe there is a problem is with the network? The only real traffic caused by Prime95 is a few MB to load the .exe then a few more MB each time the save file is created (assuming you are LL testing), it should not even be noticable.
geoff is offline   Reply With Quote
Old 2004-05-05, 07:36   #7
crash893
 
crash893's Avatar
 
Sep 2002

23×37 Posts
Default

its a enterprize grade network

we have 500 employies i dont know how 12mb could take that long espasually since they are both on the same switch


try it your self see if you get the same results
crash893 is offline   Reply With Quote
Old 2004-05-05, 09:09   #8
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29·41 Posts
Default

Is there any difference if you map a drive letter to your share and then write to that drive letter?
smh is offline   Reply With Quote
Old 2004-05-05, 13:47   #9
Reboot It
 
Reboot It's Avatar
 
Aug 2002
London, UK

7·13 Posts
Default

My experience is that it can take a long time (may be as much as two minutes ) to load from the first save file when you restart Prime95, during which time the CPU load varies a lot, maybe between 10%-30% (YMMV, though), but when it finishes loading and says "Resuming primality test..." (or whatever), the CPU goes to 100% as expected.

Writing the save files, although taking longer than on a local hard drive, is much quicker - a second or two?
Reboot It is offline   Reply With Quote
Old 2004-05-05, 18:51   #10
S00113
 
S00113's Avatar
 
Dec 2003

D816 Posts
Default

Quote:
Originally Posted by crash893
does anyone know a way were prime will back up its progress every so often to a diffrent drive than it lives?
I run mprime on Linux machines with work dir in a subdirectory under /tmp, and a cron job which back up the files to a NFS share every two hours. Works quite efficiently, since mprime writes to local disc and backup is run while mprime is working.

I had a method for Windows 95 too back in '97, involving a Samba share on a Linux machine, and a couple of registry entries to run a batch file which backed up to that share on startup and at user login. But that would require Administrator access with modern Windows, I think. And with modern Windows you probably have a cron equivalent which can schedule the job at specific times. I don't know if regular users can set up cron jobs on Windows.

The Samba share had the same name everywhere, but by Samba magic that share would be a separate directory for each machine mounting it. The machine local batch file just called another batch file, backup.bat, on the server. This way I could improve backup.bat without reinstalling it on a lot of computers. First backup.bat checked if Prime95 was installed. If it was, it would back up the directory with the save files. If not it would reinstall Prime95 with the save files on the server, and set up to run the batch file at startup and login in case that information was lost too. When a machine was reinstalled, I just had to run the backup script from the Samba server to get it back up and running Prime95 with the old save files. I could run the same script on new machines to install Prime95 for the first time.

In fact I think backup.bat was generated on demand by the Samba server. It generated a local.ini with the netBIOS name of the Windows machine as ComputerID. It must have got that from Samba (I think more modern Windows' have this in an envirorment variable. %COMPUTERNAME% or something.)

Unfortunately the server was retired in '99, and the batch files have gone to heaven.

Disclaimer: I am not a Windows user. Last time I did anyting useful on a Windows machine, except running Putty or setting up prime95, was in '98. There are probably far smarter ways to do all this on Windows in 2004, and I don't even know if my old way would work anymore.
S00113 is offline   Reply With Quote
Old 2004-05-05, 20:43   #11
PrimeCruncher
 
PrimeCruncher's Avatar
 
Sep 2003
Borg HQ, Delta Quadrant

70210 Posts
Default

Quote:
Originally Posted by crash893
good news
prime runs at about 16% and the network useage on a 100mb full duplex lan goe to about 12%


so is there a way to have the working dir the dir that prime is in but save one back up file localy and the other over the network?

i dont need prime to work off the other computer but just to store a back up there incase it gets tapped to go out on the floor or something like that
Well then maybe set up Prime95 on each computer locally, set the folder to be shared, then on the safe computer, set up a scheduled batch file or something that copes files like worktodo.ini, prime.spl, and the save files (should be easy to find since it doesn't have a file extension) and saves them on the safe computer.
PrimeCruncher is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving disk space? Xyzzy Msieve 4 2015-11-14 13:59
Daylight Saving Time davieddy Lounge 27 2015-02-26 18:45
Prime95 NOT Saving!!! Primeinator Information & Answers 9 2008-09-22 19:00
Not Saving BioRules Information & Answers 9 2008-05-31 13:52
Saving computation in ECM dave_dm Factoring 8 2004-06-12 14:18

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

Fri Dec 4 14:20:59 UTC 2020 up 1 day, 10:32, 0 users, load averages: 1.19, 1.45, 1.70

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.