Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 5A8586351F3 for ; Wed, 1 Apr 2009 19:36:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 44644-02-7 for ; Wed, 1 Apr 2009 19:36:09 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EXHUB018-2.exch018.msoutlookonline.net (exhub018-2.exch018.msoutlookonline.net [64.78.17.17]) by mail.postgresql.org (Postfix) with ESMTP id 5CC0763727F for ; Wed, 1 Apr 2009 19:36:01 -0300 (ADT) Received: from EXVMBX018-1.exch018.msoutlookonline.net ([64.78.17.47]) by EXHUB018-2.exch018.msoutlookonline.net ([64.78.17.17]) with mapi; Wed, 1 Apr 2009 15:35:59 -0700 From: Scott Carey To: Stef Telford , "pgsql-performance@postgresql.org" Date: Wed, 1 Apr 2009 15:35:57 -0700 Subject: Re: Raid 10 chunksize Thread-Topic: [PERFORM] Raid 10 chunksize Thread-Index: AcmzCrNdZog+Od7WROynQG5tXNhLxQAD4YEP Message-ID: In-Reply-To: <49D3D211.1000500@ummon.com> Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=AWL=0.000 X-Spam-Level: X-Archive-Number: 200904/35 X-Sequence-Number: 33402 On 4/1/09 1:44 PM, "Stef Telford" wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Stef Telford wrote: >> Stef Telford wrote: >> Fyi, I got my intel x25-m in the mail, and I have been benching it >> for the past hour or so. Here are some of the rough and ready >> figures. Note that I don't get anywhere near the vertex benchmark. >> I did hotplug it and made the filesystem using Theodore Ts'o >> webpage directions ( >> http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-e= rase- >> block-size/ >> ) ; The only thing is, ext3/4 seems to be fixated on a blocksize >> of 4k, I am wondering if this could be part of the 'problem'. Any >> ideas/thoughts on tuning gratefully received. >>=20 >> Anyway, benchmarks (same system as previously, etc) >>=20 >> (ext4dev, 4k block size, pg_xlog on 2x7.2krpm raid-0, rest on SSD) >>=20 >> root@debian:~# /usr/lib/postgresql/8.3/bin/pgbench -c 24 -t 12000 >> test_db starting vacuum...end. transaction type: TPC-B (sort of) >> scaling factor: 100 number of clients: 24 number of transactions >> per client: 12000 number of transactions actually processed: >> 288000/288000 tps =3D 1407.254118 (including connections >> establishing) tps =3D 1407.645996 (excluding connections >> establishing) >>=20 >> (ext4dev, 4k block size, everything on SSD) >>=20 >> root@debian:~# /usr/lib/postgresql/8.3/bin/pgbench -c 24 -t 12000 >> test_db starting vacuum...end. transaction type: TPC-B (sort of) >> scaling factor: 100 number of clients: 24 number of transactions >> per client: 12000 number of transactions actually processed: >> 288000/288000 tps =3D 2130.734705 (including connections >> establishing) tps =3D 2131.545519 (excluding connections >> establishing) >>=20 >> (I wanted to try and see if random_page_cost dropped down to 2.0, >> sequential_page_cost =3D 2.0 would make a difference. Eg; making the >> planner aware that a random was the same cost as a sequential) >>=20 >> root@debian:/var/lib/postgresql/8.3/main# >> /usr/lib/postgresql/8.3/bin/pgbench -c 24 -t 12000 test_db starting >> vacuum...end. transaction type: TPC-B (sort of) scaling factor: 100 >> number of clients: 24 number of transactions per client: 12000 >> number of transactions actually processed: 288000/288000 tps =3D >> 1982.481185 (including connections establishing) tps =3D 1983.223281 >> (excluding connections establishing) >>=20 >>=20 >> Regards Stef >=20 > Here is the single x25-m SSD, write cache -disabled-, XFS, noatime > mounted using the no-op scheduler; >=20 > stef@debian:~$ sudo /usr/lib/postgresql/8.3/bin/pgbench -c 24 -t 12000 > test_db > starting vacuum...end. > transaction type: TPC-B (sort of) > scaling factor: 100 > number of clients: 24 > number of transactions per client: 12000 > number of transactions actually processed: 288000/288000 > tps =3D 1427.781843 (including connections establishing) > tps =3D 1428.137858 (excluding connections establishing) Ok, in my experience the next step to better performance on this setup in situations not involving pg_bench is to turn dirty_background_ratio down to a very small number (1 or 2). However, pg_bench relies quite a bit on the OS postponing writes due to its quirkiness. Depending on the scaling factor to memory ratio and how big shared_buffers is, results may vary. So I'm not going to predict that that will help this particular case, but a= m commenting that in general I have gotten the best throughput and lowest latency with a low dirty_background_ratio and the noop scheduler when using the Intel SSDs. I've tried all the other scheduler and queue tunables, without much result. Increasing max_sectors_kb helped a bit in some cases, but it seemed inconsistent. The Vertex does some things differently that might be very good for postgre= s (but bad for some other apps) as from what I've seen it prioritizes writes more. Furthermore, it has and uses a write cache from what I've read... The Intel drives don't use a write cache at all (The RAM is for the LBA > Physical ma= p and management). If the vertex is way faster, I would suspect that its write cache may not be properly honoring cache flush commands. I have an app where I wish to keep the read latency as low as possible whil= e doing a large batch write with the write at ~90% disk utilization, and the Intels destroy everything else at that task so far. And in all honesty, I trust the Intel's data integrity a lot more than OCZ for now. >=20 > Regards > Stef > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >=20 > iEYEARECAAYFAknT0hEACgkQANG7uQ+9D9X8zQCfcJ+tRQ7Sh6/YQImPejfZr/h4 > /QcAn0hZujC1+f+4tBSF8EhNgR6q44kc > =3DXzG/ > -----END PGP SIGNATURE----- >=20 >=20 > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org= ) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance >=20