Mail Archives: djgpp/1999/12/19/03:56:16
On Sat, 18 Dec 1999, Damian Yerrick wrote:
> > On NT: 16 MB / 0 MB
> >
> > How much swap space do I need and how do I change the
> > amount of swap space available on the NT machine?
>
> It seems that some Pinocchio wrote the "report memory
> available" code in NT's DPMI.
This is unfair, even though we all love to bash MS. It is not easy to
report available memory on an advanced OS; the related DPMI functions
were designed with simple-minded one-process DOS in mind. For
example, you could have several DOS boxes open at a time: what would
you expect NT to report as available memory in that case--memory
available to all of the boxes, or to each one of them? The latter is
next to impossible, since it depends on what the other DPMI clients
do.
From my small experience, it seems that NT allocates DPMI memory
dynamically, and reports whatever is currently allocated. When the
application asks for more than that, the allocation gets larger. NT
always reports zero swap space, but that shouldn't matter, as a DJGPP
program should only care about the sum of the two numbers reported by
go32-v2, when it runs on enything other than DOS.
- Raw text -