Re: Another New Hardware Thought



On May 4, 6:33 am, "Jeff Blakeney" <jeff.blake...@xxxxxxxxxxxxxxxxxxxxx
zvw-this> wrote:

In the case of an Apple IIgs MMU, having hardware memory protection to
keep tasks from walking on each other and to inform the developer or
user of what is happening would be fantastic.

I agree that in theory, it'd be nice. I'm not generally dissing the
concept of an MMU, just pointing out its overhead would outweigh any
advantage it gave.

The example you provide is the only tangible benefit adding an MMU
would provide, but consider the cost/complexity equation. Every
Toolbox/OS call would have to be thunked through a proxy interface
which adds data copy, interrupt, and context switching overhead. The
memory manager would become complex enough to be half an OS in its own
right. In order for a context switch to not chew up too many cycles or
consume a lot of memory, your page size would have to be something in
the order 128kb. On a machine with 4mb of RAM, that's only 64 possible
pages, how quick would this run out? You'd have to do swapping not
because you'd run out of physical RAM, but because the page size was
too granular, "wasting" RAM.

Then you have the realtime cost of swapping itself, which on an Apple
II would be quite high since you're only really going to get 100kb/s I/
O speed on a really good day. If you had other 'real work' for the CPU
to do and the ability to do asynchronous I/O you could amortize this
cost, but unfortunately we don't have the latter, and in many use
cases wouldn't have the former either.

In the end, all the above (and some things I've not thought of) would
be added performance overhead just to get memory protection. In short,
it's not worth it.

You could probably engineer a simple page-guard mechanism that would
give the mentioned functionality, something similar to what the 80286
could do - a processor much closer to being a contemporary of the
65816. There's a reason why virtualised memory didn't become commonly
used until the 32-bit 50Mhz+ era - you need this much 'grunt' to push
the overheads involved into 'noise'.

Matt

.



Relevant Pages

  • Re: Memory and Partitions
    ... There is overhead when you create LPARs, the hypervisor has to map out the ... memory for each LPAR. ... The 2GB RAM for overhead is normal. ...
    (AIX-L)
  • Re: What if no more transistors?
    ... plus some overhead. ... RAM in my computer. ... That's one way of building memory for a vacuum tube based computer. ...
    (rec.arts.sf.science)
  • Re: Steve Jobs demos Macintosh in 1984
    ... Woody wrote: ... Stop annoying the fucking hell out of me, ... For sure not much computer memory had been made in 1948 - but it could ... For sure you got a bit more RAM to use in the Speccy - ...
    (uk.comp.sys.mac)
  • Re: Windows uses 4 GB? Really?
    ... I bought 4 GB of RAM because I thought it would speed up my system a bit. ... Some info that is posted here as reference seems to suggest that it is a Windows issue, but others seem to suggest that it is also a hardware issue. ... "I have install total 4GB memory on my motherboard. ... On a SLI system, since PCI-Ex graphic cards will occupy around 256MB, another 256MB will be occupied after you install a 2nd PCI-Ex graphic card. ...
    (microsoft.public.windowsxp.general)
  • Re: Computer wont boot up after installing new RAM
    ... I even took a look at an old Gigabyte motherboard ... DDR2 memory stick, the notch does not line up. ... "To install the memory module, ... into the motherboard RAM slots. ...
    (microsoft.public.windowsxp.hardware)