mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2012-10-25, 21:09   #45
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

25×3×61 Posts
Default

I'm working on PRPNet 5.2.0 as I write this. It will include the following changes:
  • Replace clientid with machineid and instanceid which allows for both unique identification of a machine and unique identification of an instance of the PRPNet client on the machine.
  • Modify doublechecker flag to use machineid (was using clientid).
  • Modify Sierpinski/Riesel stats collection to select the smallest n with a prime for a given k/b/c rather than the candidate with the first alphabetical name.
  • Modify code to set HasSierpinskiRieselPrime to 1 if higher n are added to a k/b/c with a found prime.
  • Remove support for clients older than 4.3.
  • Add brieftestlog flag to prpserver.ini so that output to console and testlog is shorter.
  • Fix a bug when client runs wwww helper program as it sometimes doesn't recognize it.

This should include the changes that have been requested earlier in this thread. If I'm forgetting something or if you have idea for new mods or found other bugs, please let me know. I hope to release the code early next week.
rogue is offline   Reply With Quote
Old 2012-11-01, 12:51   #46
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

25×3×61 Posts
Default

I've posted PRPNet 5.2.0. It has the following changes from 5.1.0:

Code:
    prpclient:  Replace clientid in ini with machineid and instanceid.
    prpclient:  Fix bug for wwww projects where client couldn't extract program name.
    prpserver:  Rename column ClientID in database to MachineID.  Add InstanceID.
    prpserver:  Modify doublechecker to use machine id instead of clientid.
    prpserver:  Fix bug in Sierpinski/Riesel stats to ensure prime listed in table has the smallest n.
    prpserver:  Modify Sierpinski/Riesel stats updater to set HasSierpinskiRieselPrime flag on new Candidates that are inserted if a prime was already found for the k, b, c.
    prpserver:  Removed support for clients older than 4.3.
    prpserver:  Added brieftestlog to prpserver.ini.  This flag can be used to shorten the output on consoles.
    prpserver:  Added estimate of days left to Wieferich/WallSunSun server_stats.html.
If upgrading a server, please read the history.txt file to find the SQL statements you need to run to do the upgrade.

Clients as old as 4.3 compatible with the 5.2 server. 5.2 clients should be compatible with servers as old as 4.3, but I have not tested that.

I highly recommend that projects upgrade to 5.2.0 at their earliest convenience. I cannot guarantee that future releases of the server will support 4.x clients. If you need assistance in upgrading a server from 4.x to 5.x, feel free to contact me via PM or e-mail. There is little risk to make that upgrade.

You can d/l 5.2.0 from here.
rogue is offline   Reply With Quote
Old 2012-11-26, 14:15   #47
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

25×3×61 Posts
Default

I've posted PRPNet 5.2.1. This version fixes a bug with strcpy() where the source and target are within the same string buffer. Apparently this isn't a issue on most OSes, but it is a big no-no on some flavors of Linux.

You can d/l 5.2.1 from here.
rogue is offline   Reply With Quote
Old 2012-12-20, 21:14   #48
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

133408 Posts
Default

I've posted PRPNet 5.2.2. In this version I changed onekperclient in the server to onekperinstance and fixed a bug I introduced in 5.2.0. I fixed a logging issue where timezone would show as '???'. I also added a 64-bit build option to the Windows solution.

You can d/l 5.2.2 from here.
rogue is offline   Reply With Quote
Old 2012-12-21, 08:28   #49
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

11·433 Posts
Default

Quote:
Originally Posted by rogue View Post
I've posted PRPNet 5.2.2. In this version I changed onekperclient in the server to onekperinstance and fixed a bug I introduced in 5.2.0. I fixed a logging issue where timezone would show as '???'. I also added a 64-bit build option to the Windows solution.

You can d/l 5.2.2 from here.
...any hopes to have a check at DoubleMersennes?...

Luigi
ET_ is offline   Reply With Quote
Old 2012-12-21, 13:42   #50
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

25·3·61 Posts
Default

Quote:
Originally Posted by ET_ View Post
...any hopes to have a check at DoubleMersennes?...
Luigi
It's not clear to me what you are looking for. Are you referring to me fixing gmp-fermat and the double-mersenne logic it has? If so, then I don't know when I'll get to it. If I'm lucky, next week, but I can't make any promises. If you are referring to modify PRPNet to support a search, I've never thought about it.
rogue is offline   Reply With Quote
Old 2012-12-21, 14:04   #51
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

476310 Posts
Default

Quote:
Originally Posted by rogue View Post
It's not clear to me what you are looking for. Are you referring to me fixing gmp-fermat and the double-mersenne logic it has? If so, then I don't know when I'll get to it. If I'm lucky, next week, but I can't make any promises. If you are referring to modify PRPNet to support a search, I've never thought about it.
I hope you will be lucky...

Luigi
ET_ is offline   Reply With Quote
Old 2013-01-13, 02:22   #52
Xentar
 
Xentar's Avatar
 
Sep 2006

2×3×31 Posts
Default

