Re: [HACKERS] Sequential scan speed, mmap, disk i/o - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Sequential scan speed, mmap, disk i/o
Date
Msg-id 199805140529.BAA00911@candle.pha.pa.us
Whole thread Raw
In response to Sequential scan speed, mmap, disk i/o  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] Sequential scan speed, mmap, disk i/o  (dg@illustra.com (David Gould))
Re: [HACKERS] Sequential scan speed, mmap, disk i/o  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
>
> Someone was complaining about sequential scan speed, so I decided to run
> a test.

> wc                            41 sec
> wc -l                            31 sec
> dd if=/u/pg/data/base/test/testv of=/dev/null bs=512    32 sec
> dd if=/u/pg/data/base/test/testv of=/dev/null bs=8k    31 sec
> dd if=/u/pg/data/base/test/testv of=/dev/null bs=256k    31 sec
> dd if=/u/pg/data/base/test/testv of=/dev/null bs=1m    30 sec
> mmap() of file in 8k chunks                99 sec
> mmap() of file in 8mb chunks                40 sec
> mmap() of file in 32mb chunks                56 sec
>
> PostgreSQL sequential scan                37 sec

Let me add, these times are on a PP200, with SCSI Ultra Barracuda
drives, BSD/OS 3.1, 64MB RAM.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.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)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] mmap and MAP_ANON
Next
From: dg@illustra.com (David Gould)
Date:
Subject: Re: [HACKERS] Sequential scan speed, mmap, disk i/o