mersenneforum.org Advice for large SNFS jobs?
 Register FAQ Search Today's Posts Mark Forums Read

 2013-01-22, 13:23 #12 henryzz Just call me Henry     "David" Sep 2007 Liverpool (GMT/BST) 37×163 Posts I can tell it was late at night when I posted that. I posted a link to the 64-bit asm siever.
2013-01-22, 16:40   #13
ryanp

Jun 2012
Boulder, CO

1101010012 Posts

Quote:
 Originally Posted by Batalov No, this is only for the CPUs that have 64Kb L1 cache, i.e. AMD CPUs. (log264Kb = 16) Don't change L1 bits for Intel CPUs. How much of the q area have you already sieved? What side have you sieved on? There's no need really for a project of this size to go over q>2^30. Try to cover the area from q=10^7 to your current lower limit (where you started, 238450000). Even if you go over 2^30, the yield will be less and less. You may get a better yield by repeating some of the most productive (lower q) areas with the parameters that Tom (fivemack) suggested earlier. Have you used 3LP? Like - Code: lpbr: 33 lpba: 33 mfba: 66 mfbr: 96 alambda: 2.55 rlambda: 3.7
Yeah, that's my current approach -- re-sieving starting from q=10^7 with the parameters Tom suggested...

Quote:
 Originally Posted by Batalov Have you tried to filter your existing set of relations? Last but not the least, do you have a computer (set of computers) to solve the resulting >40M matrix? (As the saying goes, take no offense, - it's not the size (of the cluster), it's how you use it that matters. Have you done a snfs-~270-280 before doing this snfs-290?)
Yes, I'm aware that the matrix-solving will be challenging and slow... I have a C250 (not sure exactly what the SNFS difficulty is) going on a multi-core machine that's estimated to take about a month of matrix solving. My cluster isn't really easy to set up with MPI, but it's an option I'm considering...

 2013-01-22, 17:53 #14 Batalov     "Serge" Mar 2008 Phi(4,2^7658614+1)/2 23×3×419 Posts Well, it is going to be a hard project. You can find the snfs difficulty level in the logs of that other project, and you can roughly project that every 30 digits of snfs difficulty translate into 10 times more time for the project. The matrix of this size will definitely need MPI (and for MPI, you will need very fast interconnect or else the cluster's productivity will be less than that of a single strongest node). Here's the size of the 6,373- matrix (this is a similarly sized project, run by B.Dodson on an MPI cluster; the parameters above were from it; it was a 33-bit 3LP project): Code: Sat Jul 21 12:36:44 2012 matrix is 39095900 x 39096100 (11555.1 MB) with weight 3371381266 (86.23/col) Sat Jul 21 12:36:44 2012 sparse part has weight 2638144630 (67.48/col) If you will run from low q's with the 33-bit lpbr/a and mfba: 66 mfbr: 96, then you may get enough relations before reaching 300M. Bits were increased exactly to avoid running away too far on the q axis, definitely not to 1000M. The relations should be combinable. Last fiddled with by Batalov on 2013-01-22 at 17:59 Reason: typos
2013-01-23, 04:57   #15
ryanp

Jun 2012
Boulder, CO

52·17 Posts