Yesterday I updated from version 4.3.7 to version 5.2.2. (Windows 7 x64)
But the new version seems to be more unstable than the old one :(
I just came home and saw, the the prpserver.exe crashed (Windows message: Stopped working, application needs to be closed).
In the log file there is nothing.. last message was a correctly accepted tests.

The only thing I noticed is, I got many of the following messages on different clients, although the server was running:
Code:
[2013-01-13 01:56:22 MZ] s19: Returning work to server localhost at port 7119
[2013-01-13 01:56:32 MZ] s19: nothing was received on socket after 10 seconds
[2013-01-13 01:56:34 MZ] s19: nothing was received on socket after 2 seconds
[2013-01-13 01:56:34 MZ] Could not connect to any servers and no work is pending.  Pausing 10 minutes
[2013-01-13 02:06:35 MZ] s19: Returning work to server localhost at port 7119
[2013-01-13 02:06:45 MZ] s19: nothing was received on socket after 10 seconds
[2013-01-13 02:06:47 MZ] s19: nothing was received on socket after 2 seconds
[2013-01-13 02:06:47 MZ] Could not connect to any servers and no work is pending.  Pausing 10 minutes
[2013-01-13 02:16:48 MZ] s19: Returning work to server localhost at port 7119
Could it have something to do with the amount of tests in the database?
I am testing s19, there are about 2M tests in the mysql database.
Using MySQL server version 5.1.43.
Xentar is offline   Reply With Quote
Old 2013-01-13, 14:15   #53
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

25·3·61 Posts
Default

Quote:
Originally Posted by Xentar View Post
Yesterday I updated from version 4.3.7 to version 5.2.2. (Windows 7 x64)
But the new version seems to be more unstable than the old one :(
I just came home and saw, the the prpserver.exe crashed (Windows message: Stopped working, application needs to be closed).
In the log file there is nothing.. last message was a correctly accepted tests.

The only thing I noticed is, I got many of the following messages on different clients, although the server was running:
Code:
[2013-01-13 01:56:22 MZ] s19: Returning work to server localhost at port 7119
[2013-01-13 01:56:32 MZ] s19: nothing was received on socket after 10 seconds
[2013-01-13 01:56:34 MZ] s19: nothing was received on socket after 2 seconds
[2013-01-13 01:56:34 MZ] Could not connect to any servers and no work is pending.  Pausing 10 minutes
[2013-01-13 02:06:35 MZ] s19: Returning work to server localhost at port 7119
[2013-01-13 02:06:45 MZ] s19: nothing was received on socket after 10 seconds
[2013-01-13 02:06:47 MZ] s19: nothing was received on socket after 2 seconds
[2013-01-13 02:06:47 MZ] Could not connect to any servers and no work is pending.  Pausing 10 minutes
[2013-01-13 02:16:48 MZ] s19: Returning work to server localhost at port 7119
Could it have something to do with the amount of tests in the database?
I am testing s19, there are about 2M tests in the mysql database.
Using MySQL server version 5.1.43.
There are two possibilities. First, I know there is a memory leak in the Windows MySQL ODBC driver. I've reported it, but it has not been fixed. It is possible that this is causing the problem. When a 32-bit build of the server hits 2 GB it will crash. When that happens you will see various MySQL errors on the prpserver console. This is a addressed by shutting down and restarting the server every few days. Second, I have seen other intermittent crashes in the server, but they occur rarely and of course never occur with debug builds. I probably need to do a "clean" then a "build", but I can't claim that it is a compile or linkage issue.
rogue is offline   Reply With Quote
Old 2013-01-13, 15:36   #54
Xentar
 
Xentar's Avatar
 
Sep 2006

2·3·31 Posts
Default

The problem appeared after updating the prpserver only. I didnt touch the MySQL server (or ODBC driver). The old version ran for months without restarting. Maybe I just should update them? The newest MySQL version is 5.5.*

A few minutes ago, I saw this lines in the log:
Code:
[2013-01-13 16:32:03 MZ] 524: ODBC Information: SQL_ERROR: [MySQL][ODBC 5.1 Driver][mysqld-5.1.43-community]Lock wait timeout exceeded; try restarting transaction
[2013-01-13 16:32:03 MZ] 524: ODBC Information: SQL Statement: update Candidate    set HasPendingTest = 1  where CandidateName = 1446*19^100146+1    and HasPendingTest = 0
I will try debuglevel=1 and see if it crashes again.
Xentar is offline   Reply With Quote
Old 2013-01-13, 15:40   #55
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT)

26×89 Posts
Default

Quote:
Originally Posted by Xentar View Post
The problem appeared after updating the prpserver only. I didnt touch the MySQL server (or ODBC driver). The old version ran for months without restarting. Maybe I just should update them? The newest MySQL version is 5.5.*

A few minutes ago, I saw this lines in the log:
Code:
[2013-01-13 16:32:03 MZ] 524: ODBC Information: SQL_ERROR: [MySQL][ODBC 5.1 Driver][mysqld-5.1.43-community]Lock wait timeout exceeded; try restarting transaction
[2013-01-13 16:32:03 MZ] 524: ODBC Information: SQL Statement: update Candidate    set HasPendingTest = 1  where CandidateName = 1446*19^100146+1    and HasPendingTest = 0
I will try debuglevel=1 and see if it crashes again.
In post 46 rouge mentioned that there were sql statements needed to upgrade a server from 4 to 5. I can't see you mentioning them.
henryzz is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
PSP goes prpnet ltd Prime Sierpinski Project 86 2012-06-06 02:30
PRPNet 4.0.0 Released rogue Software 84 2011-11-16 21:20
PRPNet 4.0.1 Released Joe O Sierpinski/Riesel Base 5 1 2010-10-22 20:11
PRPNet 3.0.0 Released rogue Conjectures 'R Us 220 2010-10-12 20:48
PRPNet released! rogue Conjectures 'R Us 250 2009-12-27 21:29

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

Fri Aug 14 06:22:38 UTC 2020 up 1 day, 2:58, 1 user, load averages: 1.31, 1.27, 1.35

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