www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/30/14:17:49

Date: Mon, 30 Jan 95 10:32:02 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: dodger AT gcr DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Q: go32 paging and memory management

In general, djgpp uses a round-robin pageout.  This means that there
is no overhead, but it's less efficient than LRU.  I think someone
tried to put LRU in once, but it doesn't seem to be in there now.

Unless your program's working set is larger than physical memory,
eventually everything you use will be in physical memory.  Each new
page touched (new mallocs, for example) cause some OTHER page to be
swapped out so that there is physical memory for the new data.

Memory that becomes unused will eventually be paged out, but malloc
will also reuse that memory for new requests.


- Raw text -


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