public inbox for [email protected]
help / color / mirror / Atom feedFrom: Kaixi Luo <[email protected]>
To: [email protected]
Subject: Tuning guidelines for server with 256GB of RAM and SSDs?
Date: Tue, 05 Jul 2016 14:50:46 +0000
Message-ID: <CAHo5iyjcQuVnmigtfv6RsQQ-Cw3CCWBjw65KADGeHhkNzT87fg@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-performance>
Hello,
I've been reading Mr. Greg Smith's "Postgres 9.0 - High Performance" book
and I have some questions regarding the guidelines I found in the book,
because I suspect some of them can't be followed blindly to the letter on a
server with lots of RAM and SSDs.
Here are my server specs:
Intel Xeon E5-1650 v3 Hexa-Core Haswell
256GB DDR4 ECC RAM
Battery backed hardware RAID with 512MB of WriteBack cache (LSI MegaRAID
SAS 9260-4i)
RAID1 - 2x480GB Samsung SSD with power loss protection (will be used to
store the PostgreSQL database)
RAID1 - 2x240GB Crucial SSD with power loss protection. (will be used to
store PostgreSQL transactions logs)
First of all, the book suggests that I should enable the WriteBack cache of
the HWRAID and disable the disk cache to increase performance and ensure
data safety. Is it still advisable to do this on SSDs, specifically the
step of disabling the disk cache? Wouldn't that increase the wear rate of
the SSD?
Secondly, the book suggests that we increase the device readahead from 256
to 4096. As far as I understand, this was done in order to reduce the
number of seeks on a rotating hard drive, so again, is this still
applicable to SSDs?
The other tunable I've been looking into is vm.dirty_ratio and
vm.dirty_background_ratio. I reckon that the book's recommendation to lower
vm.dirty_background_ratio to 5 and vm.dirty_ratio to 10 is not enough for a
server with such big amount of RAM. How much lower should I set these
values, given that my RAID's WriteBack cache size is 512MB?
Thank you very much.
Kaixi Luo
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: [email protected]
Cc: [email protected]
Subject: Re: Tuning guidelines for server with 256GB of RAM and SSDs?
In-Reply-To: <CAHo5iyjcQuVnmigtfv6RsQQ-Cw3CCWBjw65KADGeHhkNzT87fg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox