Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 1DD9B603DC3 for ; Sun, 1 Jul 2012 01:37:49 -0300 (ADT) Received: from moutng.kundenserver.de ([212.227.17.9]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SlBus-0005HJ-Ek for pgsql-performance@postgresql.org; Sun, 01 Jul 2012 04:37:49 +0000 Received: from [192.168.1.6] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MSFeJ-1SHkIt3bf1-00TWvR; Sun, 01 Jul 2012 06:37:29 +0200 Message-ID: <4FEFD408.8070100@2ndQuadrant.com> Date: Sun, 01 Jul 2012 00:37:28 -0400 From: Greg Smith User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: SSD, Postgres and safe write cache References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:ywo7Hi4ggg6i5k4EkDFy2IeWMSqznoBs7nIditL5XqA QeDAop0t1sCcwNqlG0U8JCuIA//t2G6Rjn8m85jm7QlkpsDXaA 3SXupIx13el9JW6rQJy9CzGefyoySwAnF6yQwJCwNiU6evizr0 4A3Zgre9bWQRLmXJbDLVbt1gzQlR0etrPrpTZhcCqC5xahw925 jGDUhz3IUdoRSWHJOnCwbtmkS1W7IYqvRMuV/vuuVhrpdQt8+L LS22jzz1QEiieFNwKrLCtiQjaL9evem0izi5F0dUK8n6ieWB9F P8SkbFjNZdwe1qkN772YomQZ7hPO91HhtlptUBHrxHGuFMbeMR eUCX+t8OqiwGoKSTj28w= X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/2 X-Sequence-Number: 47183 On 06/20/2012 10:51 AM, Michal Szymanski wrote: > We started to think about using SSD drive for our telco system DB. > Because we have many "almost" read-only data I think SSD is good candidate > for our task. We would like to speed up process of read operation. Many read-only operations can be made as fast as possible just by getting more RAM. SSD is only significantly faster than regular disk on reads if the working set of data is bigger than you can fit in memory, but you can fit it all on SSD. That's not as many workloads as you might guess. > I've read post (http://blog.2ndquadrant.com/intel_ssd_now_off_the_sherr_sh/) about > SSD which have write safe functionality and two drive are recommended > Intel 320 and Vertex2 Pro. Both drive are rather inexpensive but both using old SATA II. Intel's 710 model is their more expensive one, but that's mainly due to longer expected lifetime than speed: http://blog.2ndquadrant.com/intel_ssds_lifetime_and_the_32/ I don't see a lot of need for a faster interface than SATA II on database SSD yet. If you need the data really fast, it has to be in RAM. And if it's so large that you can't fit it in RAM, you're likely looking at random I/O against the SSD--where most are hard pressed to saturate even a SATA II bus. Indexes for example can really benefit from SSD instead of regular drives, but that's almost always random access when you're in that situation. There's not a lot of systems that are inside the narrow case where SATA II SSD isn't fast enough, but similar performance per dollar SATA III SSD is. Some of the PCI-E flash-based cards, like FusionIO's, can do a lot better than SATA II. But they tend to use more flash in parallel too, it's hard to get that much throughput out of most flash devices; it's not just that they transfer to the host faster. I'd build a prototype with whatever drives you have access to and try to measure what you need here. I hate to see people jump right toward leading edge SSD only to discover their real working set fits in memory just fine, so it doesn't even matter. Or that the bottleneck is somewhere else entirely. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com