Mail Archives: djgpp/1997/07/25/00:03:29
Esa Peuha wrote:
>
> True, but it must still allocate enough _disk space_ for it. The DPMI
> host can't know that you'll never touch that memory, and it must be able
> to page it in physical RAM if you do.
>
> > The only thing being wasted is a few meg of your 32 bit
> > linear address space, but there's plenty of that to go around :-)
>
> Disk space (in the swap file) is also being wasted, and this may be a
> problem.
Nothing is actually written to the swap file until touching a page of
memory requires swapping out a page in physical memory. cwsdpmi is very
intelligent about this; those extra 20k blocks should never actually
take up space in the swap file. However, they do count towards the
total memory that can be allocated.
AFAIK, allocated memory always remains purely "virtual" until it is
actually used.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com |
| * Proud user of DJGPP! * | http://www.cs.com/fighteer |
| ObJoke: If Bill Gates were a robber, not only would he |
| shoot you, but he'd send you a bill for the bullets. |
---------------------------------------------------------------------
- Raw text -