mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2008-12-29, 17:43   #1
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2·17·73 Posts
Default Feature request: warn on overwrite

I just copied my relation to a msieve.dat file, (i'm glad that I *copied* and not *moved* them, made up my worktodo.ini and msieve.fb files and then started msieve (1.39).
When it said "sieving in progress", I recognized that i had forgotten the -nc command - and it had overwritten my msieve.dat file.

What I'd wish to have (just for such cases) is that msieve checks if the files mentioned before exist, that it asks "msieve.dat already exists - overwrite y/n?" (the dos-comand "copy *.out msieve.dat" takes a few minutes when I have got nearly 2 GB of relations)

Edit: Addendum: It would also be nice if msieve checked existing files if they fit to the actual job, and if yes, that it'd append instead of overwriting the msieve.dat file.

Last fiddled with by Andi47 on 2008-12-29 at 17:46
Andi47 is offline   Reply With Quote
Old 2008-12-29, 18:06   #2
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

This comes up over and over again.

The problem is that people want msieve to handle batches of numbers, not just one at a time. So how are you supposed to know when an existing savefile is supposed to be appended to, or overwritten completely when you start a new number? This is why the number being factored must be in the first line of the savefile. NFS postprocessing will never overwrite the savefile, but switching from NFS to QS means the savefile is now stale. Asking for user input isn't going to work in scripts. Maybe the binary should just never allow batch input of numbers, that would make restarting easy.
jasonp is offline   Reply With Quote
Old 2008-12-29, 18:18   #3
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2·17·73 Posts
Default

Quote:
Originally Posted by jasonp View Post
So how are you supposed to know when an existing savefile is supposed to be appended to, or overwritten completely when you start a new number?
add an -overwrite option which handles batch input without asking for user's input.
Andi47 is offline   Reply With Quote
Old 2009-06-01, 06:29   #4
10metreh
 
10metreh's Avatar
 
Nov 2008

232210 Posts
Default

I just suffered a similar fate. I had terminated a factMsieve.pl run (spawned by aliqueit) during the linear algebra, and I restarted aliqueit as usual. First of all aliqueit ran "msieve -np -v" to find a poly - this went straight through as there was already a poly. Then it started factMsieve.pl which started doing the matrix again - except that I found my test.dat (aliqueit equivalent of msieve.dat) file had been overwritten. I have two questions:

1. What caused the overwrite?
2. Can you complete a job when you only have the cycles, not the relations?



And no, I didn't run a QS, and even if I did, it would have used a separate msieve.dat.

Last fiddled with by 10metreh on 2009-06-01 at 06:31
10metreh is offline   Reply With Quote
Old 2009-06-01, 11:30   #5
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

Could aliqueit or the perl script delete existing files before commencing the postprocessing? NFS postprocessing should not delete the savefile for any reason now.

The cycles are not enough to complete the job, you need the relations that generated them.
jasonp is offline   Reply With Quote
Old 2009-06-01, 16:57   #6
10metreh
 
10metreh's Avatar
 
Nov 2008

91216 Posts
Default

Quote:
Originally Posted by jasonp View Post
Could aliqueit or the perl script delete existing files before commencing the postprocessing? NFS postprocessing should not delete the savefile for any reason now.

The cycles are not enough to complete the job, you need the relations that generated them.
Right then, I'll go and post this over in the aliqueit thread... (Of course it's possible there's a bug in factMsieve.pl, since not many people ever stop the script during a linalg run.)

Last fiddled with by 10metreh on 2009-06-01 at 16:58
10metreh is offline   Reply With Quote
Old 2009-06-06, 10:51   #7
10metreh
 
10metreh's Avatar
 
Nov 2008

2·33·43 Posts
Default

It's completed normally:

Code:
Sat Jun 06 11:29:51 2009  prp30 factor: 372267511290260300312765522717
Sat Jun 06 11:29:52 2009  prp70 factor: 1546433225670278770208034393844290214075157728093113941172801005679059
I am fed up with P30s turning up in my high C9x GNFSs, though!
10metreh is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature request tcharron Software 3 2018-10-03 20:08
Feature request TheMawn PrimeNet 3 2013-06-17 02:32
Feature request JuanTutors Software 22 2013-03-11 19:23
Feature Request moo Software 24 2005-11-26 22:08
Feature request JuanTutors Software 2 2005-07-04 22:02

All times are UTC. The time now is 01:06.


Sat Jul 17 01:06:12 UTC 2021 up 49 days, 22:53, 1 user, load averages: 2.35, 1.91, 1.60

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.