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: andrewg@microlise.co.uk (Andrew Gierth) Subject: Re: fork() with copy-on-write? Date: 1996/03/26 Message-ID: <4j9bqr$q1h@microl4.microlise.UUCP>#1/1 X-Deja-AN: 144220934 x-nntp-posting-host: microl.demon.co.uk references: <1996Mar19.160747.116289@kuhub.cc.ukans.edu> <4inn3r$ffi@masala.cc.uh.edu> <4is3hq$fj1@microl4.microlise.UUCP> <4j8414$smu@garotte.va.pubnix.com> organization: Microlise Engineering Ltd. reply-to: andrewg@microlise.co.uk (Andrew Gierth) newsgroups: comp.unix.aix,comp.unix.misc,comp.unix.osf.misc,comp.unix.sco.misc In <4j8414$smu@garotte.va.pubnix.com>, stripes@va.pubnix.com (Josh M. Osborne) writes: >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). Minor correction to the minor correction to the minor correction: The PA-RISC also has an inverted page table. So change 'only 2' to 'at least 3'... (I did say 'mainly RISC'...) Another factor is caching; some architectures cache by virtual address, to make the data available more quickly on a cache hit. I suspect that this is usual on architectures with inverted page tables... -- Andrew (andrewg@microlise.co.uk) [.sig under construction]