mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-06-15, 08:35   #1
joblack
 
joblack's Avatar
 
Oct 2008
n00bville

52×29 Posts
Default Memory leak in Prime95, Win64, v25.11b2?

I've got a Q6600 with 8 GByte RAM, Win 7 64 Bit Ultimate and Prime95, Win64, v25.11b2. As I'm not using most of my memory at the moment I thought about increasing the memory settings in 'CPU Settings and Information over 4 GByte.

Not a good idea. It works if the memory is under 4 GByte but if I put a number greater than 4 GByte (i.e. 4500) it seems to have a memory leak and tries to get more and more memory (observed in the Task Manager) until it starts swapping.

Seems to be a memory leak or is it a 'feature' ;)?
joblack is offline   Reply With Quote
Old 2010-06-15, 17:13   #2
S485122
 
S485122's Avatar
 
Sep 2006
Brussels, Belgium

2×5×167 Posts
Default

I have got a Q6700 with 8 GiB RAM, XP 64 bits and do not experience such a problem. The memory setting for prime95 is 7307 MiB, i.e. the maximum allowed on such a setup. One core is dedicated to P-1. I only reboot the machine once a month as an aftermath of patch Tuesday.

How many threads where doing what ?

Jacob
S485122 is offline   Reply With Quote
Old 2010-06-15, 17:55   #3
joblack
 
joblack's Avatar
 
Oct 2008
n00bville

2D516 Posts
Default

Quote:
Originally Posted by S485122 View Post
I have got a Q6700 with 8 GiB RAM, XP 64 bits and do not experience such a problem. The memory setting for prime95 is 7307 MiB, i.e. the maximum allowed on such a setup. One core is dedicated to P-1. I only reboot the machine once a month as an aftermath of patch Tuesday.

How many threads where doing what ?

Jacob
I have 4 threads, one was doing some P-1 (the rest is LL) because it had to check a new number.

Isn't the memory usage not for the whole program? At least the task manager is showing the accumulated memory need.
joblack is offline   Reply With Quote
Old 2010-06-15, 23:21   #4
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

are you only running prime95 if not I can see how a memory leak may occur (in fact I'm reading parts of the art of assembly 2nd edition and I've read a bit about memory leaks) basically lets say the OS uses 25% if any other programs use more than 25% if prime 95 needs the full 4 GiB left or more than what's left then a memory leak occurs. so i think it could be possible. if other programs are open either find a way for them to use less memory (which might slow them down) or it can occur anytime something else memory hungry goes on.
science_man_88 is offline   Reply With Quote
Old 2010-06-16, 13:42   #5
joblack
 
joblack's Avatar
 
Oct 2008
n00bville

52×29 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
are you only running prime95 if not I can see how a memory leak may occur (in fact I'm reading parts of the art of assembly 2nd edition and I've read a bit about memory leaks) basically lets say the OS uses 25% if any other programs use more than 25% if prime 95 needs the full 4 GiB left or more than what's left then a memory leak occurs. so i think it could be possible. if other programs are open either find a way for them to use less memory (which might slow them down) or it can occur anytime something else memory hungry goes on.
The 32 Bit / 4 GByte barrier isn't a problem in Windows XP/Vista/7 64 Bit. Every process can have a huge virtual memory.
joblack is offline   Reply With Quote
Old 2010-06-17, 16:56   #6
lfm
 
lfm's Avatar
 
Jul 2006
Calgary

1101010012 Posts
Default

Quote:
Originally Posted by joblack View Post
I've got a Q6600 with 8 GByte RAM, Win 7 64 Bit Ultimate and Prime95, Win64, v25.11b2. As I'm not using most of my memory at the moment I thought about increasing the memory settings in 'CPU Settings and Information over 4 GByte.

Not a good idea. It works if the memory is under 4 GByte but if I put a number greater than 4 GByte (i.e. 4500) it seems to have a memory leak and tries to get more and more memory (observed in the Task Manager) until it starts swapping.

Seems to be a memory leak or is it a 'feature' ;)?
Ya, it would be a bug specific to 64 bit systems. Why are you trying to give so much memory to prime95 anyway? Aren you running 4 p-1 jobs at once? Even then you shouldn't need or really be able to use that much memory so far as I know.
lfm is offline   Reply With Quote
Old 2010-06-17, 18:33   #7
joblack
 
joblack's Avatar
 
Oct 2008
n00bville

72510 Posts
Default

Quote:
Originally Posted by lfm View Post
Ya, it would be a bug specific to 64 bit systems. Why are you trying to give so much memory to prime95 anyway?
Because I can ;).
Quote:
Originally Posted by lfm View Post
Aren you running 4 p-1 jobs at once? Even then you shouldn't need or really be able to use that much memory so far as I know.
You can't have enough memory for P-1. Even if I don't have my focus on p-1 higher numbers sometimes needs a pre-checking and I don't want to calculate for over a year only to get a composite result.
joblack is offline   Reply With Quote
Old 2010-06-17, 23:41   #8
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

203008 Posts
Default

I didn't say 4 gib was the limit lol reread.
science_man_88 is offline   Reply With Quote
Old 2010-06-18, 15:14   #9
lfm
 
lfm's Avatar
 
Jul 2006
Calgary

52×17 Posts
Default

Quote:
Quote:
Why are you trying to give so much memory to prime95 anyway?
Because I can ;).
Well, actually it seems you can't. :-)
lfm is offline   Reply With Quote
Old 2010-06-19, 19:59   #10
joblack
 
joblack's Avatar
 
Oct 2008
n00bville

52×29 Posts
Default

Quote:
Originally Posted by lfm View Post
Well, actually it seems you can't. :-)
I can, Prime95 can't. ;)

Last fiddled with by joblack on 2010-06-19 at 19:59
joblack is offline   Reply With Quote
Old 2010-06-19, 21:01   #11
S485122
 
S485122's Avatar
 
Sep 2006
Brussels, Belgium

2×5×167 Posts
Default

Quote:
Originally Posted by lfm View Post
Well, actually it seems you can't. :-)
Quote:
Originally Posted by joblack View Post
I can, Prime95 can't. ;)
Prime95 can't on your machine : no problems on mine. Of course I use XP not some DRM software pretending to be an OS ;-)

Jacob
S485122 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
GMP under win64 compilation paulunderwood Programming 1 2015-10-30 02:18
Prime95 P-1 memory leak? TheMawn Software 5 2013-12-12 01:22
i7/prime95 memory question stars10250 Hardware 115 2012-10-24 15:24
Prime95 v25.7 memory usage opyrt Software 1 2008-11-09 08:43
Prime95 Memory Usage jimmyhua Software 7 2005-07-10 07:37

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

Sat May 15 11:31:16 UTC 2021 up 37 days, 6:12, 0 users, load averages: 1.61, 1.60, 1.53

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.