Quote:
 Originally Posted by Batalov Well, it is going to be a hard project. You can find the snfs difficulty level in the logs of that other project, and you can roughly project that every 30 digits of snfs difficulty translate into 10 times more time for the project. The matrix of this size will definitely need MPI (and for MPI, you will need very fast interconnect or else the cluster's productivity will be less than that of a single strongest node).
So, here's the good news: msieve was able to generate a matrix for (2801^83-1)/2800 with about 461M input relations (368M unique). Here's a snippet of the log, in case anyone is interested (the forum won't let me post more than this...)

Code:
Tue Jan 22 14:32:07 2013  begin with 179606350 relations and 160161527 unique ideals
Tue Jan 22 14:34:22 2013  reduce to 179416277 relations and 154697630 ideals in 7 passes
Tue Jan 22 14:34:22 2013  max relations containing the same ideal: 174
Tue Jan 22 14:35:31 2013  removing 7091785 relations and 5091785 ideals in 2000000 cliques
Tue Jan 22 14:35:36 2013  commencing in-memory singleton removal
Tue Jan 22 14:35:49 2013  begin with 172324492 relations and 154697630 unique ideals
Tue Jan 22 14:37:10 2013  reduce to 172138029 relations and 149417492 ideals in 6 passes
Tue Jan 22 14:37:10 2013  max relations containing the same ideal: 168
Tue Jan 22 14:38:16 2013  removing 6922412 relations and 4922412 ideals in 2000000 cliques
Tue Jan 22 14:38:20 2013  commencing in-memory singleton removal
Tue Jan 22 14:38:32 2013  begin with 165215617 relations and 149417492 unique ideals
Tue Jan 22 14:40:03 2013  reduce to 165016535 relations and 144293839 ideals in 6 passes
Tue Jan 22 14:40:03 2013  max relations containing the same ideal: 165
Tue Jan 22 14:41:15 2013  removing 6862286 relations and 4862286 ideals in 2000000 cliques
Tue Jan 22 14:41:20 2013  commencing in-memory singleton removal
Tue Jan 22 14:41:31 2013  begin with 158154249 relations and 144293839 unique ideals
Tue Jan 22 14:42:58 2013  reduce to 157961804 relations and 139237031 ideals in 7 passes
Tue Jan 22 14:42:58 2013  max relations containing the same ideal: 160
Tue Jan 22 14:44:02 2013  removing 6724377 relations and 4724377 ideals in 2000000 cliques
Tue Jan 22 14:44:06 2013  commencing in-memory singleton removal
Tue Jan 22 14:44:17 2013  begin with 151237427 relations and 139237031 unique ideals
Tue Jan 22 14:45:35 2013  reduce to 151031091 relations and 134303757 ideals in 6 passes
Tue Jan 22 14:45:35 2013  max relations containing the same ideal: 156
Tue Jan 22 14:46:38 2013  removing 6670225 relations and 4670225 ideals in 2000000 cliques
Tue Jan 22 14:46:42 2013  commencing in-memory singleton removal
Tue Jan 22 14:46:52 2013  begin with 144360866 relations and 134303757 unique ideals
Tue Jan 22 14:48:03 2013  reduce to 144148234 relations and 129418117 ideals in 6 passes
Tue Jan 22 14:48:03 2013  max relations containing the same ideal: 151
Tue Jan 22 14:49:04 2013  removing 6603405 relations and 4603405 ideals in 2000000 cliques
Tue Jan 22 14:49:08 2013  commencing in-memory singleton removal
Tue Jan 22 14:49:18 2013  begin with 137544829 relations and 129418117 unique ideals
Tue Jan 22 14:50:20 2013  reduce to 137319456 relations and 124586283 ideals in 6 passes
Tue Jan 22 14:50:20 2013  max relations containing the same ideal: 147
Tue Jan 22 14:51:14 2013  removing 6568551 relations and 4568551 ideals in 2000000 cliques
Tue Jan 22 14:51:18 2013  commencing in-memory singleton removal
Tue Jan 22 14:51:31 2013  begin with 130750905 relations and 124586283 unique ideals
Tue Jan 22 14:52:43 2013  reduce to 130514605 relations and 119778057 ideals in 6 passes
Tue Jan 22 14:52:43 2013  max relations containing the same ideal: 140
Tue Jan 22 14:53:36 2013  removing 6536343 relations and 4536343 ideals in 2000000 cliques
Tue Jan 22 14:53:39 2013  commencing in-memory singleton removal
Tue Jan 22 14:53:49 2013  begin with 123978262 relations and 119778057 unique ideals
Tue Jan 22 14:55:10 2013  reduce to 123722752 relations and 114982284 ideals in 6 passes
Tue Jan 22 14:55:10 2013  max relations containing the same ideal: 136
Tue Jan 22 14:56:06 2013  removing 6560987 relations and 4560987 ideals in 2000000 cliques
Tue Jan 22 14:56:10 2013  commencing in-memory singleton removal
Tue Jan 22 14:56:19 2013  begin with 117161765 relations and 114982284 unique ideals
Tue Jan 22 14:57:27 2013  reduce to 116893302 relations and 110148493 ideals in 6 passes
Tue Jan 22 14:57:27 2013  max relations containing the same ideal: 132
Tue Jan 22 14:58:12 2013  removing 6556656 relations and 4556656 ideals in 2000000 cliques
Tue Jan 22 14:58:16 2013  commencing in-memory singleton removal
Tue Jan 22 14:58:26 2013  begin with 110336646 relations and 110148493 unique ideals
Tue Jan 22 14:59:35 2013  reduce to 110043331 relations and 105293451 ideals in 7 passes
Tue Jan 22 14:59:35 2013  max relations containing the same ideal: 125
Tue Jan 22 15:00:18 2013  removing 6618713 relations and 4618713 ideals in 2000000 cliques
Tue Jan 22 15:00:22 2013  commencing in-memory singleton removal
Tue Jan 22 15:00:29 2013  begin with 103424618 relations and 105293451 unique ideals
Tue Jan 22 15:01:26 2013  reduce to 103106567 relations and 100351046 ideals in 7 passes
Tue Jan 22 15:01:26 2013  max relations containing the same ideal: 120
Tue Jan 22 15:02:15 2013  removing 4488221 relations and 3261291 ideals in 1226930 cliques
Tue Jan 22 15:02:17 2013  commencing in-memory singleton removal
Tue Jan 22 15:02:24 2013  begin with 98618346 relations and 100351046 unique ideals
Tue Jan 22 15:03:13 2013  reduce to 98473321 relations and 96943205 ideals in 5 passes
Tue Jan 22 15:03:13 2013  max relations containing the same ideal: 117
Tue Jan 22 15:04:15 2013  relations with 0 large ideals: 50400
Tue Jan 22 15:04:15 2013  relations with 1 large ideals: 10132
Tue Jan 22 15:04:15 2013  relations with 2 large ideals: 133132
Tue Jan 22 15:04:15 2013  relations with 3 large ideals: 995810
Tue Jan 22 15:04:15 2013  relations with 4 large ideals: 4302185
Tue Jan 22 15:04:15 2013  relations with 5 large ideals: 11705716
Tue Jan 22 15:04:15 2013  relations with 6 large ideals: 20984820
Tue Jan 22 15:04:15 2013  relations with 7+ large ideals: 60291126
Tue Jan 22 15:04:15 2013  commencing 2-way merge
Tue Jan 22 15:05:23 2013  reduce to 71534639 relation sets and 70004523 unique ideals
Tue Jan 22 15:05:23 2013  commencing full merge
Tue Jan 22 15:24:09 2013  memory use: 8280.4 MB
Tue Jan 22 15:24:19 2013  found 38628551 cycles, need 38416723
Tue Jan 22 15:24:39 2013  weight of 38416723 cycles is about 2689414920 (70.01/cycle)
Tue Jan 22 15:24:39 2013  distribution of cycle lengths:
Tue Jan 22 15:24:39 2013  1 relations: 4501188
Tue Jan 22 15:24:39 2013  2 relations: 5120135
Tue Jan 22 15:24:39 2013  3 relations: 5404626
Tue Jan 22 15:24:39 2013  4 relations: 5022230
Tue Jan 22 15:24:39 2013  5 relations: 4474123
Tue Jan 22 15:24:39 2013  6 relations: 3769913
Tue Jan 22 15:24:39 2013  7 relations: 3034947
Tue Jan 22 15:24:39 2013  8 relations: 2310051
Tue Jan 22 15:24:39 2013  9 relations: 1670837
Tue Jan 22 15:24:39 2013  10+ relations: 3108673
Tue Jan 22 15:24:39 2013  heaviest cycle: 20 relations
Tue Jan 22 15:24:53 2013  commencing cycle optimization
Tue Jan 22 15:29:51 2013  pruned 5360265 relations
Tue Jan 22 15:29:52 2013  memory use: 6028.8 MB
Tue Jan 22 15:29:52 2013  distribution of cycle lengths:
Tue Jan 22 15:29:52 2013  1 relations: 4501188
Tue Jan 22 15:29:52 2013  2 relations: 5249050
Tue Jan 22 15:29:52 2013  3 relations: 5634416
Tue Jan 22 15:29:52 2013  4 relations: 5175687
Tue Jan 22 15:29:52 2013  5 relations: 4610943
Tue Jan 22 15:29:52 2013  6 relations: 3822774
Tue Jan 22 15:29:52 2013  7 relations: 3034347
Tue Jan 22 15:29:52 2013  8 relations: 2242055
Tue Jan 22 15:29:52 2013  9 relations: 1574214
Tue Jan 22 15:29:52 2013  10+ relations: 2572049
Tue Jan 22 15:29:52 2013  heaviest cycle: 18 relations
Tue Jan 22 15:31:08 2013  RelProcTime: 14912
Tue Jan 22 15:31:08 2013  elapsed time 04:08:35
The bad news: as you, I, and everyone else expected, it's huge, and it's going to take about 2 months to solve without MPI. :)

Code:
Tue Jan 22 16:09:42 2013  building initial matrix
Tue Jan 22 16:26:47 2013  memory use: 13546.6 MB
Tue Jan 22 16:29:10 2013  read 38416723 cycles
Tue Jan 22 16:29:18 2013  matrix is 38416545 x 38416723 (11588.0 MB) with weight 3463583491 (90.16/col)
Tue Jan 22 16:29:18 2013  sparse part has weight 2615145298 (68.07/col)
Tue Jan 22 16:35:02 2013  filtering completed in 2 passes
Tue Jan 22 16:35:11 2013  matrix is 38411484 x 38411662 (11587.7 MB) with weight 3463450692 (90.17/col)
Tue Jan 22 16:35:11 2013  sparse part has weight 2615116589 (68.08/col)
Tue Jan 22 16:37:29 2013  matrix starts at (0, 0)
Tue Jan 22 16:37:36 2013  matrix is 38411484 x 38411662 (11587.7 MB) with weight 3463450692 (90.17/col)
Tue Jan 22 16:37:36 2013  sparse part has weight 2615116589 (68.08/col)
Tue Jan 22 16:37:36 2013  saving the first 48 matrix rows for later
Tue Jan 22 16:37:41 2013  matrix includes 64 packed rows
Tue Jan 22 16:37:46 2013  matrix is 38411436 x 38411662 (11154.4 MB) with weight 2753602949 (71.69/col)
Tue Jan 22 16:37:46 2013  sparse part has weight 2539934136 (66.12/col)
Tue Jan 22 16:37:46 2013  using block size 65536 for processor cache size 20480 kB
Tue Jan 22 16:39:57 2013  commencing Lanczos iteration (32 threads)
Tue Jan 22 16:39:57 2013  memory use: 18349.5 MB
Tue Jan 22 16:43:56 2013  linear algebra at 0.0%, ETA 1600h46m
Tue Jan 22 16:45:07 2013  checkpointing every 30000 dimensions
So I guess I'll be checking back here in about 2 months unless I get MPI set up or find a kind soul who has an MPI cluster they can lend for a bit... hehe.

 2013-01-23, 05:19 #16 Batalov     "Serge" Mar 2008 Phi(4,2^7658614+1)/2 1005610 Posts Well, it is good news; you ran it as a 32-bit project so indeed, 368M unique relations would do. Two months LA is not a death sentence now with orthogonality checks. Do backup the whole dataset somewhere safe once, and then backup the .chk file every few days.
2013-01-24, 06:14   #17
ryanp

Jun 2012
Boulder, CO

52×17 Posts

Quote:
 Originally Posted by Batalov Well, it is good news; you ran it as a 32-bit project so indeed, 368M unique relations would do. Two months LA is not a death sentence now with orthogonality checks. Do backup the whole dataset somewhere safe once, and then backup the .chk file every few days.
Managed to improve things a bit: with a bunch more sieving and running the msieve filtering step with '-D 100', I now have this matrix:

Code:
Wed Jan 23 17:35:02 2013  matrix is 31290418 x 31290595 (12587.7 MB) with weight 3718456345 (118.84/col)
Wed Jan 23 17:35:02 2013  sparse part has weight 2955591831 (94.46/col)
Wed Jan 23 17:41:36 2013  filtering completed in 2 passes
Wed Jan 23 17:41:45 2013  matrix is 31289277 x 31289453 (12587.6 MB) with weight 3718418753 (118.84/col)
Wed Jan 23 17:41:45 2013  sparse part has weight 2955581343 (94.46/col)
Wed Jan 23 17:44:46 2013  matrix starts at (0, 0)
Wed Jan 23 17:44:53 2013  matrix is 31289277 x 31289453 (12587.6 MB) with weight 3718418753 (118.84/col)
Wed Jan 23 17:44:53 2013  sparse part has weight 2955581343 (94.46/col)
Wed Jan 23 17:44:53 2013  saving the first 48 matrix rows for later
Wed Jan 23 17:44:59 2013  matrix includes 64 packed rows
Wed Jan 23 17:45:05 2013  matrix is 31289229 x 31289453 (12151.2 MB) with weight 3104613918 (99.22/col)
Wed Jan 23 17:45:05 2013  sparse part has weight 2872469612 (91.80/col)
Wed Jan 23 17:45:05 2013  using block size 65536 for processor cache size 20480 kB
Wed Jan 23 17:47:19 2013  commencing Lanczos iteration (32 threads)
Wed Jan 23 17:47:19 2013  memory use: 17684.1 MB
Wed Jan 23 17:50:58 2013  linear algebra at 0.0%, ETA 1199h45m
Wed Jan 23 17:52:09 2013  checkpointing every 30000 dimensions
So, 50 days' work... not great, but not terrible either.

 2013-01-24, 06:45 #18 Batalov     "Serge" Mar 2008 Phi(4,2^7658614+1)/2 23·3·419 Posts When you have a .chk file, save it and you can carefully kill* and try to -ncr with different number of threads. (avoid accidentally repeating the last command line from shell history, i.e. -nc2. Do -ncr.) On different systems, different -t # (numbers of threads) turn out to be best. (Smaller number of threads may run each longer on an atomic portion, but then sync may happen faster. On a 2 x 6-core Xeon workstation, I've tried many times and the best # of threads was 8 or 9. And setting affinities to threads only made things worse.) _________ *"carefully" involves some seemingly strange rites. Don't kill the job at dimension that is ~ within +-1000 of a number divisible by 5000. This is because an orthogonality check too close to a save file will report failure (even though everything is within norm). There's a detailed explanation in the msieve threads, but just follow a rule of thumb: press ^C only when dimension's 4th digit from right (resposible for thousands) is 1,2,3 or 6,7,8.
 2013-01-25, 03:25 #19 Batalov     "Serge" Mar 2008 Phi(4,2^7658614+1)/2 100111010010002 Posts I see that an invisible HWMNBN got a bit emotional and beautified my message. Ah, memories, memories... We all HWMNBN apparently has got a few.
2013-01-25, 08:09   #20
Dubslow

"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts

Quote:
 Originally Posted by Batalov I see that an invisible HWMNBN got a bit emotional and beautified my message. Ah, memories, memories... We all HWMNBN apparently has got a few.
Maybe -ncr would have been even better.

 2013-01-25, 14:46 #21 ryanp     Jun 2012 Boulder, CO 52×17 Posts BTW, can you clarify what you meant when you said "you ran it as a 32-bit project"? Are you referring to the fact that I used the 32-bit gnfs-lasieve* binaries, or something else? What would have been different if it had been run as a 64-bit project? Would I have needed more or fewer relations, would I have gotten better yields from the lattice sievers, etc.?
 2013-01-25, 15:21 #22 Dubslow Basketry That Evening!     "Bunslow the Bold" Jun 2011 40

 Similar Threads Thread Thread Starter Forum Replies Last Post VBCurtis Factoring 11 2015-03-09 07:01 Warlord Software 12 2013-10-11 22:18 WraithX Factoring 59 2013-07-30 01:13 ixfd64 Factoring 3 2012-06-06 08:27 bdodson Factoring 20 2008-11-26 20:45

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

Thu Feb 2 11:16:07 UTC 2023 up 168 days, 8:44, 1 user, load averages: 0.91, 1.00, 0.97