Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: glc+spam@patriot.net (George Coulouris)
Subject: Re: IA64 volume and low-end dominance
Date: Mon, 30 Jul 2001 02:49:58 -0000	[thread overview]
Message-ID: <slrn9m9iqm.fe1.glc+spam@adams.patriot.net> (raw)
In-Reply-To: 9k25j2$l65$1@pyrite.mv.net

On Sun, 29 Jul 2001 19:17:18 -0400, Bill Todd <billtodd@foo.mv.com> wrote:
>
>"George Coulouris" <glc+spam@patriot.net> wrote in message
>news:slrn9m93gf.64f.glc+spam@adams.patriot.net...
>> On 29 Jul 2001 16:38:08 GMT, Peter da Silva <peter@abbnm.com> 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.


  reply	other threads:[~2001-07-30  2:49 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-08 20:18 IA64 volume and low-end dominance Bill Todd
2001-07-09  0:55 ` Rob Barris
2001-07-09  9:22   ` Sander Vesik
2001-07-09 16:59   ` mulp
2001-07-09  6:30 ` Jordan Henderson
2001-07-09 16:59   ` mulp
2001-07-09 16:59   ` mulp
2001-07-28 10:05   ` mulp
2001-07-28  8:24     ` Ben Franchuk
     [not found]       ` <GH77ow.L5z@approve.se>
2001-07-28 11:06         ` Ben Franchuk
2001-07-29 20:25       ` Sander Vesik
2001-07-30 11:04       ` Bernd Paysan
2001-07-29 16:38     ` Peter da Silva
2001-07-29 17:31       ` Kurt Shoens
2001-07-29 21:15         ` Bill Todd
2001-07-29 21:25         ` Peter da Silva
2001-07-29 21:54           ` Bill Todd
2001-07-31  5:09             ` Kurt Shoens
2001-07-31  5:34               ` Bill Todd
2001-08-04 23:35                 ` Kurt Shoens
2001-08-05 23:47                   ` Bill Todd
2001-07-30  3:33           ` JF Mezei
2001-08-05  6:31           ` mulp
2001-07-29 22:28       ` George Coulouris
2001-07-29 23:17         ` Bill Todd
2001-07-30  2:49           ` George Coulouris [this message]
2001-07-30  6:09             ` Bill Todd
2001-07-30 11:21               ` Bernd Paysan
2001-07-30 13:30                 ` Bill Todd
2001-07-30 13:58           ` Sander Vesik
2001-07-30 14:04             ` Bill Todd
2001-08-05  6:27       ` mulp
2001-08-05 23:38         ` Bill Todd
2001-07-29 20:32     ` Sander Vesik
2001-07-30 11:21     ` Paul Hsieh
2001-07-30 13:07     ` Dave Hansen
2001-07-09  6:51 ` Dennis O'Connor
2001-07-08 22:25   ` Ben Franchuk
2001-07-09 10:10   ` Bill Todd
2001-07-09 13:58     ` Dennis O'Connor
2001-07-09  9:06 ` Jack Patteeuw
2001-07-09 14:57   ` Dan Pop
2001-07-09 20:04     ` Tim Mooney
2001-07-10  3:04       ` Dan Pop
2001-07-10  3:32         ` Tim Mooney
2001-07-10 14:02   ` Peter da Silva
2001-07-09 18:36 ` Peter da Silva
2001-07-17 19:56 ` Rudy de Haas
2001-07-30  0:22   ` yyyc186
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