Search Postgresql Archives

Re: Postgres performance on Veritas VxVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



River Tarnell wrote:
My configuration was a VxFS filesystem mounted at /sql, 'noatime,cio',
and another mounted at /sql/pg_xlog,
'noatime,cio,mincache=direct,convosync=direct'.  This forced direct I/O
for the WAL.  Without VxVM, these filesystems were on plain disk slices.
With VxVM, I added the single disk to a diskgroup and created two
volumes on it for the filesystems, layout=concat, with the default
options.
That convosync trick only does what you want here if you also change wal_sync_method=open_sync (or open_data_sync). As it is, you're still calling fsync all the time despite what you did with the mount options, and you're not getting direct writes because you're not writing synchronously to trigger the conversion.

What you should do is the following:

postgresql.conf:  wal_sync_method = open_datasync
/sql/pg_xlog:  'noatime,cio,mincache=direct,convosync=direct

That should work quite well. See http://www.westnet.com/~gsmith/content/postgresql/TuningPGWAL.htm for a lot more details about the various options for VxFS tuning of WAL writes. Note that I only recommend open_sync for VxFS there because that will work on Linux too. Since you're on Solaris, you should be able to get the smaller open_datasync writes and some improvements from using direct writes too stack on top of one another.

--
Greg Smith    2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
greg@xxxxxxxxxxxxxxx  www.2ndQuadrant.com


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux