Message-ID: <34BE88DC.B36F59A3@eik.bme.hu> Date: Thu, 15 Jan 1998 23:08:29 +0100 From: "Dr. András Sólyom" MIME-Version: 1.0 To: djgpp Subject: Q1:Virtual memory (followup of 'Q:How to check validity of a pointer') Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk I wrote in the previous mail: >According to this statistics I tried to allocate about 21 Mbytes of memory >which meant an amount of about 31 Mbytes allocated according to my guess ( I >set the real allocated memory to have a size equal to the nearest power of 2, >which is greater then or equal to (size + 4) ) The program did about 3 million >small allocations. Some additional info : I printed out all of the data I allocated, and even the ASCII output was 70 Mbytes only! Here is the memory info I got at the last run: Out of memory in MyRealloc Memory required: 80 byte Memory allocation count: 370970 Total allocated memory: 21533687 byte Calculated total allocated memory: 32113104 byte Reallocation count: 1139310 _go32_dpmi_get_free_memory_information: available_memory: 162299904 available_pages: 39624 available_lockable_pages: 7297 linear_space: -1 unlocked_pages: 15600 available_physical_pages: 7297 total_physical_pages: 15600 free_linear_space: -1 max_pages_in_paging_file: 32760 _go32_dpmi_remaining_physical_memory: 40184 _go32_dpmi_remaining_virtual_memory: 40218 So why have I run out of memory? Andras