From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,2e34ec8a2eb4f8b1 X-Google-Attributes: gidf7344,public X-Google-Thread: fa528,2e34ec8a2eb4f8b1 X-Google-Attributes: gidfa528,public X-Google-Thread: 102b75,2e34ec8a2eb4f8b1 X-Google-Attributes: gid102b75,public X-Google-ArrivalTime: 2001-07-29 19:49:59 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!glc+spam From: glc+spam@patriot.net (George Coulouris) Newsgroups: comp.arch,comp.os.vms,comp.unix.tru64 Subject: Re: IA64 volume and low-end dominance Date: Mon, 30 Jul 2001 02:49:58 -0000 Organization: PatriotNet, (703) 277-7737 Message-ID: References: <9iaevf$39o$1@pyrite.mv.net> <9ibj2h$9nt$1@lisa.gemair.com> <9k1e5g$lic@web.nmti.com> <9k25j2$l65$1@pyrite.mv.net> User-Agent: slrn/0.9.6.2 (Linux) X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.arch:14727 comp.os.vms:38286 comp.unix.tru64:3925 On Sun, 29 Jul 2001 19:17:18 -0400, Bill Todd wrote: > >"George Coulouris" wrote in message >news:slrn9m93gf.64f.glc+spam@adams.patriot.net... >> On 29 Jul 2001 16:38:08 GMT, Peter da Silva wrote: >> [snip] >> > >> >In the 64-bit arena, it's large sparse address spaces for high-end >databases. >> > >> >> I'd go so far as to generalize this to dense address spaces as well. It's >> handy to use mmap() to pull in data. > >Handy, possibly. Inefficient, usually, since mmap doesn't know the size of >the chunk of data you need and unless the system's page-fetch algorithm just >happens to correspond with that size you'll either perform multiple fetches >from disk for a single chunk or fetch more than you need. And when it comes >time to write the data, you almost always need fine control over when, and >how much, hits the disk. I agree that it's probably inefficient in the general case. The particular app I'm working on, however, has the nice property that pages are accessed sequentially, are touched only once, and are read-only, so it works out okay. >Such use of mmap is a Unixism, and Unix has typically lagged a decade or >three behind when it comes to high-performance disk access (extent-based >file systems, which date at least back to the early 1970s and likely far >earlier, are still the exception rather than the rule). I doubt that >high-end databases can throw away performance to that degree and remain >competitive. Low-end databases may be able to, but then low-end databases >far less frequently need the larger address space. I use MapViewOfFile() as a drop-in replacement for mmap() under w2k. Does pretty well.