delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/20/07:29:48

Date: Fri, 16 Jan 1998 16:38:25 -0800 (PST)
Message-Id: <199801170038.QAA07307@adit.ap.net>
Mime-Version: 1.0
To: taupin AT lps DOT u-psud DOT fr, "John M. Aldrich" <fighteer AT cs DOT com>
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Swap memory available
Cc: DJGPP List <djgpp AT delorie DOT com>

At 10:10  1/16/1998 -0200, Daniel TAUPIN wrote:
>John M. Aldrich wrote:
>> 
>> Daniel Taupin wrote:
>> >
>> > When running go32-v2 I get some value of SWAP available (i.e. 60mbyte),
byt with the
>> > old I get 200Mbyte.
>> >
>> > I suppose one has wap on one disk, i.e. C:, the other on D:
>> >
>> > But, where is the amount/location of swap memory set?
>> 
>> It's a runtime variable, determined by the amount of free physical
>> memory and free disk space on your computer.  By default, the cwsdpmi
>> DPMI host uses "c:\cwsdpmi.swp" for your swap file, so its value should
>
>There is not cwsdpmi.swp in my computer!
Because it deletes it when it finishes.
>
>> not depend on where you run go32-v2 from.  The total swap space
>> available under cwsdpmi will be a number from 0 to 256 MB, depending on
>> which version of cwspdmi you have and how much free disk space exists.
>> However, this only applies if you run from plain DOS with no other DPMI
>> host loaded.  If you run go32-v2 from a Windows DOS shell, or under
>> QDPMI, 386MAX, 4DOS, OpenDOS, or some other environment that provides
>> DPMI, DJGPP programs will use whatever memory those hosts provide.
>
>Yes, but does this explain the difference between what is said by
>GO32(v1) and GO32-V2?
No. The old go32 used some other scheme to locate the swap file, and in fact
did almost everything, including memory allocation, differently.
>> 
>> Oh, and don't worry about losing the use of that disk space.  cwsdpmi
>> only accesses swap space when it needs it; it leaves your hard drive
>> alone otherwise.  :-)
>> 
>But the question is still: on which disk will cwsdpmi.swp be installed?
>C: or D:?
C:, unless you have changed it.
>And how can I decide it on D: rather than C:?]
Use CWSPARAM.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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