mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2021-12-30, 14:25   #1
ThomRuley
 
ThomRuley's Avatar
 
May 2003

3×97 Posts
Default Stopping and restarting factmsieve

I was thinking about pausing a factorization in msieve to finish a few high-priority jobs in prime95. If I stop gracefully with Control+c, will the program pick up where it left off when I restart it or is this likely to introduce errors into the data file?
ThomRuley is offline   Reply With Quote
Old 2021-12-30, 17:56   #2
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

10100110011012 Posts
Default

How to pause and restart depends on what phase of the job you're in.
Your thread title says "factmsieve", but your question says "msieve". Those are two different things.
If you're in the sieving part of factmsieve, then your plan works just fine, and factmsieve resumes the job by restarting the current block of Q-ranges.

If you're in the matrix-solving part of msieve, you'll want to restart msieve directly rather than through factmsieve, and you'll want to use -ncr flag to tell msieve "there is a matrix to resume, please resume it". Without -ncr, msieve will start the matrix over from 0 dimensions. I don't recall how to pass -ncr to factmsieve, which is why I call msieve directly in these circumstances (or I just don't cancel a factmsieve job when msieve is running the matrix).
VBCurtis is offline   Reply With Quote
Old 2021-12-30, 18:06   #3
swellman
 
swellman's Avatar
 
Jun 2012

DDB16 Posts
Default

Code:
msieve -v -ncr -nc3 -t 4
Is how I would restart a matrix that had Cntl-c out of on a four threaded machine.

The -nc3 tells msieve to move on the square root phase once LA is complete.

If not, msieve will finish the linear algebra (-nc2) and then terminate without finding factors. You could then restart msieve again, this time with -nc3 but why bother?
swellman is offline   Reply With Quote
Old 2021-12-30, 18:11   #4
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

3×52×71 Posts
Default

The catch with restarting a matrix job that was created by factmsieve is that factmsieve has created file names different from msieve default.
I remember copying the msieve invocation line from factmsieve's screen display and adding in -ncr, so that msieve would find all the files. But it has been quite a few years since I've used factmsieve, so... you know.
VBCurtis is offline   Reply With Quote
Old 2021-12-30, 18:42   #5
swellman
 
swellman's Avatar
 
Jun 2012

67338 Posts
Default

And I have never used factmsieve, so take my comments from that perspective.

Thom - play with it a bit on smaller jobs is the best advice. Losing 4 hours of work is annoying - 2 months a disaster.
swellman is offline   Reply With Quote
Old 2021-12-30, 19:02   #6
ThomRuley
 
ThomRuley's Avatar
 
May 2003

3·97 Posts
Default

As of this morning it was still sieving with about 70% of minimum relations. If I get back home and fid it doing matrix steps, i would just let it finish.
ThomRuley is offline   Reply With Quote
Old 2021-12-30, 19:35   #7
charybdis
 
charybdis's Avatar
 
Apr 2020

2×373 Posts
Default

Quote:
Originally Posted by swellman View Post
Thom - play with it a bit on smaller jobs is the best advice. Losing 4 hours of work is annoying - 2 months a disaster.
Isn't accidentally deleting all the relations and having to restart from scratch an important character-building experience?

In all seriousness, if you're worried about things going wrong when you restart the script, make sure to back up the relations file (the big .dat file), and the .dat.cyc and .dat.mat files if they exist. Nothing should happen to these files, but it's better to be safe than sorry.
charybdis is offline   Reply With Quote
Old 2021-12-30, 20:08   #8
swellman
 
swellman's Avatar
 
Jun 2012

1101110110112 Posts
Default

Quote:
Originally Posted by charybdis View Post
Isn't accidentally deleting all the relations and having to restart from scratch an important character-building experience?

In all seriousness, if you're worried about things going wrong when you restart the script, make sure to back up the relations file (the big .dat file), and the .dat.cyc and .dat.mat files if they exist. Nothing should happen to these files, but it's better to be safe than sorry.
Backups? Life’s an adventure - no net!!
swellman is offline   Reply With Quote
Old 2021-12-30, 20:23   #9
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

123158 Posts
Default

Quote:
Originally Posted by charybdis View Post
Isn't accidentally deleting all the relations and having to restart from scratch an important character-building experience?
This. Happens. To. Everyone.
VBCurtis is offline   Reply With Quote
Old 2021-12-30, 20:28   #10
charybdis
 
charybdis's Avatar
 
Apr 2020

2·373 Posts
Default

Quote:
Originally Posted by swellman View Post
Backups? Life’s an adventure - no net!!
OK, maybe I should get round to deleting my ~75GB of accumulated CADO relation files from now-finished SNFS jobs. Should be fine as long as I don't mix them up with unfinished jobs...
charybdis is offline   Reply With Quote
Old 2021-12-30, 22:08   #11
ThomRuley
 
ThomRuley's Avatar
 
May 2003

3×97 Posts
Default

UPDATE:

Thanks for letting me know that it is safe to pause msieve.

I found another workaround for the GIMPS jobs. Since the jobs are small, I simply opted to run them on another computer that has not been running any recent high-priority jobs. The first of these will finish in about 20 minutes. Now I am curious whether Primenet will take the job directly off the machine that was originally assigned the jobs, or whether they will disappear on the next completion estimate update, or I will have to manually remove them.
ThomRuley is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stopping a primenet work fetch loop SELROC GPU Computing 2 2019-03-31 10:40
Automatically stopping P-1 to benchmark? Why? Uncwilly Software 2 2018-02-23 05:24
Stopping New Work dmaine Information & Answers 1 2011-07-05 22:30
PrimeGrid PSP (Sieve) is stopping soon! Joe O Prime Sierpinski Project 1 2010-11-04 23:05
Stopping on a dime? R.D. Silverman NFSNET Discussion 1 2006-03-20 23:46

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


Mon Jun 27 06:11:21 UTC 2022 up 74 days, 4:12, 1 user, load averages: 1.14, 1.13, 1.07

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