From: "Bill Todd" <billtodd@foo.mv.com>
Subject: Re: IA64 volume and low-end dominance
Date: Mon, 30 Jul 2001 09:30:38 -0400 [thread overview]
Message-ID: <9k3nj0$69e$1@pyrite.mv.net> (raw)
In-Reply-To: 3B654331.3B35B9ED@mikron.de
"Bernd Paysan" <bpaysan@mikron.de> wrote in message
news:3B654331.3B35B9ED@mikron.de...
> Bill Todd wrote:
> > The question is, pretty well at what? There are certainly applications
that
> > can use this effectively (as well as applications where it's a really
bad
> > idea), but typically databases (the area that was being discussed) have
a
> > pretty well-defined means of accessing data: it resides in structured
pages
> > of one or a few fixed sizes, these pages are often accessed randomly,
and
> > when written back to the database they're written in a
tightly-controlled
> > manner (and usually in page units) w.r.t. log file writes.
>
> man msync
>
> You can tightly control your write-back times, at least within sync
> points ("must be written before"). With log-structured writes, you
> typically first announce updates into the log, then write the log, and
> then update the in-core database pages; before starting the next log,
> sync the updated pages.
As you describe it above (and as the man page describes it) this requires
you not to touch the in-memory pages until the log update has completed.
For much internal database use, this is not acceptable.
>
> If you use mmap without any sort of madvice or automatic prefetch, you
> better stick to the CPU's page size for your data base. And current
> pages are either too small or too large (4k vs. 4M).
Remember that this issue was raised as a matter of programming convenience
that a 64-bit address space offered to database-internal code. When you add
in the requirements of using madvise before your mmap, msyncs to control
writes (leaving aside the fact that they don't control writes the way the
database normally wants to), and explicit locking associated with all
accesses (which generates extra network traffic in distributed systems
compared with approaches that can associate locking information with each
access request), the added 'convenience' of using mmap seems questionable at
best.
- bill
>
> --
> Bernd Paysan
> "If you want it done right, you have to do it yourself"
> http://www.jwdt.com/~paysan/
next prev parent reply other threads:[~2001-07-30 13:30 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
2001-07-30 6:09 ` Bill Todd
2001-07-30 11:21 ` Bernd Paysan
2001-07-30 13:30 ` Bill Todd [this message]
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