Re: WAL Performance Improvements

Поиск
Список
Период
Сортировка
От Helge Bahmann
Тема Re: WAL Performance Improvements
Дата
Msg-id Pine.LNX.4.21.0202261136360.10460-100000@lothlorien.stunet2.tu-freiberg.de
обсуждение исходный текст
Ответ на Re: WAL Performance Improvements  (Janardhana Reddy <jana-reddy@mediaring.com.sg>)
Список pgsql-patches
On Tue, 26 Feb 2002, Janardhana Reddy wrote:
>    Test Results with Latest patch :
>           environment:  Intel PC ,IDE (harddisk),Linux Kernel 2.4.0 (OS
> Version). Single
>                 connection is connected to the database and pumping
> continously insert statements. each insert
>                generates 160 bytes  to WAL Log.

8192:
> Transaction Per Second :     332 TPS
> Time Taken by fdatasync :  2160

4096:
> Transaction Per Second : 435 TPS
> Time Taken by fdatasync :  512

Unforunately your timings are meaningless. Assuming you have a
10000rpm drive (that is, 166 rounds per second), it is physically
impossible to write 332 or 435 times per second to the same location
on the disk.

So I guess your disk is performing write-caching and not really writing
the data back when requested by fsync(). You may try to disable
write caching and see if it makes a difference:

  hdparm -W 0 /dev/hda

But note that most (or even all) modern IDE drives will not disable write
caching even when instructed to do so. You should try to repeat the timings
using SCSI drives -- I guess you will not see any improvement here.

Regards
--
Helge Bahmann <bahmann@math.tu-freiberg.de>             /| \__
Network admin, systems programmer                      /_|____\
                                                     _/\ |   __)
$ ./configure                                        \\ \|__/__|
checking whether build environment is sane... yes     \\/___/ |
checking for AIX... no (we already did this)            |


В списке pgsql-patches по дате отправления:

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: minor doc patch for example in 'SET' docs
Следующее
От: Janardhana Reddy
Дата:
Сообщение: Re: WAL Performance Improvements