www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/03/13:44:35

From: y0000980 AT rzrtr1 DOT rz DOT tu-bs DOT de (Andree Borrmann)
Newsgroups: comp.os.msdos.djgpp
Subject: dpmi_discard_page_content
Date: 3 Dec 1996 17:21:47 GMT
Organization: Technische Universitaet Braunschweig, Germany
Lines: 27
Distribution: world
Message-ID: <581njb$1su@ra.ibr.cs.tu-bs.de>
NNTP-Posting-Host: rzrtr1.rz.tu-bs.de
Keywords: dpmi, malloc
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi!

Some of my programs need temporarly huge amount of memory. When I malloc e.g. 
8 megs (I said huge!) and then free them, the memory-system starts to swap
the pages (full of crap no longer needed) out to disc (they are in the 
"internal-memory-pool") I think thatīs somewhat ineffeciently...
So I want to patch the malloc/free routines to be somewhat more intelligent.
So hereīs my question:

What exactly does the __dpmi_discard_page_content function?

Does it free (from dpmi-allocated) the page (I hope not...)?

Or does it just pretend that crap will be swapped out to disc?


Second question:

Is this function implemented in CWSDPMI ? 

(Itīs not in PMODEDJ for sure - without virtual memory ... by the way:
the algorithm malloc uses are for a virtual memory system... so better donīt 
use PMODEDJ or CWSDPR0 if Your program uses lot of mallocīs...)

Bye,
Andree

- Raw text -


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