www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/22/09:02:51

Date: Tue, 22 Jul 1997 01:37:37 -0600
From: Esa Peuha <Esa DOT Peuha AT helsinki DOT fi>
Subject: Re: mem alloc taking up power of 2
Newsgroups: comp.os.msdos.djgpp
Message-ID: <869552497.24200@dejanews.com>
Organization: Deja News Posting Service
References: <33cc4f06 DOT 4823733 AT 192 DOT 189 DOT 54 DOT 145> <vlnYdGAm+QzzEwqo AT talula DOT demon DOT co DOT uk>
Lines: 19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <vlnYdGAm+QzzEwqo AT talula DOT demon DOT co DOT uk>,
  Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk> wrote:
> When you say that you are losing
> 640k, remember that this is virtual memory, so if you never touch the
> space the DPMI server won't actually bother to allocate any hardware
> pages for it.

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.

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet

- Raw text -


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