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: 102b75,2e34ec8a2eb4f8b1 X-Google-Attributes: gid102b75,public X-Google-Thread: fa528,2e34ec8a2eb4f8b1 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-07-30 06:31:15 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!headwall.stanford.edu!unlnews.unl.edu!newsreader.wustl.edu!news.mv.net!not-for-mail From: "Bill Todd" Newsgroups: comp.arch,comp.os.vms,comp.unix.tru64 Subject: Re: IA64 volume and low-end dominance Date: Mon, 30 Jul 2001 09:30:38 -0400 Organization: Why won't Outlook let me leave this blank? Message-ID: <9k3nj0$69e$1@pyrite.mv.net> References: <9iaevf$39o$1@pyrite.mv.net> <9ibj2h$9nt$1@lisa.gemair.com> <9k1e5g$lic@web.nmti.com> <9k25j2$l65$1@pyrite.mv.net> <9k2tnd$76u$1@pyrite.mv.net> <3B654331.3B35B9ED@mikron.de> NNTP-Posting-Host: bnh-5-28.mv.com X-Trace: pyrite.mv.net 996499872 6446 199.125.98.28 (30 Jul 2001 13:31:12 GMT) X-Complaints-To: abuse@mv.com NNTP-Posting-Date: 30 Jul 2001 13:31:12 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.arch:14753 comp.os.vms:38342 comp.unix.tru64:3941 "Bernd Paysan" 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/