mersenneforum.org LLRNet
 Register FAQ Search Today's Posts Mark Forums Read

 2007-06-02, 08:41 #1 em99010pepe     Sep 2004 2×5×283 Posts LLRNet What about using LLRNET to bring more people to the fun? I asked Lars how to set up a LLRNet server, here his reply. Code:  If you do not have it already downloaded the llrnet client from PSP you should do that at: http://www.psp-project.de/software/llrnet_windows.zip This file contains everything we need for the server. If your project targets a base different to "2" you need the client from the sr5 project as the normal client has a restriction only to allow base 2 tests. The server has no restrictions whatsoever. The server application we need is llrserver.exe. Before we can start this we need to make some modifications to some files. First we need a file called: knpairs.txt The file contains all tests not yet distributed to a client. It has the "newpgen" format. 1000000000:P:0:2:257 222113 2132853 222361 2060960 222361 2115176 The first line describes the kind of test to be done. There can only be one of these lines in the complete file!!! There is no way to switch between different test type within one server. So if you need to test differnt types like at SR5 you need two servers. The example shows how the line looks for PSP. The following lines contains the tests. If you need to modify this file you should stop the server. Next file to modify is llr-serverconfig.txt The following text contains an example for this config. I will give the informations where you should change something within the file. My comments all start with -->> -- -- LLRNet - network part of LLR -- -- (C) 2004-2005 Vincent Penne -- -- Released under GNU LIBRARY GENERAL PUBLIC LICENSE -- (See file LICENSE that must be included with this software) -- -- SERVER CONFIGURATION FILE -- -- WARNING: comments start with two dashes -- ------------------- -- general settings ------------------- -- server name -- used in particular to identify the server into the sql stats table -- (change this name if you have several servers using the same sql database) serverName = "llrserver" -- port that the server listen to (make sure clients are configured -- with the same number) -->> The port number in the example is the same as from the PSP server -->> Choose a port that is easiest for your network -->> For example 80 could be interisting as most firewalls allow this to pass. -->> Every server port is only allowed once per PC port = 12984 -- maximum number of concurrent connections maxConnections = 8 -- maximum allowed time for a user to complete a job (in seconds) -->> This setting depends on the size of your jobs and the control -->> you have over your clients 28 days is the PSP setting -->> on a local network i would recommend something like 5 days -->> or even less if you have very short tests jobMaxTime = 28 * 24 * 3600 -- 28 days -- various files used by the server -->> The file containing all tests as we have set up before knPairsFile = "knpairs.txt" -->> This file contains all tests handed out to a client with additional informations -->> It is created by the server automatic jobListFile = "joblist.txt" -->> File containing all results returned by the client resultsFile = "results.txt" -- if you want the server to regularly prune your knpairs and joblist -- files, then uncomment the following line and set the period of -- pruning in second. prunePeriod = 1 * 24 * 3600 -- every 1 days -- (for gurus only) -->> I do not remember what this switch does you should try it. if WIN32 then no_shell = 1 end -- format used to display numbers in result file -- (uncomment the appropriate line) -->> The foolowing string contains the format how the reuslts are put into the results file. -->> With the active line you get the following result output: -->> -->>user=Sloth -->>[2006-10-16 06:45:37] -->>258317*2^3050735+1 is not prime. Res64: 675A861E1064B302 Time : 446049.0 sec. -->> -->>the sr5 server for riesel number for example looks like this: displayFormat = "%s*5^%s-1" displayFormat = "%s*2^%s+1" -- use this for PRP type test --displayFormat = "%s*2^%s-1" -- use this for LLR type test (default) -- uncomment the following line to remove username check when -- accepting a new result noUserCheck = 1 -- you can customize the way the date is displayed -- (in joblist.txt and results.txt) --function DisplayDate() -- return date("%d/%m/%Y\ %r") --end ----------------- -- PROXY settings ----------------- -- uncomment the following line to make this server a proxy server -->> I have never tried to use the proxy settings so if you want to use them -->> please give me an info when you find problems. --proxy = 1 -- address of the parent server proxyMasterAddress = "localhost" proxyMasterPort = 7000 -- name of this proxy (change 'nobody' to something else) proxyName = "nobody" -- size of the proxy cache proxyCacheSize = 10 -- minimum number of results to send back to the main server -- at a time proxyTosendThreshold = 10 -- name of the tosend file of the proxy tosendFile = "tosend-proxy.txt" ----------------- -- User CALLBACKS ----------------- -- below is an example of callback to log all primes as they are -- found into an additional file --function OnPrime(t, k, n, job) -- local fileprime = openfile("primes.txt", "a") -- if fileprime then -- write(fileprime, format("[%s]\n", job.resultdate)) -- write(fileprime, format(displayFormat.." is prime! Time : %d.0 sec.\n", -- k, n, -- Seconds() - job.seconds)) -- closefile(fileprime) -- end --end -- similarly, you can have another callback called OnResult, -- beware that it takes one additional argument (the residue) --function OnResult(t, k, n, residue, job) -- insert whatever you want here --end ------------------------------------------ -- SQL settings (mySql only at the moment) ------------------------------------------ -- uncomment the line below to use SQL sqlUsed = 0 -- sql general configuration --sqlServer = "localhost" --sqlServerPort = 3306 --sqlDriver = "mysql" --sqlUser = "psptr" --sqlPassword = "bravo" --sqlDbName = "primesierpinskitr" ----------------- -- SQL user table ----------------- -- uncomment the line below and set the name of the table of users --sqlUsersTable = "users" -- name of the fields containing the username and the password --sqlUsernameEntry= "username" --sqlPasswordEntry= "password" ------------------------ -- SQL pairs and results ------------------------ -- uncomment the line below and set the name of the tables --sqlPairsTable = "pairs" --sqlJobsTable = "jobs" --sqlResultsTable = "results" --sqlRejectedTable= "rejected" ------------ -- SQL stats ------------ -- uncomment the line below to allow llrnet server statistics and infos -- to be regularly updated into the given sql table --sqlStatsTable = "stats" -------------------------- -- WIN32 specific settings -------------------------- -- uncomment the line below to hide the tray icon on startup --hideTrayIcon = 1 -- change this value if you want to run several client as services serviceName = "LLRserver" -- under WIN32 platform, uncomment the following line to log stdout and stderr -- to a file called "stdout.txt" logOutput = 1 -------------------------------------------------------------------------- file end. In short you only have to modify the following lines from the config file port = 12984 jobMaxTime = 28 * 24 * 3600 -- 28 days knPairsFile = "knpairs.txt" jobListFile = "joblist.txt" resultsFile = "results.txt" prunePeriod = 1 * 24 * 3600 -- every 1 days displayFormat = "%s*2^%s+1" -- use this for PRP type test Carlos Last fiddled with by em99010pepe on 2007-06-02 at 08:48
 2007-06-03, 17:04 #2 em99010pepe     Sep 2004 2×5×283 Posts Kosmaj, I'm testing a LLRnet server. To all, Please go here and download LLRNET. Then open llr-clientconfig.txt and set up the following lines: server = "85.240.233.61" port = 9000 -- username username = "yournick" The numbers to test were already done my me and will serve as double check. I just need to be sure I set up the server well. If I manage to do so I will move it to my work machine because at home I have a dynamic IP. Thanks, Carlos Last fiddled with by em99010pepe on 2007-06-03 at 17:07
 2007-06-03, 20:07 #3 em99010pepe     Sep 2004 2·5·283 Posts First test from a user called kar_bon. user=kar_bon [06/03/07 21:00:01] 213*2^654703-1 is not prime. Res64: FE5E2B041F357641 Time : 1250.0 sec. My result using LLR 3.7.2 213*2^654703-1 is not prime. LLR Res64: FE5E2B041F357641 Time : 1123.714 sec. Kosmaj, please tell me if you want to set up a LLRnet server for the 5th RPS Drive. Carlos
 2007-06-03, 21:11 #4 em99010pepe     Sep 2004 2×5×283 Posts Thanks BlisteringSheep. Edit: Got your result: user=BlisteringSheep [06/03/07 22:31:22] 135*2^654706-1 is not prime. Res64: F87F18CF9A4ED1C6 Time : 1323.0 sec. My result: 135*2^654706-1 is not prime. LLR Res64: F87F18CF9A4ED1C6 Time : 1085.482 sec. Thank you. Carlos Last fiddled with by em99010pepe on 2007-06-03 at 21:34
 2007-06-03, 21:54 #5 BlisteringSheep     Oct 2006 On a Suzuki Boulevard C90 2·3·41 Posts Do you want them to keep running or do you want to wait until you move the server?
