mersenneforum.org  

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

Reply
 
Thread Tools
Old 2012-02-11, 00:34   #12
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11×577 Posts
Default

Quote:
Originally Posted by Thomas11 View Post
The source code of LLR 3.8.7 still uses gwnum 26.5.
There are other people around who (successfully?) replaced the gwnums by version 27.2, but I just compiled the source without any modifications.
I could probably find it and provide a fix the Jean or I can give him the memory leak code so that he can find all memory leaks in llr.
rogue is offline   Reply With Quote
Old 2012-02-11, 18:30   #13
Jean Penné
 
Jean Penné's Avatar
 
May 2004
FRANCE

22·5·29 Posts
Default This bug is fixed!

Hello,

I fixed this bug today (indeed, it was due to missing frees)
and updated the four binaries and the source in my Development directory accordingly.

Thank you for your help and Best Regards,
Jean
Jean Penné is offline   Reply With Quote
Old 2012-02-12, 10:41   #14
Thomas11
 
Thomas11's Avatar
 
Feb 2003

77416 Posts
Default

Sorry, Jean, but this problem seems to persist - at least for the Linux binaries (32 and 64 bits):
After about 15 hours the memory utilization has increased from 12MB to 250MB per core.
I also double-checked that I actually used the new (fixed) binary.

Note, that I'm testing Generalized Cullen/Woodall numbers, e.g. non-base-2 tests. Maybe this is a different code path.

Last fiddled with by Thomas11 on 2012-02-12 at 10:45
Thomas11 is offline   Reply With Quote
Old 2012-02-12, 11:19   #15
Jean Penné
 
Jean Penné's Avatar
 
May 2004
FRANCE

22×5×29 Posts
Default

Quote:
Originally Posted by Thomas11 View Post
Sorry, Jean, but this problem seems to persist - at least for the Linux binaries (32 and 64 bits):
After about 15 hours the memory utilization has increased from 12MB to 250MB per core.
I also double-checked that I actually used the new (fixed) binary.

Note, that I'm testing Generalized Cullen/Woodall numbers, e.g. non-base-2 tests. Maybe this is a different code path.
That is surprising : I am presently testing on a 32 bit Linux system, whith a file
containing all archived Generalized Fermat primes, so varied non-two bases, and the memory usage remains stable (I am looking at with top)...
Yes, the bug concerned only non base two tests!
Are you absolutely sure you are now using the fixed binaries?
Regards,
Jean
Jean Penné is offline   Reply With Quote
Old 2012-02-12, 11:30   #16
Thomas11
 
Thomas11's Avatar
 
Feb 2003

22·32·53 Posts
Default

Quote:
Originally Posted by Jean Penné View Post
Are you absolutely sure you are now using the fixed binaries?
Yes, file size and date of the 32bit binary is:
26477210 2012-02-11 18:51

Here is some part of a typical input file I'm using:

Code:
ABC $a*$b^$c$d   // base 209
12002 209 12002 -1
12032 209 12032 -1
12054 209 12054 -1
12080 209 12080 -1
12128 209 12128 -1

Last fiddled with by Thomas11 on 2012-02-12 at 11:31
Thomas11 is offline   Reply With Quote
Old 2012-02-12, 12:15   #17
Thomas11
 
Thomas11's Avatar
 
Feb 2003

77416 Posts
Default

Meanwhile I tested the Windows binary (32bit) and it shows the same behavior, e.g. for the input file given above the memory usage increases as: 2.8MB -> 3.6MB -> 4.4MB -> 5.4MB -> 6.5MB.

Added: file size and time stamp are: 26390528 02-11-12 18:15 LLR.exe

Last fiddled with by Thomas11 on 2012-02-12 at 12:21
Thomas11 is offline   Reply With Quote
Old 2012-02-12, 18:01   #18
Jean Penné
 
Jean Penné's Avatar
 
May 2004
FRANCE

22·5·29 Posts
Default This time, I think it is fixed!

Quote:
Originally Posted by Thomas11 View Post
Meanwhile I tested the Windows binary (32bit) and it shows the same behavior, e.g. for the input file given above the memory usage increases as: 2.8MB -> 3.6MB -> 4.4MB -> 5.4MB -> 6.5MB.

Added: file size and time stamp are: 26390528 02-11-12 18:15 LLR.exe
You are right, Thomas, there was a second missing of free! It affected only non-prime candidates! I think it is now fixed, but I think also that previous versions of LLR have this problem for non base two tests...

