delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/08/18/00:47:59

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to remove warning: cwsdpmi.swp not found
Date: Wed, 17 Aug 2005 23:04:43 CDT
Organization: Rice University, Houston, TX
Lines: 32
Message-ID: <430408db.sandmann@clio.rice.edu>
References: <1124045702 DOT 398745 DOT 91750 AT g43g2000cwa DOT googlegroups DOT com>
NNTP-Posting-Host: clio.rice.edu
X-Trace: joe.rice.edu 1124339464 26417 128.42.105.3 (18 Aug 2005 04:31:04 GMT)
X-Complaints-To: abuse AT rice DOT edu
NNTP-Posting-Date: Thu, 18 Aug 2005 04:31:04 +0000 (UTC)
X-NewsEditor: ED-1.5.9
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> This SWAPPING is really silly. When I have huge
> free RAM (256 MB or more), I would expect that
> my prog uses it. However, the opposite occurs
> (except I BAN swapping as described above):
> it pushes all data to the SWP file on my HD !!!

CWSDPMI opens the swap file to have the handle
available - but will not use the file unless all
memory is in use.  You can even allocate more memory
than you have in the machine and it will not touch
the disk until you touch the memory.  If you are
using the swap file, then you are either touching
a lot of memory, or the memory is badly 
configured.

> Why the **** does CWSDPMI prefer the slow &
> insecure HD from RAM ??? (To C.W. Sandman)

It doesn't, except in the extreme case of using
over 512MB of physical memory, it will run out
of DOS memory for page tables and fault the page
tables themselves.  If you have lots of memory
feel free to disable swapping in the image.  If
you run out of memory you will then get a malloc
or sbrk() failure.

The standard distribution should work on any 
system, and allow you to "tweak" it for better
performance (via CWSPARAM).  If it shipped with
paging disabled, many users would not be able to
do C++ compiles without reading documents and 
making changes.

- Raw text -


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