From: | Amit Kapila <amit(dot)kapila(at)huawei(dot)com> |
---|---|
To: | "'Peter Geoghegan'" <peter(at)2ndquadrant(dot)com>, "'PG Hackers'" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Help me develop new commit_delay advice |
Date: | 2012-08-01 14:14:45 |
Message-ID: | 000701cd6ff0000701cd6ff0$013a6210$03af2630$@kapila@huawei.com3a6210af2630$@kapila@huawei.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
> From: pgsql-hackers-owner(at)postgresql(dot)org
[mailto:pgsql-hackers-owner(at)postgresql(dot)org] On Behalf Of Peter Geoghegan
> Sent: Sunday, July 29, 2012 9:09 PM
> I made what may turn out to be a useful observation during the
> development of the patch, which was that for both the tpc-b.sql and
> insert.sql pgbench-tools scripts, a commit_delay of half of my
> wal_sync_method's reported raw sync speed looked optimal. I use Linux,
> so my wal_sync_method happened to have been fdatasync. I measured this
> using pg_test_fsync.
I have done some basic test for commit_delay parameter
OS version: suse linux 10.3
postgresql version: 9.3 dev on x86-64, compiled by gcc (GCC) 4.1.2 20070115
Machine details: 8 core cpu, 24GB RAM.
Testcase: pgbench tcp_b test.
Before running the benchmark suite, the buffers are loaded by using
pg_prewarm utility.
Test Results are attached with this mail.
Run1,Run2,Run3 means the same test has ran 3 times.
> It would be useful, for a start, if I had numbers for a battery-backed
> write cache. I don't have access to one right now though, nor do I
> have access to any more interesting hardware, which is one reason why
> I'm asking for help with this.
> I like to run "sync" prior to running pg_test_fsync, just in case.
> [peter(at)peterlaptop pg_test_fsync]$ sync
>I then interpret the following output:
> [peter(at)peterlaptop pg_test_fsync]$ pg_test_fsync
> 2 seconds per test
> O_DIRECT supported on this platform for open_datasync and open_sync.
> Compare file sync methods using one 8kB write:
> (in wal_sync_method preference order, except fdatasync
> is Linux's default)
> open_datasync 112.940 ops/sec
> fdatasync 114.035 ops/sec
> fsync 21.291 ops/sec
> *** SNIP ***
I shall look into this aspect also(setting commit_delay based on raw sync).
You also suggest if you want to run the test with different configuration.
With Regards,
Amit Kapila.
Attachment | Content-Type | Size |
---|---|---|
pgbench_results.htm | text/html | 16.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2012-08-01 14:42:40 | Re: New statistics for WAL buffer dirty writes |
Previous Message | Tom Lane | 2012-08-01 14:12:14 | Re: New statistics for WAL buffer dirty writes |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2012-08-01 15:19:28 | Re: Help me develop new commit_delay advice |
Previous Message | Hugo <Nabble> | 2012-08-01 05:33:04 | Re: pg_dump and thousands of schemas |