mersenneforum.org  

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

Reply
 
Thread Tools
Old 2020-10-09, 10:51   #155
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

991 Posts
Default

A PRPNet server I set up to find first primes for various Riesel k's is still handing out candidates for k's after primes have already been found with servertype=1 (Sierpinski/Riesel). The tests are at the n=110k range right now, so the extra tests aren't a huge imposition right now, but a fix would be appreciated before I get too much deeper in this project.
Happy5214 is offline   Reply With Quote
Old 2020-10-09, 11:51   #156
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

162558 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
A PRPNet server I set up to find first primes for various Riesel k's is still handing out candidates for k's after primes have already been found with servertype=1 (Sierpinski/Riesel). The tests are at the n=110k range right now, so the extra tests aren't a huge imposition right now, but a fix would be appreciated before I get too much deeper in this project.
There are two possibilities. You have onekperinstance=0. This is a bug, which I think is fixed, but not in the current build available at source force. The prime for that k is for n < the prime found. I would guess the first. Change onekperinstance to 1. The server will still send out candidates for the same k to multiple clients, but will only do so if all k have at least one candidate set out to a client.
rogue is online now   Reply With Quote
Old 2020-10-09, 19:02   #157
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

991 Posts
Default

Quote:
Originally Posted by rogue View Post
There are two possibilities. You have onekperinstance=0. This is a bug, which I think is fixed, but not in the current build available at source force. The prime for that k is for n < the prime found. I would guess the first. Change onekperinstance to 1. The server will still send out candidates for the same k to multiple clients, but will only do so if all k have at least one candidate set out to a client.
Correct, it is the first. I only have one client running on it, so onekperinstance=1 (which I assume would run each k in sequence in my case) is unpalatable, though it's something I might have to consider once the terms grow bigger. I'm running from the latest SVN, so it hasn't hit there yet either.

Last fiddled with by Happy5214 on 2020-10-09 at 19:03
Happy5214 is offline   Reply With Quote
Old 2020-10-09, 19:17   #158
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

3×2,447 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
Correct, it is the first. I only have one client running on it, so onekperinstance=1 (which I assume would run each k in sequence in my case) is unpalatable, though it's something I might have to consider once the terms grow bigger. I'm running from the latest SVN, so it hasn't hit there yet either.
I committed a few code changes including what I think will fix the issue. I have not tested it though because I'm not running that kind of server right now. It is in PrimeWorkSender::SelectCandidates(). For Sierpinski/Riesel servers it will execute a different SQL statement.
rogue is online now   Reply With Quote
Old 2020-10-10, 13:47   #159
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

991 Posts
Default

Quote:
Originally Posted by rogue View Post
I committed a few code changes including what I think will fix the issue. I have not tested it though because I'm not running that kind of server right now. It is in PrimeWorkSender::SelectCandidates(). For Sierpinski/Riesel servers it will execute a different SQL statement.
The changes appear to have fixed the problem. Thanks!

Last fiddled with by Happy5214 on 2020-10-10 at 13:48 Reason: Quote
Happy5214 is offline   Reply With Quote
Old 2020-12-03, 22:29   #160
Trilo
 
Trilo's Avatar
 
"W. Byerly"
Aug 2013
81*2^3174353-1

7·19 Posts
Default Multithreaded LLR on prpnet

Hi, is there anyway to run multithreaded LLR instances using prpnet? I tried adding ThreadsPerTest=1 in llr.ini but it appears that prpnet rewrites the file upon bootup and the changes do not get saved.
Trilo is offline   Reply With Quote
Old 2020-12-03, 23:24   #161
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

3·2,447 Posts
Default

Quote:
Originally Posted by Trilo View Post
Hi, is there anyway to run multithreaded LLR instances using prpnet? I tried adding ThreadsPerTest=1 in llr.ini but it appears that prpnet rewrites the file upon bootup and the changes do not get saved.
If there is a command line option then add via prpclient.ini
rogue is online now   Reply With Quote
Old 2020-12-04, 09:21   #162
lalera
 
lalera's Avatar
 
Jul 2003

12008 Posts
Default

hi,
https://www.mersenneforum.org/showpo...&postcount=142
lalera is offline   Reply With Quote
Old 2021-02-15, 20:10   #163
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

3·2,447 Posts
Default

I have found and fixed a bug in the server that impacts Sierpinski/Rlesel project. This has a big impact servers with large numbers of sub minute PRP tests, but could affect any Sierpinski/Riesel server. The changes to source have been committed and the Windows exes have been updated over at sourceforge.
rogue is online now   Reply With Quote
Old 2021-02-16, 02:50   #164
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

991 Posts
Default

I'm getting a build failure on Linux:

Code:
In file included from /usr/include/fcntl.h:301,
                 from Socket.h:29,
                 from prpclient.cpp:22:
In function ‘int open(const char*, int, ...)’,
    inlined from ‘int main(int, char**)’ at prpclient.cpp:462:19:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
   50 |    __open_missing_mode ();
      |    ~~~~~~~~~~~~~~~~~~~~^~
make: *** [makefile:40: prpclient.o] Error 1
Happy5214 is offline   Reply With Quote
Old 2021-02-16, 12:56   #165
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

162558 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
I'm getting a build failure on Linux:

Code:
In file included from /usr/include/fcntl.h:301,
                 from Socket.h:29,
                 from prpclient.cpp:22:
In function ‘int open(const char*, int, ...)’,
    inlined from ‘int main(int, char**)’ at prpclient.cpp:462:19:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
   50 |    __open_missing_mode ();
      |    ~~~~~~~~~~~~~~~~~~~~^~
make: *** [makefile:40: prpclient.o] Error 1
I have never seen this compiler error before. For now, delete or comment out these lines in prpclient.cpp.

Code:
   int lockFile;
   lockFile = open("client.lock", O_WRONLY | O_CREAT | O_EXCL);
   if (lockFile <= 0)
      TerminateWithError("Only one copy of the PRPNet client can be run from this folder at a time.");
rogue is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
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 mdettweiler No Prime Left Behind 80 2010-02-09 21:31
PRPNet released! rogue Conjectures 'R Us 250 2009-12-27 21:29

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


Fri Jul 7 14:06:28 UTC 2023 up 323 days, 11:35, 0 users, load averages: 1.45, 1.24, 1.17

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

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