Thank you for your help and best regards,
Jean
Jean Penné is offline   Reply With Quote
Old 2012-02-12, 18:16   #19
Thomas11
 
Thomas11's Avatar
 
Feb 2003

22×32×53 Posts
Default

Thanks, Jean, for spending your Sunday on this problem!
I'm already testing the 32bit binary and it seems to work fine now.

Regarding older versions of LLR:
I used LLR 3.8.6 for about 3 months on Generalized Cullen/Woodall numbers, and some clients were running for weeks without interruption. But there was never any indication of memory leakage.

Kind regards,

Thomas

Last fiddled with by Thomas11 on 2012-02-12 at 18:18 Reason: typo
Thomas11 is offline   Reply With Quote
Old 2012-02-13, 07:31   #20
Jean Penné
 
Jean Penné's Avatar
 
May 2004
FRANCE

22·5·29 Posts
Default

Quote:
Originally Posted by Thomas11 View Post
Thanks, Jean, for spending your Sunday on this problem!
I'm already testing the 32bit binary and it seems to work fine now.

Regarding older versions of LLR:
I used LLR 3.8.6 for about 3 months on Generalized Cullen/Woodall numbers, and some clients were running for weeks without interruption. But there was never any indication of memory leakage.

Kind regards,

Thomas
Hi Thomas,
I did not spend all my Sunday on that, fortunately!
You are right, the V3.8.6 has not the bug, but the V3.8.6dev seems to have the bug! But it is now obsolete, so I left it unchanged...
Thank you for all your help, and best regards,
Jean
Jean Penné is offline   Reply With Quote
Old 2012-02-13, 11:56   #21
AG5BPilot
 
AG5BPilot's Avatar
 
Dec 2011
New York, U.S.A.

97 Posts
Default

Jean,

I built a 64 bit Windows version, but one user is getting the following error on both the 32 and 64 bit versions:

Quote:
Tested the 64 bit version with Win7 on an E350 processor.

llr Test>cllr -q"3117*2^314958+1" -d
Fatal error at setup : Number sent to gwsetup is too large for the FFTs to handle.

side note: the llr version supplied with the prpclient 5.0.5 produces the same error.
That's from the PrimeGrid boards.

He subsequently stated he also has the problem with the 3.8.6 (32 bit) build, but that the AVX build does work. What's most interesting about this is that his CPU doesn't have AVX.
AG5BPilot is offline   Reply With Quote
Old 2012-02-13, 20:41   #22
Jean Penné
 
Jean Penné's Avatar
 
May 2004
FRANCE

22·5·29 Posts
Default

Quote:
Originally Posted by AG5BPilot View Post
Jean,

I built a 64 bit Windows version, but one user is getting the following error on both the 32 and 64 bit versions:



That's from the PrimeGrid boards.

He subsequently stated he also has the problem with the 3.8.6 (32 bit) build, but that the AVX build does work. What's most interesting about this is that his CPU doesn't have AVX.

The problem is that I cannot reproduce this error :
I passed this test on a P4/Windows 2000, an AMD/Linux, an Intel core2/windows Vista and obtained the same result :
I:\D\Jean\LLR\llr387dev>cllr -q"3117*2^314958+1" -d
Starting Proth prime test of 3117*2^314958+1
Using all-complex Pentium4 type-1 FFT length 24K, Pass1=96, Pass2=256, a = 7
3117*2^314958+1 is not prime. Proth RES64: 4E6DB6FACE0861F5 Time : 340.530 sec.

I have no 64bit machine...
Is the LLR you are using built with the gwnum library V27.2 ? If yes, it may be the cause of your problem...
Regards,
Jean
Jean Penné is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
LLR Development Version 3.8.9 released. Jean Penné Software 6 2012-05-09 23:44
LLR 3.8.6 Development version Jean Penné Software 0 2011-06-16 20:05
LLR 3.8.5 Development version Jean Penné Software 6 2011-04-28 06:21
PowerPC development platform nuggetprime Hardware 2 2011-01-06 18:37
LLR 3.8.4 development version is available! Jean Penné Software 4 2010-11-14 17:32

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


Sat Jul 17 11:20:40 UTC 2021 up 50 days, 9:07, 1 user, load averages: 1.55, 1.36, 1.25

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.