Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id E5CE51337BF7 for ; Fri, 29 Apr 2011 20:02:45 -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 98813-03 for ; Fri, 29 Apr 2011 23:02:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) by mail.postgresql.org (Postfix) with ESMTP id 6F4CA1337990 for ; Fri, 29 Apr 2011 20:02:38 -0300 (ADT) Received: by bwz15 with SMTP id 15so3448411bwz.19 for ; Fri, 29 Apr 2011 16:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:x-mailer:from :subject:date:to; bh=qu/kuWgChtilug37tuW1qLKg3K6TNjFBjm0nnkl0DgA=; b=S5wRxBZ778haeTzYLckyh3Om2MOsmAxja5jvRKoawkURnh3Cjm32vlJU9rZa1wU6JR alVpinmfasA2JHTZL1AeVuO3JZcfP5Z6+3SJtamTz0nmznKyqeT7l/Uz1pP2HYGafBsi xcHva1feJrI4pgbG/DYgAzXpfpBtbKgUypO9c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; b=ScUPctax6IPUoZ1QnwpCrwly7UtU5PUilLFPxh7SsH4JeXuaLf8SMBWGDMrMYUSWmD OjBvjk+ZgYWBZOar9vrcvkJYsxJlKmUqFf36m2GB0vEOUt2Cxm7IjUE4Y2AoGHiG5eot bDxZikwQQutKCMe0U0MZ1WBfjfh2aSCKEAXXk= Received: by 10.204.39.68 with SMTP id f4mr384116bke.17.1304118157888; Fri, 29 Apr 2011 16:02:37 -0700 (PDT) Received: from [192.168.2.143] (p5498AC0B.dip.t-dialin.net [84.152.172.11]) by mx.google.com with ESMTPS id x6sm1874365bkv.0.2011.04.29.16.02.34 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Apr 2011 16:02:36 -0700 (PDT) References: <20110412171855.GA14292@tux> <4DA496FA.3070908@fuzzy.cz> <8F22D592-23C1-4A3C-94A5-48363332ADD3@darkstatic.com> <4DA4BFA2.5060601@fuzzy.cz> <4DA4D40A.4010200@fuzzy.cz> <4DA56DA8020000250003C783@gw.wicourts.gov> <4DA6216E.9020907@fuzzy.cz> <4DA63125.5070106@fuzzy.cz> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8A293) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: Cc: Tomas Vondra , "pgsql-performance@postgresql.org" X-Mailer: iPhone Mail (8A293) From: Robert Haas Subject: Re: Performance Date: Sat, 30 Apr 2011 01:03:23 +0200 To: Claudio Freire X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.897 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, MIME_QP_LONG_LINE=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201104/429 X-Sequence-Number: 43491 On Apr 27, 2011, at 11:01 PM, Claudio Freire wrote:= > The patch may be simple, the testing not so much. I know that. >=20 > What tools do we have to do that testing? There are lots, and all > imply a lot of work. Is that work worth the trouble? Because if it > is... why not work? >=20 > I would propose a step in the right direction: a patch to compute and > log periodical estimations of the main I/O tunables: random_page_cost, > sequential_page_cost and effective_cache_size. Maybe per-tablespace. > Evaluate the performance impact, and work from there. >=20 > Because, probably just using those values as input to the optimizer > won't work, because dbas will want a way to tune the optimizer, > because the system may not be stable enough, even because even with > accurate estimates for those values, the optimizer may not perform as > expected. I mean, right now those values are tunables, not real > metrics, so perhaps the optimizer won't respond well to real values. >=20 > But having the ability to measure them without a serious performance > impact is a step in the right direction, right? Sure. It's not a real easy problem, but don't let that discourage you from w= orking on it. Getting more eyeballs on these issues can only be a good thing= . ...Robert=