Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EAC46B5DEA8 for ; Tue, 6 Sep 2011 11:07:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 41388-02-5 for ; Tue, 6 Sep 2011 14:07:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.peak6.com (smtp.peak6.com [38.98.137.6]) by mail.postgresql.org (Postfix) with ESMTP id 67765B5DE7B for ; Tue, 6 Sep 2011 11:07:16 -0300 (ADT) X-AuditID: 0a64cb1e-b7c2bae0000029bf-37-4e66290e8aba Message-ID: <4E662912.90609@peak6.com> Date: Tue, 6 Sep 2011 09:07:14 -0500 From: Shaun Thomas Reply-To: Organization: Peak6 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Stefan Keller CC: Subject: Re: Fwd: Summaries on SSD usage? References: <4E61CDF7.30505@krogh.cc> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed content-transfer-encoding: 7bit X-Originating-IP: [10.10.220.61] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCIsWRmVeSWpSXmKPExsXCxcQrpsunmeZnsPGTmsX1meeYLY5uYXNg 8tg56y67x4V909gDmKIaGG0S8/LySxJLUhVSUouTbZUCXB29zRSCSxLzUhKLUhRcMouTcxIz c1OLlBQyU2yVjJQUCnISk1NzU/NKbJUSCwpS81KU7LgUMIANUFlmnkJqXnJ+SmZeuq2SZ7C/ roWFqaWuoZJdPAIktLFkrLk4l73ggEDFjb13WBoYZ/B2MXJySAiYSNyff4cRwhaTuHBvPRuI zSugJtG/tIUdxGYRUJGY9O4qWA0bUHzh7ptgtpCArMT+VedYQWx+AWGJfR+amEFsUYEAiQWT 3jJCzBGUODnzCQuILQLUu2tuJ1icGcie+3ASWK+wgLFEx7FDQL1cQDP/MUlMm7wabDGnQKDE za2nWSAaLCQWvznIDmHLS2x/O4cZ4gg5iTsNz4GO5gB6QEHi+nL/CYxCs5CsnoWkexaS7gWM zKsYxYvLEpMzMk0LinNLCgz1ClITs8308lJLNjGC4jbltNwOxulLFQ8xCnAwKvHwTipI9RNi TSwrrsw9xCjBwawkwqvFn+YnxJuSWFmVWpQfX1Sak1p8iFEbGGYTmaW4k/OBKSWvJN7YwEBJ nNdnNoefkEA6MBFkp6YWpBbBVDNxcEo1MG64kNzzZEvFOtV4jxdBnf0F8S2hPRy73J91Xm+f dP4ot+nL5ZtF/ue3dTP+NroYz7DDRUjeszYhhztyfaL9y6yrjvN2xM0uYmMI/hNTJBfL+7c/ xOZeSsLc3paCY0LPk5V7rF2bN7Cs/ixSmJimzXZnifjxnWL/2s7URsey3ZjBHPHz9fXvSizF GYmGWsxFxYkA+gKW6ecCAAA= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/56 X-Sequence-Number: 44832 On 09/06/2011 08:45 AM, Stefan Keller wrote: > Do you think my problem would now be solved with NVRAM PCI card? That's a tough call. Part of the reason I'm doing the presentation is because there are a lot of other high OLTP databases out there which have (or will) reached critical mass where cache can't fulfill generic database requests anymore. As an example, we were around 11k database transactions per second on 250GB of data with 32GB of RAM. The first thing we tried was bumping it up to 64GB, and that kinda worked. But what you'll find, is that an autovacuum, or a nightly vacuum, will occasionally hit a large table and flush all of that handy cached data down the tubes, and then your database starts choking trying to keep up with the requests. Even a large, well equipped RAID can only really offer 2500-ish TPS before you start getting into the larger and more expensive SANs, so you either have to pre-load your memory with dd or pgfincore, or if your random access patterns actually exceed your RAM, you need a bigger disk pool or tiered storage. And by tiered storage, I mean tablespaces, with critical high-TPS tables located on a PCIe card or a pool of modern (capacitor-backed, firmware GC) SSDs. Your case looks more like you have just a couple big-ass queries/tables that occasionally give you trouble. If optimizing the queries, index tweaks, and other sundry tools can't help anymore, you may have to start dragging ou the bigger guns. But if you can afford it, having some NVRam storage around as a top-tier tablespace for critical-need data is probably good practice these days. They're expensive, though. Even the cheap ones start around $5k. Just remember you're paying for the performance in this case, and not storage capacity. Some vendors have demo hardware they'll let you use to determine if it applies to your case, so you might want to contact FusionIO, RAMSAN, Virident, or maybe OCZ. -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 800 | Chicago IL, 60604 312-676-8870 sthomas@peak6.com ______________________________________________ See http://www.peak6.com/email_disclaimer.php for terms and conditions related to this email