🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: HDMem vs GigaMem for virtual memory on Amigas?

#7499
From: Schneider Christian
Date: Sun, 04 Oct 1992 19:29
38 lines
2533 bytes
In article <dej.01pt@qpoint.ocunix.on.ca> dej@qpoint.ocunix.on.ca (David Jones) writes:
>Does it work if I Forbid() and then page fault?  Disable() and page fault?
>(i.e. if my Forbid() gets broken and whatever I was trying to mutex with
>the Forbid() gets un-mutexed, then it don't work.)

GigaMem tries its best to keep Forbid()s mutex. This is nevertheless
100%, one could figure configurations where another task could sneak
in and change some lists etc.
Disable() does not work and will provoke a software failure-like requester
giving the user the ability to Suspend/Reboot...

Note: Both this cases could be avoided for existing software due to
GigaMem's unique feature to use program specific settings..
Even for 'nasty' programs like ImageMaster which uses MEMF_PUBLIC for
ALL his buffer allocations.

>I've heard of GigaMem, but I'd be interested in seeing exactly what
>restrictions are placed on programmers because of it.  I am writing a
>shared library, and I don't want to deny appliction programmers use of
>my library if they want to use GigaMem.

I try to put this as short as possible:
1) Use MEMF_PUBLIC for all allocations except the large (and probably
   growing with the data) buffers. 
2) Not these large buffers from within Disable()/SoftInts/IntHandlers
   and preferably not Forbid(). Don't put  program code into such buffers.

Note: Point 1 is a hint, point 2 is a general rule for virtual memory...

More complete information can be obtained from the GigaMem developer
kit which includes information about vmem.library and its support routines
and can be obtained from the distributor of GigaMem.

- Chris
-- 
-- 
Chris Schneider - cschneid@amiga.physik.unizh.ch BIX: hschneider IRC: cschneid
It's impossible to enjoy idling thoroughly unless one has plenty of work to do
Technical Details
Message-ID: <1992Oct4.192918.9506@ifi.unizh.ch>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!chx400!josef!avalon.physik.unizh.ch!cschneid
References: <1992Sep30.165503.23440@ifi.unizh.ch> <35504@cbmvax.commodore.com> <dej.01pt@qpoint.ocunix.on.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.amiga.tech,comp.sys.amiga.programmer,comp.sys.amiga.applications,comp.sys.amiga.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!chx400!josef!avalon.physik.unizh.ch!cschneid
From: cschneid@avalon.physik.unizh.ch (Schneider Christian)
Subject: Re:  HDMem vs GigaMem for virtual memory on Amigas?
Message-ID: <1992Oct4.192918.9506@ifi.unizh.ch>
Sender: news@ifi.unizh.ch (USENET News Admin)
Nntp-Posting-Host: avalon
Organization: Informatik Club d. Universitaet, Zuerich
References: <1992Sep30.165503.23440@ifi.unizh.ch> <35504@cbmvax.commodore.com> <dej.01pt@qpoint.ocunix.on.ca>
Date: Sun, 4 Oct 1992 19:29:18 GMT
Lines: 38