mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Lone Mersenne Hunters

Reply
 
Thread Tools
Old 2012-12-26, 01:49   #1
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

1000011110012 Posts
Default assigning large amounts

Ok, maybe it's somewhere here.. but how do I reserve large numbers of assignments? (over ~700) I put it in Prime95, but it stops after a while, and it's sorta slow.

Any "tips" would be nice
kracker is offline   Reply With Quote
Old 2012-12-26, 15:57   #2
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

12EB16 Posts
Default

Quote:
Originally Posted by kracker View Post
Ok, maybe it's somewhere here.. but how do I reserve large numbers of assignments? (over ~700) I put it in Prime95, but it stops after a while, and it's sorta slow.

Any "tips" would be nice
Are you talking about the "send new end dates" process?
- It is not uncommon for it slow or freeze at times with very large batches but the assignments are still yours.

Or are you talking about the Manual Assignments page...
- I've hardly used it

Make sure in prime.txt that:
- MaxExponents (default 15 per worker) and UnreserveDays (Default 30?) are set high enough.
petrw1 is online now   Reply With Quote
Old 2012-12-26, 21:32   #3
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

1011810 Posts
Default

Some of the people that work in the LMH zone (above the current LMH wave's bit level), just grab the data, post their intent to the proper thread and go.
Mike (Xyzzy) is experienced in doing large blocks.
Uncwilly is online now   Reply With Quote
Old 2012-12-26, 22:10   #4
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×5,023 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
Some of the people that work in the LMH zone (above the current LMH wave's bit level), just grab the data, post their intent to the proper thread and go.
As Uncwilly says, for ranges which are not likely to be assigned by Primenet most people simply announce their intentions, and do the work. This has less impact on Primenet since it doesn't need to deal with thousands of AIDs.

For those ranges where others might automatically be assigned the work, it is best to get a real AID to ensure no "toes are stepped on" (read: duplication of effort). G72 uses a simple "slaved" mprime instance driven by Perl to import work to be assigned.

The following Perl code is similar to what I use -- it's been modified to not require a DB API -- simply works with flat files. Place the script in a directory where you have an instance of mprime configured to fetch only a single assignment using your username and a machine's name and run it from there, after building a list of desired candidates.

Code:
#!/usr/bin/perl

open (IN, "input.txt");  # List of desired candidates

while (<IN>) {
   print "$_";

   if (/.*=(\d*),(\d*),(\d*)/) {  # Look for "Factor=[Exponent],[From],[To]"

      open(OUT, ">worktodo.txt");
      print OUT "$_";
      close(OUT);

      `./mprime -c`;  # Run mprime to get an AID.

      # Adds the results to a file.
      `cat worktodo.txt >> full_fetched.txt`;

      sleep(1);  # Lessen load on Primenet.
   }
}

# Remove any lines which are not an assignment.
`grep -v N\/A full_fetched.txt | grep -v Worker | grep -v ^$ > fetched_with_aid.txt`;

# Clean up after ourselves so the next time the script runs we don't have duplication.
`rm full_fetched.txt`;

# Full assignments are in the file "fetched_with_aid.txt".
Lastly, another option is to simply use the manual assignments page, although you should limit the requests to a few hundred at a time.

Last fiddled with by chalsall on 2012-12-26 at 22:24 Reason: Removed need for a chdir() -- assume the script is run from the same directory as mprime.
chalsall is online now   Reply With Quote
Old 2012-12-26, 22:22   #5
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

32×241 Posts
Default

So if it is a range that is not at all likely to be worked on, is it enough to just "announce" that I am working on it?
kracker is offline   Reply With Quote
Old 2012-12-26, 22:26   #6
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×5,023 Posts
Default

Quote:
Originally Posted by kracker View Post
So if it is a range that is not at all likely to be worked on, is it enough to just "announce" that I am working on it?
Yup. Several of us were doing this a couple of years ago. So you know, 7xxM and 9xxM are still being worked, as is (obviously) 33xM. But everything else is pretty much open.

Last fiddled with by chalsall on 2012-12-26 at 22:59 Reason: s/700M and 900M/7xxM and 9xxM/
chalsall is online now   Reply With Quote
Old 2012-12-27, 01:07   #7
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

2·5,059 Posts
Default

Quote:
Originally Posted by chalsall View Post
still being worked, as is (obviously) 33xM.
But the 33x has a thread and those of use that are working in the range watch it. Beside I can tell you where in the 332.19-332.99 is safe. Right now 332.46 to 332.99 is idle and is largely at 70 bits. There are other smaller ranges that are also open for higher bit levels. Also anything that shows up as unassigned above 76 is fair game (when taken in chunks of a week's worth of work at a time or so.
Uncwilly is online now   Reply With Quote
Old 2014-05-29, 17:09   #8
TheMawn
 
TheMawn's Avatar
 
May 2013
East. Always East.

11·157 Posts
Default

I've grabbed another batch of 400M factoring work, taking stuff up to 268. If you look on mersenne.info, you'll be able to see my footprint (I'm kind of interested in seeing how long it'll stay there).

I've been reading up a bit on the LMH stuff to see if anything is current, and it sort of looks like no. I was going to officially announce my work in 400M but the people attacking from below are still in the mid 200M and the people attacking from above are just finishing 600M, so 400M is a bit of a graveyard for now, so I don't think announcing it is going to have much of an effect.

I did come across this, though, which made me smile.

Quote:
Originally Posted by ckdo View Post
I have a lone P3 happily crunching away in the 740M-741M range, at like 0.04M/week.
0.04M/week. Oh how times have changed...


EDIT: I just remembered I had another question about this. Even taking exponents up to 268 is fairly quick, and I was wondering if there was a way to submit the factors results and somehow say "...and no factors anywhere else". I take the exponents 50,000 at a time and I usually submit results through Primenet in small chunks as I go, but it would seem a bit easier to say no factors for M4XX,XXX,XXX through M4YY,YYY,YYY from 266 to 268 if possible.

Last fiddled with by TheMawn on 2014-05-29 at 17:16 Reason: Bad spelling is bad
TheMawn is offline   Reply With Quote
Old 2014-05-29, 19:18   #9
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×5,023 Posts
Default

Quote:
Originally Posted by TheMawn View Post
Even taking exponents up to 268 is fairly quick, and I was wondering if there was a way to submit the factors results and somehow say "...and no factors anywhere else".
Not without involving George, Scott, or James' time at an SQL console.

So long as you don't submit too many results at a time, everything should be fine. And, interestingly, the "no factor found" results are fairly inexpensive -- simply a DB update.

On the other hand, "factor found" results appear to need the launch of an external program by Primenet to verify the factor. This has empirically been shown to result in a small memory leak which eventually results in resource starvation. This is the probable reason for the occasional need for a reboot of Primenet's IIS service.
chalsall is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
48-bit large primes! jasonp Msieve 24 2010-06-01 19:14
a^n mod m (with large n) Romulas Math 3 2010-05-08 20:11
Are B1 and B2 values good for large amounts of RAM? JuanTutors Software 1 2006-10-27 04:39
Is this a relatively large number? MavsFan Math 3 2003-12-12 02:23
Server is assigning already factored exponents in 21M range GP2 PrimeNet 14 2003-11-01 21:34

All times are UTC. The time now is 13:48.


Fri Dec 3 13:48:08 UTC 2021 up 133 days, 8:17, 0 users, load averages: 1.62, 1.44, 1.26

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.