mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > No Prime Left Behind

Reply
 
Thread Tools
Old 2008-02-08, 21:28   #67
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

2·5·283 Posts
Default

Tnerual kindly sent me a new modem. I'll only change it when I upgrade the server to a quad-core, maybe next week or so.

Thank you very much.

Carlos
em99010pepe is offline   Reply With Quote
Old 2008-02-08, 21:34   #68
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

23·3·112 Posts
Default

Quote:
Originally Posted by ET_ View Post
I know you use some automation script. Any db? Just curious...

Luigi
i use an awk script to put one result (from the LLRnet server one result contains 3 text-lines with user, date/time and result) in a file with one line per result and all needed data. after that i load them into Ex*el with some vb-scripts to summarize the data or make the graph. that's it. this update i need an hour or so, includes updating the html-pages!
kar_bon is offline   Reply With Quote
Old 2008-02-08, 21:54   #69
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

32·5·107 Posts
Default

Quote:
Originally Posted by kar_bon View Post
i use an awk script to put one result (from the LLRnet server one result contains 3 text-lines with user, date/time and result) in a file with one line per result and all needed data. after that i load them into Ex*el with some vb-scripts to summarize the data or make the graph. that's it. this update i need an hour or so, includes updating the html-pages!
I see... I used to update this way Fermatsearch site.
Now I decided to use MySQL and PHP, it's WAAAAAY faster to update

Chapeau to your will and dedition!

Luigi
ET_ is offline   Reply With Quote
Old 2008-02-08, 21:58   #70
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

283010 Posts
Default

Quote:
Originally Posted by ET_ View Post
Now I decided to use MySQL and PHP, it's WAAAAAY faster to update
Teach us....
em99010pepe is offline   Reply With Quote
Old 2008-02-08, 22:16   #71
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

32·5·107 Posts
Default

Quote:
Originally Posted by em99010pepe View Post
Teach us....
Well... the hard thing is designing the needed tables. I use the following schema.
Code:
USERS
	id	bigint(20)	not null	key	unique	 
	user	varchar(30)	not null			
	country	varchar(25)	 			
 	stats	decimal(10,3)	 			
	n_divisori_propri	smallint				
 	n_divisori_programma	smallint	 			
						
TASK_DONE	
       from_N	integer	not null	 	 	 
	to_N	integer	not null			
	from_k	bigint(20)	not null			
	to_k	bigint(20)	not null			
	user	varchar(30)	not null			
	stats	decimal(10,3)	not null			
	id	bigint(20)	not null	key	unique	
	type	varchar(10)	not null			
						
TASK_RUNNING
	from_N	integer	not null	 	 	 
	to_N	integer	not null			
	from_k	bigint(20)	not null			
	to_k	bigint(20)	not null			
	user	varchar(30)	not null			
	date	varchar(10)	not null			
	status	varchar(25)	not null			
	id	bigint(20)	not null	key	unique
Obviously you need to choose the fields as you need...

Then install MySQL on the server (or check MySQL and PHP services from your ISP). If you use a local installation of MySQL, you can preload all the tables, export the file in CSV format, and import it onto the ISP database.

Once your tables are loaded, create some PHP pages: they are like HTML, but with some script in them that allow SQL queries from the database.

Put the variables you get from the queries into PHP variables and print them out as HTML tables. You swear a week to get all the fields centered, and finally forget all the burden of counting and summing and substituting.

The key is the script that inserts your results into the tables, and you can do it locally, reloading the tables via import on the server each time you modify it. All the accounting, HTML and recalculation of positions is done by PHP embedded into HTML.

We can work a template together if you like it.

Luigi

Last fiddled with by ET_ on 2008-02-08 at 22:19
ET_ is offline   Reply With Quote
Old 2008-02-08, 22:23   #72
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

23×3×112 Posts
Default

sounds good.
i know, www.rieselprime.org provide php too, but my php-knowledge is far away from setting up a database with sql-statements (i know sql quite good).
all the data shown in the summary-pages on that hompage should be stored in such DB so maintaining is heavenly easy. (by now i do this with awk scripts too).

would be nice to work on such things! after the 24h race???
kar_bon is offline   Reply With Quote
Old 2008-02-08, 22:27   #73
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

481510 Posts
Default

Quote:
Originally Posted by kar_bon View Post
sounds good.
i know, www.rieselprime.org provide php too, but my php-knowledge is far away from setting up a database with sql-statements (i know sql quite good).
all the data shown in the summary-pages on that hompage should be stored in such DB so maintaining is heavenly easy. (by now i do this with awk scripts too).

would be nice to work on such things! after the 24h race???
AWK is my black beast

I learnt PHP doing jobs like this, and now maintain both Billion Digits Project and FermatSearch in zero time. It's not hard to learn, one just has to keep in mind three or four items.

We can arrange some discussion after the race, agreed.

Luigi
ET_ is offline   Reply With Quote
Old 2008-02-09, 09:34   #74
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

B0E16 Posts
Default

Quote:
Originally Posted by ET_ View Post
We can arrange some discussion after the race, agreed.

Luigi
We appreciate. BTW, my offer still stands, I just need more free time to learn ecmserver settings. Last time I played with it I couldn't run it because a few files were missing, probably the work files .

Carlos
em99010pepe is offline   Reply With Quote
Old 2008-02-10, 21:15   #75
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

2·5·283 Posts
Default

Top 5000 candidates are already in the server. It will take a day or two to clean the lower ranges. Let the real fun begin!

Last fiddled with by em99010pepe on 2008-02-10 at 21:16
em99010pepe is offline   Reply With Quote
Old 2008-02-10, 21:51   #76
gd_barnes
 
gd_barnes's Avatar
 
May 2007
Kansas; USA

33×5×7×11 Posts
Default

Quote:
Originally Posted by em99010pepe View Post
Top 5000 candidates are already in the server. It will take a day or two to clean the lower ranges. Let the real fun begin!
ROCK ON!!

I'll delete the 320-333.2 files from the 1st post in that thread. It looks like I better add some more files to drive 1. I'll do that on Monday or Tuesday.

From here on, I'll just leave it to you and Karsten to make sure all k / n pairs get tested that are reserved by the LLRnet server. If needed, I can assist in verifying.


Gary

Last fiddled with by gd_barnes on 2008-02-10 at 21:53
gd_barnes is offline   Reply With Quote
Old 2008-02-11, 08:58   #77
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

2·5·283 Posts
Default

Thanks Gary. I'm going to try to set up a second server for NPLB on my work machine...
Meanwhile, all results from LLRnet are daily published on this page.

Last fiddled with by em99010pepe on 2008-02-11 at 08:58
em99010pepe is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
LLRnet servers for NPLB kar_bon No Prime Left Behind 1343 2014-08-20 09:38
NPLB LLRnet server #1 - dried em99010pepe No Prime Left Behind 19 2008-03-26 06:19
New LLRnet servers discussion IronBits Conjectures 'R Us 11 2008-03-20 03:43
CRUS LLRnet server discussion em99010pepe Conjectures 'R Us 181 2008-02-04 19:51
llrnet server down? Molnar Prime Sierpinski Project 4 2006-10-19 14:32

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


Sat Jul 17 11:34:58 UTC 2021 up 50 days, 9:22, 1 user, load averages: 1.06, 1.23, 1.27

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.