Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id DB353634181 for ; Fri, 10 Apr 2009 15:17:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 51475-04 for ; Fri, 10 Apr 2009 15:17:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EXHUB018-4.exch018.msoutlookonline.net (exhub018-4.exch018.msoutlookonline.net [64.78.17.19]) by mail.postgresql.org (Postfix) with ESMTP id C88196340D9 for ; Fri, 10 Apr 2009 15:17:41 -0300 (ADT) Received: from EXVMBX018-1.exch018.msoutlookonline.net ([64.78.17.47]) by EXHUB018-4.exch018.msoutlookonline.net ([64.78.17.19]) with mapi; Fri, 10 Apr 2009 11:17:40 -0700 From: Scott Carey To: Greg Smith CC: Josh Berkus , henk de wit , "jesper@krogh.cc" , "pgsql-performance@postgresql.org" Date: Fri, 10 Apr 2009 11:17:39 -0700 Subject: Re: Using IOZone to simulate DB access patterns Thread-Topic: [PERFORM] Using IOZone to simulate DB access patterns Thread-Index: Acm6Bmo/n0lD0FpNTzu6nFhbQ7Ua4QAAjdSv Message-ID: In-Reply-To: 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=none X-Spam-Level: X-Archive-Number: 200904/206 X-Sequence-Number: 33573 On 4/10/09 11:01 AM, "Greg Smith" wrote: > On Fri, 10 Apr 2009, Scott Carey wrote: >=20 >> FIO with profiles such as the below samples are easy to set up >=20 > There are some more sample FIO profiles with results from various > filesystems at > http://wiki.postgresql.org/wiki/HP_ProLiant_DL380_G5_Tuning_Guide I wish to thank Greg here as many of my profile variations came from the above as a starting point. Note in his results the XFS file system behavior on random writes is due to FIO doing 'sparse writes' (which Postgres does not do, and fio exposes some issues on xfs with) in the default random write mode. To properly simulate Postgres these should be random overwrites. Add 'overwrite=3Dtrue' to the profile for random writes and the whole file will be allocated before randomly (over)writing to it. Here is the man page: http://linux.die.net/man/1/fio >=20 > -- > * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD >=20