mersenneforum.org  

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

Reply
 
Thread Tools
Old 2003-08-07, 14:26   #1
nomadicus
 
nomadicus's Avatar
 
Jan 2003
North Carolina

2×3×41 Posts
Default Exhausted memory

I am posting this in the hardware forum because I suspect a hardware problem, but I need feedback. Didn't see any topics with the words "exhausted memory" in them either.

Ran the torture test two times. I've set the prime95's memory parameters to be 550MB out of 768MB on one run and 500MB out of 768MB in another. Both times it stops (AMD XP 1700, Win98SE, 768MB) when it hits the 2048K FFT and says "exhausted memory"
The next line says the test is being stopped with "0 errors and 0 warnings"

What's up with that? Do I have a hardware problem?
Thanks -=- john
nomadicus is offline   Reply With Quote
Old 2003-08-07, 16:53   #2
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

265278 Posts
Default

I don't have much experience with this sort of thing on x86, but I've seen similar happen using Mlucas in self-test mode on a few platforms. What seems to happen is that as each suseqent job allocates the memory it needs, the memory freed by the previous run is not being recycled, so if (for example) you run around 100 trials at an average FFT length of 1024K, each trial needing 8-10MB of RAM, you wind up exhausting a 1GB virtual memory space.

But I don't know if that's what's happening on your system - George would be the person to answer that.
ewmayer is offline   Reply With Quote
Old 2003-08-07, 23:30   #3
nomadicus
 
nomadicus's Avatar
 
Jan 2003
North Carolina

2×3×41 Posts
Default

Argg! I turned off virtual memory pagefile and forgot to turn it back on. I feel stupid!
nomadicus is offline   Reply With Quote
Old 2003-08-08, 02:30   #4
QuintLeo
 
QuintLeo's Avatar
 
Oct 2002
Lost in the hills of Iowa

1C016 Posts
Default

Since it turned out to be a software problem, I moved this topic to Software.

Sometimes it's hard to tell 'till you FIND the problem.

8-)
QuintLeo is offline   Reply With Quote
Old 2003-08-08, 15:43   #5
E_tron
 
E_tron's Avatar
 
Sep 2002
Austin, TX

3·11·17 Posts
Default

Could Windows98 be using that much memory for an exhaust ?! 768-550=218. I would think that Windows98 could contain itself on that :? . I feel like im still in the memory stone ages :D .
E_tron is offline   Reply With Quote
Old 2003-08-08, 18:44   #6
dsouza123
 
dsouza123's Avatar
 
Sep 2002

66210 Posts
Default

I realize you found a solution ( turning the virtual memory paging system back on), but if after the first run you exited Prime95 then that memory should have been released ( how it takes to release is an issue ).

98se has some sort of OS memory issue if you have more than 512 MB, edit System.ini in the vcache section set the max amount of memory for caching ( MinFileCache and ChunkSize too if you want).
[vcache]
MaxFileCache=524288

or less if you want (what I have done, to give programs more, cache less)
[vcache]
MinFileCache=4096
MaxFileCache=24576
ChunkSize=512

Only the first 512MB can be cached.
dsouza123 is offline   Reply With Quote
Old 2003-08-08, 20:14   #7
nomadicus
 
nomadicus's Avatar
 
Jan 2003
North Carolina

2·3·41 Posts
Default

dsouza123.
The first thing I did after loading Sin98, but before turning off the pagefile, was to set the vcache parameters (MaxFileSize=16384, I like it small). I probably should have mentioned that earlier. The vcache bug is a design flaw, but I'm stuck with this OS since I have apps that won't run on XP or linux. Regardless, Microshaft gives the lowdown here.

Actually, I didn't find a solution yet. I turned the pagefile back on, got impatient, and I reported back to this thread success before verifying it (that'll teach me). ops:
Now I get
[code:1]Out of memory
0 errors, 0 warning.[/code:1]
So now I am out of memory, which is baloney, as opposed to "exhausted memory" (probably a malloc() status due to the pagefile missing).

I have my suspecions about the mobo being DOA (because of other weirdness) but can't prove it yet. I'll double check for typos on the vcache settings. For now, I've taken out one of my two sticks of memory and torturing again. Maybe hardware. Maybe software. I haven't encountered this combination before. Don't know where this will end up.
Suggestions are welcome.

Quote:
Originally Posted by E_tron
Could Windows98 be using that much memory for an exhaust ?! 768-550=218. I would think that Windows98 could contain itself on that :? . I feel like im still in the memory stone ages :D .
I love operating systems internals and the subject of memory management fascinates me (as does process/thread scheduling). In short, the OS seemed to take so much RAM when all along that was a side effect of turning off the pagefile. Turning on the pagefile keeps part of the OS and its processes, DLL's, etc. in RAM and part in the pagefile (and other places, but no need to go into that here). PM me if you want to know more.

-=- john
nomadicus is offline   Reply With Quote
Old 2003-08-08, 22:34   #8
dsouza123
 
dsouza123's Avatar
 
Sep 2002

66210 Posts
Default

Have you shut down the PC since getting the messages ?

Some OS stuff doesn't get restored/fully restored until a full shutdown and startup.

Maybe if the memory is still allocated before the pagefile was reactivated it is working with a reduced amount of memory, the allocated memory from the runs is now locked and unavailable for use.

I notice after a program crashes the system resources aren't returned until a full shutdown and restart. Then they are completely restored.
Maybe the allocated memory from Prime95 remains allocated and only after a shutdown will virtual memory work correctly and the memory be freed.

I realize it is obvious that a shutdown will free all memory and resources because Windows starts fresh with each restart, but am mentioning it just to be thorough.
dsouza123 is offline   Reply With Quote
Old 2003-08-09, 06:58   #9
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

2×13×307 Posts
Default

I'm curious what program you run needs W98... XP has a real nice compatibility mode that does surprisingly well with older programs... If you want I could test your program with it to see if it works...
Xyzzy is offline   Reply With Quote
Old 2003-08-09, 15:05   #10
nomadicus
 
nomadicus's Avatar
 
Jan 2003
North Carolina

111101102 Posts
Default

Quote:
Originally Posted by Xyzzy
I'm curious what program you run needs W98... XP has a real nice compatibility mode that does surprisingly well with older programs... If you want I could test your program with it to see if it works...
Recording studio stuff. There's a device driver for the 128 channel recorder/mixer that controls a proprietary sound card driving the DAC/ADC's. A year or two ago there were rumors going around that some of the users themselves started writing an XP driver . . . I'll have to track down the user group.
Thanks for the offer. I may take you up on it if the search is positive.
nomadicus is offline   Reply With Quote
Old 2003-08-11, 02:11   #11
nomadicus
 
nomadicus's Avatar
 
Jan 2003
North Carolina

2×3×41 Posts
Default

Still says "no memory" when it hits the 4096K FFT; the 3584K is fine. Apparently, Win98 needs a huge pagefile for FFT's that large.
So I'm going to declare the CPU and memory just fine. Got other problems though . . . :?
nomadicus is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Hybrid Memory Cube" offers 1 Tb/s memory bandwith at just 1.4 mW/Gb/s ixfd64 Hardware 4 2011-12-14 21:24
Memory available to P-1 lycorn Software 23 2010-05-09 22:15
How much memory do you have? fivemack Factoring 17 2009-08-23 16:00
How much memory? Unregistered Software 29 2004-09-04 19:35
P-1 Memory... Xyzzy Marin's Mersenne-aries 7 2004-03-12 13:34

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

Tue Mar 2 11:49:53 UTC 2021 up 89 days, 8:01, 0 users, load averages: 1.81, 2.20, 2.12

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.