From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f72b0,db9f775c28e31eb6 X-Google-Attributes: gidf72b0,public X-Google-Thread: fe1d2,db9f775c28e31eb6 X-Google-Attributes: gidfe1d2,public X-Google-Thread: 115614,db9f775c28e31eb6 X-Google-Attributes: gid115614,public X-Google-Thread: f678f,db9f775c28e31eb6 X-Google-Attributes: gidf678f,public From: stripes@va.pubnix.com (Josh M. Osborne) Subject: Re: fork() with copy-on-write? Date: 1996/03/26 Message-ID: <4j8414$smu@garotte.va.pubnix.com>#1/1 X-Deja-AN: 144225470 references: <1996Mar19.160747.116289@kuhub.cc.ukans.edu> <4inn3r$ffi@masala.cc.uh.edu> <4is3hq$fj1@microl4.microlise.UUCP> organization: Pubnix Access Systems (Virginia) newsgroups: comp.unix.aix,comp.unix.misc,comp.unix.osf.misc,comp.unix.sco.misc In article <4is3hq$fj1@microl4.microlise.UUCP>, Andrew Gierth 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