mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Prime Sierpinski Project (https://www.mersenneforum.org/forumdisplay.php?f=48)
-   -   PSP goes prpnet (https://www.mersenneforum.org/showthread.php?t=12239)

rogue 2009-10-05 16:48

[QUOTE=opyrt;191937]According to Louie of Seventeen or Bust, Jean Penné is working on a new version of llr based on a newer gwnum library: [URL]http://www.free-dc.org/forum/showthread.php?p=139762#post139762[/URL]

I'm so glad we're running PRPNet now so we can start using the new llr as soon as it's ready! :-)[/QUOTE]

You can use the latest PFGW, which already has those improvements, but as I understand it, Jean will be adding some additional improvements to LLR. I believe that he was going to support primality proofs for non-base 2 numbers.

ltd 2009-10-05 18:42

Does pfgw create compatible residues?

rogue 2009-10-05 19:15

[QUOTE=ltd;191951]Does pfgw create compatible residues?[/QUOTE]

I forgot that PSP is base 2, so I guess PFGW is out of the question right now. The choice of PFGW is best when the base is not a power of 2.

I could modify PRPNet to make PFGW do a primality test for +1 base 2/4/8/... numbers instead of a PRP test. But I would also need to modify PFGW to output a residue for these bases when it is performing a Proth primality test. That shouldn't be too difficult.

I do not expect LLR to gain much speed for base 2 tests when it is updated to 25.12.

mdettweiler 2009-10-06 04:23

[quote=rogue;191953]I forgot that PSP is base 2, so I guess PFGW is out of the question right now. The choice of PFGW is best when the base is not a power of 2.

I could modify PRPNet to make PFGW do a primality test for +1 base 2/4/8/... numbers instead of a PRP test. But I would also need to modify PFGW to output a residue for these bases when it is performing a Proth primality test. That shouldn't be too difficult.

I do not expect LLR to gain much speed for base 2 tests when it is updated to 25.12.[/quote]
What would be really handy, IMO, would be to have PFGW be able to do LLR tests. I believe you've stated before that this would be rather hard to implement, but, would it be possible to simply build Jean's code into PFGW? If that could be done, along with a tweak to make it do Proth tests and output such residues for base 2 +1, then PFGW could truly be a "universal prime search application". Of course LLR would still be useful for some things, but nonetheless it might simplify coding PRPnet a bit.

rogue 2009-10-06 12:49

[QUOTE=mdettweiler;191989]What would be really handy, IMO, would be to have PFGW be able to do LLR tests. I believe you've stated before that this would be rather hard to implement, but, would it be possible to simply build Jean's code into PFGW? If that could be done, along with a tweak to make it do Proth tests and output such residues for base 2 +1, then PFGW could truly be a "universal prime search application". Of course LLR would still be useful for some things, but nonetheless it might simplify coding PRPnet a bit.[/QUOTE]

I don't want to take away from Jean's work, so I hesitate to have PFGW compete directly with LLR on certain things. If he decides to add support for generic forms to LLR, then all gloves would be off, so to speak. If he wants to contribute to PFGW, he is welcome to do so. My other concern is that I wouldn't want to significantly alter default behavior of PFGW as that might confuse other users.

mdettweiler 2009-10-06 14:50

[quote=rogue;192007]I don't want to take away from Jean's work, so I hesitate to have PFGW compete directly with LLR on certain things. If he decides to add support for generic forms to LLR, then all gloves would be off, so to speak. If he wants to contribute to PFGW, he is welcome to do so. My other concern is that I wouldn't want to significantly alter default behavior of PFGW as that might confuse other users.[/quote]
Ah, right--good points. Okay, that makes sense.

opyrt 2009-10-07 17:32

I wonder if this is expected behaviour, or a bug?

Got this config on the client:
[code]
server=PSPtest:100:0:www.psp-project.de:7100
server=PSPtestdc:0:1:www.psp-project.de:7101

[/code]

Note that PSPtest is set to 100:0. I thought that was the correct way to say "finish this wu, and don't start a new one".

This happens:
[code][2009-10-07 17:55:29 GMT] PSPtest: 156511*2^7955400+1 is not prime. Residue BBBBBBBBBBBBBBB
[2009-10-07 17:55:29 GMT] Total Time: 1:03:18 Total Tests: 1 Total PRPs Found: 0
[2009-10-07 17:55:29 GMT] PSPtest: Returning work to server [URL="http://www.psp-project.de"]www.psp-project.de[/URL] at port 7100
[2009-10-07 17:55:34 GMT] PSPtest: ERROR: Workunit 156511*2^7955400+1 not found on server
[2009-10-07 17:55:34 GMT] PSPtest: The client will delete this workunit
[2009-10-07 17:55:34 GMT] PSPtest: INFO: 0 of 1 test results were accepted
[2009-10-07 17:55:34 GMT] PSPtest: Getting work from server [URL="http://www.psp-project.de"]www.psp-project.de[/URL] at port 7100
[2009-10-07 17:55:39 GMT] PSPtest: INFO: No available candidates are left on this server.
[2009-10-07 17:55:39 GMT] PSPtest: Getting work from server [URL="http://www.psp-project.de"]www.psp-project.de[/URL] at port 7100
[2009-10-07 17:55:44 GMT] PSPtest: INFO: No available candidates are left on this server.
[2009-10-07 17:55:44 GMT] PSPtest: Getting work from server [URL="http://www.psp-project.de"]www.psp-project.de[/URL] at port 7100
[2009-10-07 17:56:05 GMT] PSPtest: INFO: No available candidates are left on this server.
[2009-10-07 17:56:05 GMT] PSPtest: Getting work from server [URL="http://www.psp-project.de"]www.psp-project.de[/URL] at port 7100
[2009-10-07 17:56:10 GMT] PSPtest: INFO: No available candidates are left on this server.
[2009-10-07 17:56:10 GMT] PSPtest: Getting work from server [URL="http://www.psp-project.de"]www.psp-project.de[/URL] at port 7100
[2009-10-07 17:56:45 GMT] PSPtest: INFO: No available candidates are left on this server.
[2009-10-07 17:56:45 GMT] PSPtestdc: Getting work from server [URL="http://www.psp-project.de"]www.psp-project.de[/URL] at port 7101[/code]

Is it supposed to behave like that? If yes, what is the correct way to tell the client to finish the WU it's running and don't download a new one? :smile:

Sloth 2009-10-07 19:59

[code]
server=PSPtest:100:0:www.psp-project.de:7100
server=PSPtestdc:0:1:www.psp-project.de:7101

[/code]

I think you are close but what you have is

PSPtest:100:0 - 100% of your work is to be from this server. But you are getting 0 work units
PSPtestdc:0:1 - 0 showing it is a fallback if the other server does not give you anything and you are getting 1 work unit.

Not sure what the command is if you want to finish your existing work but not get anything else. Rogue will be around and can correct me if I am wrong.


S.

opyrt 2009-10-07 20:08

Thanks for the reply, Sloth. :smile:

This seems to give the same result:
[code]server=PSPtest:100:0:www.psp-project.de:7100
server=PSPtestdc:0:0:www.psp-project.de:7101[/code]

Except it will get work from the server on port 7100.

BTW: The "workunit not found on server" message seems to be unrelated. :smile:

rogue 2009-10-07 23:28

To have PRPNet complete a test for PSPTest, set PSPTest to 0:1. This will complete any assigned workunits and return them to the server. The "1" will have it get a workunit from that server only if PSPTestdc is unavailable. PSPTestdc should be 100:x, with x being the number of workunits you want to get from that server.

opyrt 2009-10-08 06:59

Hi rogue.

I think you misunderstood... I want the prpclient to finish the test it's running and [U]don't[/U] get a new one. Kind of like "no new tasks" or what it's called in boinc.


All times are UTC. The time now is 15:57.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.