Re: performance on new linux box

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Ryan Wexler <ryan(at)iridiumsuite(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: performance on new linux box
Date: 2010-07-12 15:23:16
Message-ID: 4C3B3364.2040101@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Ryan Wexler wrote:
> One question I do have is this card has a setting called Read Policy
> which apparently helps with sequentially reads. Do you think that is
> something I should enable?

Linux will do some amount of read-ahead in a similar way on its own.
You run "blockdev --getra" and "blockdev --setra" on each disk device on
the system to see the settings and increase them. I've found that
tweaking there, where you can control exactly the amount of readahead,
to be more effective than relying on the less tunable Read Policy modes
in RAID cards that do something similar. That said, it doesn't seem to
hurt to use both on the LSI card you have; giving more information there
to the controller for its use in optimizing how it caches things, by
changing to the more aggressive Read Policy setting, hasn't ever
degraded results significantly when I've tried.

--
Greg Smith 2ndQuadrant US Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.us

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Bruce Momjian 2010-07-12 16:04:22 Re: Need help in performance tuning.
Previous Message Tom Lane 2010-07-12 14:45:14 Re: Exists, limit and alternate plans