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: f678f,db9f775c28e31eb6 X-Google-Attributes: gidf678f,public X-Google-Thread: fe1d2,db9f775c28e31eb6 X-Google-Attributes: gidfe1d2,public X-Google-Thread: 115614,db9f775c28e31eb6 X-Google-Attributes: gid115614,public From: guy@netapp.com (Guy Harris) Subject: Re: fork() with copy-on-write? Date: 1996/03/27 Message-ID: <4jc6gf$3j1@bayonne.netapp.com>#1/1 X-Deja-AN: 144489939 references: <1996Mar19.160747.116289@kuhub.cc.ukans.edu> <4is3hq$fj1@microl4.microlise.UUCP> <4j8414$smu@garotte.va.pubnix.com> <4j9bqr$q1h@microl4.microlise.UUCP> organization: Network Appliance newsgroups: comp.unix.aix,comp.unix.misc,comp.unix.osf.misc,comp.unix.sco.misc Andrew Gierth wrote: >Another factor is caching; some architectures cache by virtual address, >to make the data available more quickly on a cache hit. The Sun-3/2xx machines, Sun-4/2xx machines, Sun-4c machines, Auspex machines with an HP V host processor, and probably others 1) have virtually-indexed, virtually-tagged caches and 2) can run OSes that support copy-on-write and mapping a physical page to multiple virtual addresses: Some other machines from Sun, Auspex, and others, have virtually-indexed, physically-tagged caches, and can run those OSes as well. And, no, the OSes in question (SunOS 4.x and 5.x) do *not* automatically mark shared pages as uncacheable; they only do so if the virtual addresses for the shared page aren't all congruent modulo the cache size. Furthermore, AIX, at least, supports shared memory and shared libraries and shared text on RS/6000's with inverted page tables; it *is* possible to have a page mapped to multiple addresses - the trick, as I remember, is that a 32-bit per-process virtual address has the upper few bits select a segment register, and some stuff in the segment register and the rest of the 32-bit virtual address are concatenated to make a >32-bit *global* virtual address. A shared page has, I think, only one such global virtual address, but appears in more than one per-process 32-bit address space.