pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Greg Smith <greg@2ndquadrant.com>
To: Ryan Wexler <ryan@iridiumsuite.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: performance on new linux box
Date: Mon, 12 Jul 2010 11:23:16 -0400
Message-ID: <4C3B3364.2040101@2ndquadrant.com> (raw )
In-Reply-To: <AANLkTinpCJ4y0v_FwZvP6Bj0o5JCf8Blx2h1EN8NvVDf@mail.gmail.com >
References: <AANLkTinVrej5r_uF3As3mF8BW4CYgLGiw2-v2HORsqjM@mail.gmail.com >
<4C3532CC.6070601@squeakycode.net >
<AANLkTiloWDARpJw6xEZwuvSt_iVySIplr0Wg4zThXMPK@mail.gmail.com >
<4C3591F40200002500033219@gw.wicourts.gov >
<AANLkTilA1_-XNBcjpVLnbuMndC02PSzsQijzK3gNQc3c@mail.gmail.com >
<4C35A23B0200002500033220@gw.wicourts.gov >
<AANLkTilCjMHlvYuHCu5Hf7nd4q5C50Cu5NhTS55F3St9@mail.gmail.com >
<4C36E6FC.6030902@pws.com.au >
<AANLkTinzsay4XfpOhcLGCxCVfrOTtbfml05bGMkdGy3-@mail.gmail.com >
<AANLkTinpCJ4y0v_FwZvP6Bj0o5JCf8Blx2h1EN8NvVDf@mail.gmail.com >
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@2ndQuadrant.com www.2ndQuadrant.us
view thread (50+ messages) latest in thread
Message-ID: <4C3B3364.2040101@2ndquadrant.com>
Permalink: ../4C3B3364.2040101@2ndquadrant.com/
Also on: postgresql.org/message-id/4C3B3364.2040101@2ndquadrant.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: greg@2ndquadrant.com, ryan@iridiumsuite.com
Subject: Re: performance on new linux box
In-Reply-To: <4C3B3364.2040101@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox