From: stripes@va.pubnix.com (Josh M. Osborne)
Subject: Re: fork() with copy-on-write?
Date: 1996/03/26 [thread overview]
Message-ID: <4j8414$smu@garotte.va.pubnix.com> (raw)
In-Reply-To: 4is3hq$fj1@microl4.microlise.UUCP
In article <4is3hq$fj1@microl4.microlise.UUCP>,
Andrew Gierth <andrewg@microlise.co.uk> wrote:
[...]
>Minor correction: on some platforms it is not copy-on-write but
>copy-on-reference. This is because some architectures (mainly RISC)
>have trouble with mapping a physical page to multiple virtual addresses.
>
>The only platform I know for sure does copy-on-reference is HP-UX on the
>PA-RISC platform; but I suspect that AIX also does it. Anyone know?
Minor correction to the minor correction:
It isn't RISC archatectures that have trubble with COW so much as
MMU's with inverted page tables. It just so happens that the only
2 Unix running CPUs with inverted page table MMU's happen to be
(gennerally regarded as) RISC systems. They also both happen to be
IBM CPU's as well. The IBM ROMP (as seen in the IBM RT), and the
IBM POWER (as well as the IBM/Apple/Motorolla PowerPC).
There may well be other inverted page table RISCs (are the HP's?
was the old Sun4c PMEG cruft in the 4/60 era of SPARCs?), but I
don't know 'em off the top of my head. I *know* there are also
inverted page table CISC's, but I don't know which they would be.
Inverted page tables have some nice features (the table size grows
proportionally to the amount of physical memory in the machine, as
opposed to "normal" MMUs that require space proportional to the VM
size -- frequently with tricks to make the multiplyer smaller (multi
level page tables)). Unfortunitly they have some rather irritating
side effects (of which making COW hard is only one!).
I'm only an OS & hardware dabbler, not a serious student of either of
the arts. So I beleve I am unqualifyed to say *which* kind of MMU is
better when all the pros and cons are weighed. Thus I will leave you
with no answer to that question.
--
Just another dislexic porgrammer
Not speaking for any of my employers -- whomever they may be
next prev parent reply other threads:[~1996-03-26 5:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-03-19 5:00 fork() with copy-on-write? anh
1996-03-20 5:00 ` Jim Sullivan's Home Account
1996-03-20 5:00 ` Yan-Song Chen
1996-03-21 5:00 ` Andrew Gierth
1996-03-26 5:00 ` Josh M. Osborne [this message]
1996-03-26 5:00 ` Andrew Gierth
1996-03-27 5:00 ` Guy Harris
1996-03-28 5:00 ` Andrew Gierth
1996-03-28 5:00 ` Jens-Uwe Mager
1996-03-22 5:00 ` Peter Shenkin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox