mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Conjectures 'R Us

Reply
 
Thread Tools
Old 2014-06-10, 16:48   #1
Lennart
 
Lennart's Avatar
 
"Lennart"
Jun 2007

46016 Posts
Default LLR vs PFGW speed

What do you have this et to ? usellroverpfgw=

Most of my computer stared using pfgw.



Lennart
Lennart is offline   Reply With Quote
Old 2014-06-10, 19:04   #2
gd_barnes
 
gd_barnes's Avatar
 
May 2007
Kansas; USA

101000101000112 Posts
Default

Quote:
Originally Posted by Lennart View Post
What do you have this et to ? usellroverpfgw=

Most of my computer stared using pfgw.



Lennart
It is set to nothing, i.e. simply usellroverpfgw= . So the clients will use PFGW over LLR if it is available. All CRUS/NPLB servers are set this way by default.

Last fiddled with by gd_barnes on 2014-06-11 at 20:03 Reason: remove base 6 comments
gd_barnes is online now   Reply With Quote
Old 2014-06-10, 19:29   #3
Lennart
 
Lennart's Avatar
 
"Lennart"
Jun 2007

25×5×7 Posts
Default

Quote:
Originally Posted by gd_barnes View Post
Excellent! I'll go ahead and add all of Riesel base 6 for n=1.5M-2M shortly.



It is set to nothing, i.e. simply usellroverpfgw= . So the clients will use PFGW over LLR if it is available. All CRUS/NPLB servers are set this way by default.
Change that or it takes much more time to test the numbers.

Lennart

Last fiddled with by Lennart on 2014-06-10 at 19:40
Lennart is offline   Reply With Quote
Old 2014-06-10, 19:36   #4
gd_barnes
 
gd_barnes's Avatar
 
May 2007
Kansas; USA

101×103 Posts
Default

Quote:
Originally Posted by Lennart View Post
Change that or it takes much more time to test the numbers.

Lennart
Hummmm...I thought they used the same program/GWNUM libraries. Maybe this is machine and/or size specific. I'll go ahead and change it and see if there are comments from others about it.
gd_barnes is online now   Reply With Quote
Old 2014-06-10, 19:42   #5
Lennart
 
Lennart's Avatar
 
"Lennart"
Jun 2007

25×5×7 Posts
Default

Quote:
Originally Posted by gd_barnes View Post
Hummmm...I thought they used the same program/GWNUM libraries. Maybe this is machine and/or size specific. I'll go ahead and change it and see if there are comments from others about it.

I can't say why but on my faster computer pfgw takes about 50%-100% more time. Could be some memorything also


Lennart
Lennart is offline   Reply With Quote
Old 2014-06-10, 20:21   #6
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24·397 Posts
Default

There are various reasons the pfgw is slower. I haven't taken the time to investigate the reasons for it. I suspect that it has something to do with data conversions in the code between calls to the gwnum library. The sourcecode for pfgw is an absolute beast. The original developers tried to make it as C++ pure as possible so a lot of things are done in very abstract ways, which really hurts performance in some areas. I would love to rewrite it, but I have so little time and it would be an immense project that would require a lot of redesign.
rogue is offline   Reply With Quote
Old 2014-06-11, 00:55   #7
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Default

Quote:
Originally Posted by Lennart View Post
I can't say why but on my faster computer pfgw takes about 50%-100% more time. Could be some memorything also
Quote:
Originally Posted by rogue View Post
There are various reasons the pfgw is slower. I haven't taken the time to investigate the reasons for it. I suspect that it has something to do with data conversions in the code between calls to the gwnum library. The sourcecode for pfgw is an absolute beast. The original developers tried to make it as C++ pure as possible so a lot of things are done in very abstract ways, which really hurts performance in some areas. I would love to rewrite it, but I have so little time and it would be an immense project that would require a lot of redesign.
Wow, I didn't know about this...I haven't really been paying close attention to my various computers' timings lately, but that might help explain why my Core2Duo (running LLR, because it was having trouble with PFGW earlier...not sure why, it's a wonky system anyway) has been faster than my Phenom II laptop (running PFGW), which is a few years newer. I had just assumed it was due to having more L2 cache, but maybe there's more to it than that.

Is this just a base 6 thing, or has it been observed on other bases too? Or, is it only a big factor on newer CPUs/newer gwnums? (If this has been around for a while, I'm surprised it hasn't been as well-known...again, I haven't been paying too close attention the last year so maybe this is old news and I just didn't get the memo. )

Last fiddled with by mdettweiler on 2014-06-11 at 01:01
mdettweiler is offline   Reply With Quote
Old 2014-06-11, 04:38   #8
gd_barnes
 
gd_barnes's Avatar
 
May 2007
Kansas; USA

101·103 Posts
Default

Can someone please direct me to the latest Windows and Linux versions of LLR? I want to test the difference between PFGW and LLR myself on some of my old(ish) machines.

Last fiddled with by gd_barnes on 2014-06-11 at 20:03 Reason: remove base 6 comments
gd_barnes is online now   Reply With Quote
Old 2014-06-11, 05:16   #9
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Default

LLR downloads are here: http://jpenne.free.fr/index2.html

That reminds me, I need to upgrade...
mdettweiler is offline   Reply With Quote
Old 2014-06-11, 07:15   #10
MyDogBuster
 
MyDogBuster's Avatar
 
May 2008
Wilmington, DE

22×23×31 Posts
Default

The differences between PFGW and LLR could be that LLR uses AVX, the new and improved instruction set from Intel. I've used it for about 2 years now.

It only works on Sandy Bridge and Ivy Bridge CPU's.

Last fiddled with by MyDogBuster on 2014-06-11 at 07:17
MyDogBuster is offline   Reply With Quote
Old 2014-06-11, 07:19   #11
gd_barnes
 
gd_barnes's Avatar
 
May 2007
Kansas; USA

101×103 Posts
Default

I'm getting from 10% to 50% speedup on my various machines by using the latest version of LLR vs. PFGW; both Windows and Linux. It's mostly in the 10-20% range on my Intel machines. A 40-50% speedup was noticed on a couple of my oldest AMD machines on large tests for a non-power-of-2 base. The speedup appears both machine and size dependent. There is less speedup on smaller tests.

I've now changed all of my private PRPnet servers to use LLR instead of PFGW. Port 1400 is the only public PRPnet server for NPLB/CRUS doing non-power-of-2 bases and it was changed earlier.

Because there is little speedup on small tests, I will still use PFGW for conjecture searches at low n-ranges because I like the Windows GUI and the scripting that is available.

Thank you for the suggestion Lennart!
gd_barnes is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PFGW and NewPGen robert44444uk Prime Gap Searches 34 2018-06-06 14:37
PFGW GUI vs CMD houding Software 1 2016-06-20 12:11
How do I operate PFGW MattcAnderson Information & Answers 1 2015-06-04 17:13
How do I run this formula in PFGW? Stargate38 Software 1 2014-08-19 15:23
PFGW 3.3.6 or PFGW 3.4.2 Please update now! Joe O Sierpinski/Riesel Base 5 5 2010-09-30 14:07

All times are UTC. The time now is 10:09.


Tue Jul 27 10:09:34 UTC 2021 up 4 days, 4:38, 0 users, load averages: 1.85, 2.01, 1.96

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.