www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/06/17:31:24

From: "Michael N. Filippov" <michael AT idisys DOT iae DOT nsk DOT su>
Newsgroups: comp.os.msdos.djgpp
Subject: Memory amount and PMODE
Date: 6 Oct 2000 15:38:09 GMT
Lines: 39
Message-ID: <8rkrl1$31j5$1@news.itfs.nsk.su>
NNTP-Posting-Host: idisys.iae.nsk.su
X-Trace: news.itfs.nsk.su 970846689 99941 193.124.169.11 (6 Oct 2000 15:38:09 GMT)
X-Complaints-To: usenet AT news DOT itfs DOT nsk DOT su
NNTP-Posting-Date: 6 Oct 2000 15:38:09 GMT
User-Agent: tin/pre-1.4-19990517 ("Psychonaut") (UNIX) (Linux/2.4.0-test1 (i586))
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

How can I estimate amount of free / busy memory
in the program runing under PMODSTUB DPMI server.
For example _go32_dpmi_remaining_physical_memory() and
go32_dpmi_remaining_virtual_memory() return values that have no 
sense (4294967295 and 67107840).
-------- __dpmi_free_mem_info information ---------
largest_available_free_block_in_bytes = 67107840
maximum_unlocked_page_allocation_in_pages = 16383
maximum_locked_page_allocation_in_pages = 16383
linear_address_space_size_in_pages = 4294967295
total_number_of_unlocked_pages = 4294967295
total_number_of_free_pages = 4294967295
total_number_of_physical_pages = 4294967295
free_linear_address_space_in_pages = 4294967295
size_of_paging_file_partition_in_pages = 4294967295
-------- __dpmi_memory_info information ---------
total_allocated_bytes_of_physical_memory_host = 1573856
total_allocated_bytes_of_virtual_memory_host = 426244
total_available_bytes_of_virtual_memory_host = 65540
total_allocated_bytes_of_virtual_memory_vcpu = 426208
total_available_bytes_of_virtual_memory_vcpu = 426172
total_allocated_bytes_of_virtual_memory_client = 33
total_available_bytes_of_virtual_memory_client = 984
total_locked_bytes_of_memory_client = 0
max_locked_bytes_of_memory_client = 393984
highest_linear_address_available_to_client = 66585560
size_in_bytes_of_largest_free_memory_block = 65536992
size_of_minimum_allocation_unit_in_bytes = 90641
size_of_allocation_alignment_unit_in_bytes = 1008
  
on computer with 128 MB.

I'd like to trace my program which uses STL and sometimes dies
with "out of memory" message though my estimations show than 
only 30-50% of memory is allocated at the moment.

Thanks in advance,

Michael

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019