Re: Run out of memory under WIN95
On July 1, Marcel Kollenaar wrote:
> Here follows some code of the program which ran out of memory at
> the moment it read in the entire list. EX was running in a DOS-box in
> WIN95.
I ran your program on a 24Mb win95 machine in a DOS box.
It worked fine. The disk was quiet (not swapping). The mem command showed
23Mb of free extended memory.
I then ran it on an 8Mb win 3.11 machine under "pure" DOS.
It worked ok there too.
I then tried it in a DOS box on the same 8Mb win 3.11 machine.
During the sort it started swapping intensely and after half an hour I gave
up and hit control-alt-delete. When a program repeatedly steps through a large
sequence that won't all fit into memory the "least-recently-used"
algorithm for virtual memory breaks down badly. The program ends up
reading the disk every time for each chunk of the sequence that it needs. It
never has the required data in memory because, for example, the first part
of the sequence has always been swapped out by the time it finishes the last
part and is ready to start over again.
Regards,
Rob Craig
Rapid Deployment Software
|
Not Categorized, Please Help
|
|