Mail Archives: djgpp/1998/10/13/12:59:41
On Tue, 13 Oct 1998, A. Sinan Unur wrote:
> > I might be too dense today, but what exactly is the question? Do you
> > wonder why Windows lets you use more than you ahve asked for?
>
> i was under the impression that dpmi under windows was limited to 64Mb
> TOTAL so, i was just curious.
Not really; check out section 3.10 of the latest FAQ.
> after extensive experimentation, i decided leaving the cache size fixed
> was fine, because otherwise windows gobbles up all available physical
> memory pretty fast.
So what? What good is it to have 80MB of memory if you don't let the
OS use it? A good setup should have most of the memory used all the
time, otherwise it is wasted.
DOS doesn't let you do this, since most memory-resident software there
cannot allocate and deallocate memory as needed. But Windows releases
memory by shrinking the cache as soon as some program requests it, so
there's no reason to restrict it.
Anyway, you can write a trivial 10-liner which requests an amount of
memory given on its command line and run it whenever you want that amount
to be free up front.
- Raw text -