Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] mmap vs read/write

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: count0(at)fsj(dot)co(dot)jp
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] mmap vs read/write
Date: 1998-05-15 22:16:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
> This is unfair to mmap since mmap is called once
> per page. Better to mmap large regions (many
> pages at once), then use msync() to force 
> write any modified pages. Access purely in
> memory mmap'd I/O is _many_ times faster than
> read/write under Solaris or Linux later
> than 2.1.99 (prior to 2.1.99, Linux had
> slow mmap performance).

This makes me feel better.  Linux is killing BSD/OS in mapping tests.

See my other posting.

Bruce Momjian                          |  830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

In response to

pgsql-hackers by date

Next:From: ocieDate: 1998-05-15 22:50:45
Subject: Re: [HACKERS] mmap vs read/write
Previous:From: Internet WireDate: 1998-05-15 20:30:28
Subject: Internet Wire

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group