At 03:52 PM 4/26/2005 +0100, Roberto Waldteufel wrote:

I have a system with 4 GB RAM and am aiming to write and execute programs that will use as much as possible of this RAM while running in 32-bit protected mode (via the GO32 program, linked into my code at compile time). The main problem has been to get access to all the memory through DPMI - as you are probably aware, Windows will not allow applications to access more than a theoretical maximum of 2 GB of the 4 GB address space, with 1.75 GB being the maximum available in practice. Previously I reported that DPMIONE could see 3.24 GB of memory while CWSDPMI could only see 2 GB. However, the figure for DPMIONE is what it says is available, but further testing proved that the number it reports is wrong. I wrote a test program which basically tests Malloc to destruction by repeatedly allocating RAM 1 MB at a time until Malloc fails, then prints the number of megabytes successfully allocated.

To exclude other possible limitations in the memory allocator internals of either DPMI client or host, you might also try allocating in 2/4/16/32M chunks and see if it stops at the same spot.





------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to