🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10749

Re: CloseFonts() problems

#10749
From: Marco Papa
Date: Fri, 30 Dec 1988 05:10
26 lines
1924 bytes
In article <YXienJy00Vsf0AHTAo@andrew.cmu.edu| mp1u+@andrew.cmu.edu (Michael Portuesi) writes:
|ewhac@well.UUCP (Leo L. Schwab) writes:
||         You can force the system to purge all loaded fonts and libraries
|| that are not currently in use by trying to allocate four gigabytes of RAM:
||         AllocMem (4000000000L, NULL);
||         This will always fail (unless you actually happen to *have* four
|| gigabytes of RAM hanging around (or if AmigaDOS/Kickstart ever goes
|| virtual)).
|Perhaps better would be an Exec call to automatically flush non-used
|libraries and fonts from memory. Does one exist?
                                  ^^^^^^^^^^^^^^
Nope.

|Is it a good idea for random programs to be flushing things that might be 
| better off cached?

Well, I can tell you that the practice Leo refers to is widely used since it
is the ONLY way to flush things and force memmory merge.  I use it myself.
The performance penalty is in my opinion not that big.  An Exec call that
ASKED for a flush would be nice, though. (1.4? Dale?, Jimm?).

-- Marco Papa 'Doc'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
uucp:...!pollux!papa       BIX:papa       ARPAnet:pollux!papa@oberon.usc.edu
 "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <14355@oberon.USC.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!apple!bbn!oberon!pollux.usc.edu!papa
References: <3599@tekig5.PEN.TEK.COM> <10097@well.UUCP> <YXienJy00Vsf0AHTAo@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!apple!bbn!oberon!pollux.usc.edu!papa
From: papa@pollux.usc.edu (Marco Papa)
Newsgroups: comp.sys.amiga.tech
Subject: Re: CloseFonts() problems
Message-ID: <14355@oberon.USC.EDU>
Date: 30 Dec 88 05:10:47 GMT
References: <3599@tekig5.PEN.TEK.COM> <10097@well.UUCP> <YXienJy00Vsf0AHTAo@andrew.cmu.edu>
Sender: news@oberon.USC.EDU
Reply-To: papa@pollux.usc.edu (Marco Papa)
Organization: Felsina Software, Los Angeles, CA
Lines: 26