delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/14/10:12:46

Date: Fri, 14 Mar 1997 09:58:29 -0500 (EST)
From: "art s. kagel IFMX x2697" <kagel AT dg1 DOT bloomberg DOT com>
To: Paul Derbyshire <ao950 AT FreeNet DOT Carleton DOT CA>
Cc: djgpp AT delorie DOT com
Subject: Re: problem with malloc in djgpp?
In-Reply-To: <5galvr$bac@freenet-news.carleton.ca>
Message-Id: <Pine.D-G.3.91.970314095634.4515E-100000@dg1>
Mime-Version: 1.0

Windows has its own swap file which is (usually) fixed size.  You can 
increase in in the control panel I thing 386/advanced.  CWSDPMI and most 
other DPMI hosts use all available disk as virtual memory while Windows 
only provides virtual memory out of its swap file.

Art S. Kagel, kagel AT ts1 DOT bloomberg DOT com

On 14 Mar 1997, Paul Derbyshire wrote:

> 
> > |> That's because the value returned by `_go32_dpmi_remaining_virtual_memory' 
> > |> *includes* the free physical memory.  When you add the two, you get 
> > |> larger amount than what you actually have, so `malloc' fails.
> 
> Well, RHIDE tells me under DOS it has 70 free virtual megs, 7 free
> physical ones. When I go into Windows, it says 1 free virtual and 5 free
> physical. So, since I have seen virtual < physical, virtual cannot be
> physical PLUS swap unless I have a negative amount of swap space!
> 
> On the other hand, I find it very difficult to believe that Windows uses
> up 69 megabytes of swap, especially when I set it to only use 20 and on a
> different disk than my DJGPP swap file. So why DJGPP only coughs up one
> meg of virtual in Windows I don't know. (The 5 physical, I assume, is
> because the Windows kernel and locked memory in other apps add up to 2.)
> 
> --
>     .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
>  -()  <  When I go to the theater, I always go straight to the "bag and mix"
>     `*'  bulk candy section...because variety is the spice of life... [me]
> Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
> 

- Raw text -


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