2007-06-03, 21:57   #6
em99010pepe

Sep 2004

2×5×283 Posts

Quote:
 Originally Posted by BlisteringSheep Do you want them to keep running or do you want to wait until you move the server?
I want to wait until I move the server to my work machine. Here at home my IP changes every 4 days. So before I shutdown the server I will wait for your result.

Carlos

user=BlisteringSheep
[06/03/07 23:04:33]
267*2^654706-1 is not prime. Res64: 34C0776ACA180AC4 Time : 1769.0 sec.

Here's mine:

267*2^654706-1 is not prime. LLR Res64: 34C0776ACA180AC4 Time : 1085.184 sec.

Both match. Thank you. Server is down. Tomorrow I will post the new IP.

Last fiddled with by em99010pepe on 2007-06-03 at 22:08

 2007-06-03, 23:17 #7 VBCurtis     "Curtis" Feb 2005 Riverside, CA 104478 Posts I'm not sure the 5th drive is the best use for this, but RPS has a few older group-searches that might be suited to LLRnet. k=65, k=125, k=210885, k=2995125705, etc. The 3rd (low-weight) drive is also a good candidate for LLRnet. My opinion here is that LLRnet is a good way to finish up some old outstanding projects that haven't gotten attention recently. I might assign one P4 to such an effort to help these orphaned projects finish up. We could also create a new drive for such a project-- say, ten k-values in k<300 to run from 500k to 1000k. Do a group sieve to 15T or so, and let 'em rip. -Curtis
 2007-06-04, 01:22 #8 VBCurtis     "Curtis" Feb 2005 Riverside, CA 112716 Posts We could also add Masser's submitted sieves for the k's he sieved to 1M but only LLR'ed to 700k. Kosmaj and I each reserved one of them, leaving I believe 4 k's left to LLR. -Curtis
 2007-06-04, 07:32 #9 em99010pepe     Sep 2004 2·5·283 Posts Server is up with new IP. server = "192.168.200.118" port = 9000 Looking at the IP I don't think I will manage to set up it at work. I need to find the real IP. EDIT: Real IP, need someone to test it. Thanks. server = "193.137.36.2" port = 9000 Carlos Last fiddled with by em99010pepe on 2007-06-04 at 07:35
 2007-06-04, 07:37 #10 em99010pepe     Sep 2004 2·5·283 Posts First let me see if the server works well at work for a week or so, then we can decide what to test. Do you guys agree? By the way, each server for each k to test. Carlos Last fiddled with by em99010pepe on 2007-06-04 at 07:38
2007-06-04, 08:07   #11
BlisteringSheep

Oct 2006
On a Suzuki Boulevard C90

24610 Posts

Quote:
 Originally Posted by em99010pepe Server is up with new IP. EDIT: Real IP, need someone to test it. Thanks. server = "193.137.36.2" port = 9000 Carlos
I can ping that address, but can't connect to it on port 9000.

 Similar Threads Thread Thread Starter Forum Replies Last Post ValerieVonck Software 12 2010-03-15 18:09 MyDogBuster Prime Sierpinski Project 6 2010-02-03 04:02 balachmar Prime Sierpinski Project 4 2008-07-19 08:21 mdettweiler Conjectures 'R Us 8 2008-05-18 22:41 masser Sierpinski/Riesel Base 5 6 2007-03-05 18:17

All times are UTC. The time now is 05:45.

Fri Oct 23 05:45:26 UTC 2020 up 43 days, 2:56, 0 users, load averages: 1.25, 1.58, 1.55