![]() |
![]() |
#1 |
Oct 2004
Austria
2×17×73 Posts |
![]()
Is it possible to save interim residues of (huge) p-1 factorisation attempts with GMP-ECM - say every hour or so?
![]() I am doing a p-1 with large B1 and B2 bounds now, and have the problem that windows has installed an update and now comes up with a massage like "an update has been installed and needs a reboot to complete installation. It will reboot in 5 minutes". When I leave the PC allone and fail to click "reboot later" I will definitly lose nearly 60 CPU hours of P-1 work.... ![]() Last fiddled with by Andi47 on 2006-06-15 at 07:53 |
![]() |
![]() |
![]() |
#2 |
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
![]()
Sorry, GMP-ECM has no feature to save residues periodically yet. In 6.1, we catch signals and try to exit gracefully upon SIGTERM and SIGINT, including writing the residue of stage 1 done so far. It works nicely on unix-like OSs, but I don't know if it works at all under Windows/MinGW. Can you post the lines from config.h in your GMP-ECM 6.1 directory that contain the string "HAVE_SIGNAL"?
Alex |
![]() |
![]() |
![]() |
#3 | |
Aug 2005
Brazil
2×181 Posts |
![]() Quote:
/* Define to 1 if you have the `signal' function. */ #define HAVE_SIGNAL 1 |
|
![]() |
![]() |
![]() |
#4 | |
Oct 2004
Austria
1001101100102 Posts |
![]() Quote:
Code:
/* Define to 1 if you have the `signal' function. */ #define HAVE_SIGNAL 1 /* Define to 1 if you have the <signal.h> header file. */ #define HAVE_SIGNAL_H 1 One of these steps crashed halfway through stage 2, I guess it was out of memory. The save file was empty. ![]() One more strange observation: The README file suggests to resume using a line like this: Code:
$ ./ecm -resume toto 1e7 Code:
GMP-ECM 6.1 [powered by GMP 4.2.1] [ECM] Resuming P-1 residue saved by Andreas@ANDREAS with GMP-ECM 6.1 on Thu Jun 15 12:00:42 2006 Input number is 2^1061-1 (320 digits) Using B1=1000000000-3000000000, B2=3181298620516, polynomial x^120 Step 1 took 8718250ms ![]() If I use this imput line Code:
$ ./ecm -resume toto -pm1 1e7 >outputfile.out Code:
GMP-ECM 6.1 [powered by GMP 4.2.1] [P-1] Last fiddled with by Andi47 on 2006-06-15 at 18:52 |
|
![]() |
![]() |
![]() |
#5 | |
Aug 2002
26·5 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#6 | ||||
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
![]() Quote:
Quote:
Quote:
Quote:
Alex |
||||
![]() |
![]() |
![]() |
#7 | |||
Oct 2004
Austria
2·17·73 Posts |
![]() Quote:
Quote:
See it like this: Writing the save file consumes a split second of CPU-time. A crash halfway through stage 2 (out of memory, or something?) whithout having a savefile may loose a couple of hours of cpu-time. As for the checkpoints: I agree - no more ![]() Quote:
Code:
GMP-ECM 6.1 [powered by GMP 4.2.1] (edit: typos) Last fiddled with by Andi47 on 2006-06-15 at 20:20 |
|||
![]() |
![]() |
![]() |
#8 |
"Sander"
Oct 2002
52.345322,5.52471
118910 Posts |
![]()
Regarding Windows Update, why don't you download the updates automatically but choose to install them when it suits you?
I think if you open an application like wordpad, type a few characters but NOT save the document, windows can't reboot. It will stop at the save document dialog box. It might have closed gmp-ecm before that though. |
![]() |
![]() |
![]() |
#9 |
Oct 2004
Austria
9B216 Posts |
![]() Code:
GMP-ECM 6.1 [powered by GMP 4.2.1] [P-1] Resuming P-1 residue saved by Andreas@ANDREAS with GMP-ECM 6.1 on Thu Jun 15 12:00:42 2006 Input number is 2^1061-1 (320 digits) Using B1=1000000000-5000000000, B2=705032704-6357399348316, polynomial x^120 Step 1 took 17439172ms Step 2 took 56984ms ![]() ![]() |
![]() |
![]() |
![]() |
#10 | ||
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
![]() Quote:
$ ecm 1e9 1 <somecomposite.txt & [1] pid <GMP-ECM output> $ kill pid The number after [1] is the process id of the GMP-ECM process. You need to give it to the kill command to specify which process to kill. Note: if there's no $ prompt after the GMP-ECM output, just hit enter once. Also, can you please run GMP-ECM as above, but instead using the kill command terminate the process in the Windows task manager? Does it print the "Interrupted at prime ..." message then? Quote:
Alex |
||
![]() |
![]() |
![]() |
#11 | |||
Oct 2004
Austria
2·17·73 Posts |
![]() Quote:
Quote:
Code:
$ecm 1e9 <1701-c205 & [2] 1080 [1] Terminated ecm 1e9 <1701-c205 Quote:
Code:
ecm -save m1061_5e9.sav -resume m1601_1e9.sav -pm1 -mpzmod -maxmem 1600 -treefile /var/tmp/ecmtree 5e9 >m1601_5e9.out Code:
METHOD=P-1; B1=1000000000; N=2^1061-1; X=0x18754a43f3406f17854426c70fcb5066cd33b9a9b8317e965f7f9dabe3d8ca3527b32ab0f5633fc4c257db1e969dbf8a4d91a774ad7e728f94af6ea8c110a5b086baa319ba7cb044ca8e20fdfae80db0e7781286bac6143cec25f2c687cb6f0aafe32df371e50fa05ee6641b522f4877da01e14bce95c69741b36b0fd8eff307fe9fa700aa; CHECKSUM=653811958; PROGRAM=GMP-ECM 6.1; X0=0xd3acfc5e; WHO=Andreas@ANDREAS; TIME=Thu Jun 15 12:00:42 2006; Edit: Corrected my input line Last fiddled with by Andi47 on 2006-06-16 at 15:59 |
|||
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
residues and non residues of general quadratic congruences | smslca | Math | 0 | 2012-10-12 06:42 |
Compare interim files with different start shifts? | zanmato | Software | 12 | 2012-04-18 14:56 |
An aliquot sequence with huge, huge, huge tracts of sand !!! | garambois | Aliquot Sequences | 50 | 2012-01-19 18:25 |
Interim and Res64 Residues | Primeinator | Information & Answers | 14 | 2008-09-19 08:46 |
Interim iterations in status.txt are not random | GP2 | Data | 2 | 2003-10-28 22:51 |