Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 07654B5DBE0 for ; Sun, 26 Jun 2011 07:18:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 44311-09 for ; Sun, 26 Jun 2011 10:18:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og121.obsmtp.com (exprod7og121.obsmtp.com [64.18.2.20]) by mail.postgresql.org (Postfix) with ESMTP id AA291B5DBCC for ; Sun, 26 Jun 2011 07:18:18 -0300 (ADT) Received: from mail-ew0-f45.google.com ([209.85.215.45]) (using TLSv1) by exprod7ob121.postini.com ([64.18.6.12]) with SMTP ID DSNKTgcHaaZOW3ehP5C8y2puqAKZ4NfszUfp@postini.com; Sun, 26 Jun 2011 03:18:19 PDT Received: by ewy24 with SMTP id 24so1975945ewy.18 for ; Sun, 26 Jun 2011 03:18:16 -0700 (PDT) Received: by 10.14.39.206 with SMTP id d54mr3358151eeb.129.1309083495126; Sun, 26 Jun 2011 03:18:15 -0700 (PDT) Received: from [90.190.247.247] (247.247.190.90.dyn.estpak.ee [90.190.247.247]) by mx.google.com with ESMTPS id m62sm754976eeb.10.2011.06.26.03.18.12 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Jun 2011 03:18:13 -0700 (PDT) Message-ID: <4E07075E.30900@enterprisedb.com> Date: Sun, 26 Jun 2011 13:18:06 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.17) Gecko/20110606 Icedove/3.1.10 MIME-Version: 1.0 To: Alexander Korotkov CC: Jesper Krogh , pgsql-hackers Subject: Re: WIP: Fast GiST index build References: <4DEC84D7.7040602@enterprisedb.com> <4E058830.8070009@krogh.cc> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201106/2054 X-Sequence-Number: 190767 On 25.06.2011 11:23, Alexander Korotkov wrote: > On Sat, Jun 25, 2011 at 11:03 AM, Jesper Krogh wrote: > >> * Wouldn't it be natural to measure the performance benefits of >> disc-bound tests in an SSD setup? >> > Sure, it would be great to run performance tests on SSD drives too. > Unfortunately, I don't have corresponding test platform just now. Anyone have an SSD setup to run some quick tests with this? >> In terms of random IO an SSD can easily be x100 better than rotating >> drives and it would be a shame to optimize "against" that world? > > Actually, I'm not sure that IO is bottle neck of GiST index build on SSD > drives. It's more likely for me that CPU becomes a bottle neck in this case > and optimizing IO can't give much benefit. But anyway, the value of this > work can be in producing better index in some cases and SSD drive lifetime > economy due to less IO operations. Yeah, this patch probably doesn't give much benefit on SSDs, not the order of magnitude improvements it gives on HDDs anyway. I would expect there to still be a small gain, however. If you look at the comparison of CPU times on Alexander's tests, the patch doesn't add that much CPU overhead: about 5% on the point_ops tests. I/O isn't free on SSDs either, so I would expect the patch to buy back that 5% increase in CPU overhead by reduced time spent on I/O even on a SSD. It's much worse on the gist_trgm_ops test case, so this clearly depends a lot on the opclass, but even that should be possible to optimize quite a bit. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com