Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 81BF7632F38 for ; Thu, 12 Mar 2009 12:31:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 55751-06 for ; Thu, 12 Mar 2009 12:31:29 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f168.google.com (mail-fx0-f168.google.com [209.85.220.168]) by mail.postgresql.org (Postfix) with ESMTP id A8A096327AA for ; Thu, 12 Mar 2009 12:31:29 -0300 (ADT) Received: by fxm12 with SMTP id 12so369525fxm.19 for ; Thu, 12 Mar 2009 08:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=QsZBD7J1gClkvNjTCduQ44Ctv+vc5hLlqXL3XQBMgzA=; b=k3e7PrxLfL7kSo3918XzXD91CcUewCCvBA+giapDU7xwOdB0O64bz4eGkMhYbo8SCF 0YckIuGWtKGQfvFkaXjY40PEKbN4lywht9coGsxy7pSxpkC4bUEJTahQ29z+W1mTfObX TGMVFkZiHSFMjyJgqOzr7yBFXjm9zNHUF3tHI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=LlzfNxvYuOz6qBP+53DrL+majgGtHA7MNjDit7qDWi+jq/rimeNQnOfljXsglfm+rw 3t29SGWIpmtGO9FkPrp3M0UA1V7XjZO89gWslppT3/cEBt/HIUxUIGzGOwTFHNX6GeZV WG2v/JowF9lg2/e1W2brXq31jSjqJ18bd771k= MIME-Version: 1.0 Received: by 10.223.124.75 with SMTP id t11mr71738far.58.1236871888453; Thu, 12 Mar 2009 08:31:28 -0700 (PDT) In-Reply-To: <49B8E044.EE98.0025.0@wicourts.gov> References: <49B7F470.EE98.0025.0@wicourts.gov> <49B8E044.EE98.0025.0@wicourts.gov> Date: Thu, 12 Mar 2009 15:31:28 +0000 Message-ID: <2f4958ff0903120831q4ca3d0a8o8f2571f16b316ecf@mail.gmail.com> Subject: Re: Proposal of tunable fix for scalability of 8.4 From: =?UTF-8?Q?Grzegorz_Ja=C5=9Bkiewicz?= To: Kevin Grittner Cc: "pgsql-performance@postgresql.org" , Scott Carey , "Jignesh K. Shah" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/124 X-Sequence-Number: 33046 On Thu, Mar 12, 2009 at 3:13 PM, Kevin Grittner wrote: >>>> Scott Carey wrote: >> "Kevin Grittner" wrote: >> >>> I'm a lot more interested in what's happening between 60 and 180 >>> than over 1000, personally. =C2=A0If there was a RAID involved, I'd put >>> it down to better use of the numerous spindles, but when it's all >>> in RAM it makes no sense. >> >> If there is enough lock contention and a common lock case is a short >> lived shared lock, it makes perfect sense sense. =C2=A0Fewer readers are >> blocked waiting on writers at any given time. =C2=A0Readers can 'cut' in >> line ahead of writers within a certain scope (only up to the number >> waiting at the time a shared lock is at the head of the queue). >> Essentially this clumps up shared and exclusive locks into larger >> streaks, and allows for higher shared lock throughput. > > You misunderstood me. =C2=A0I wasn't addressing the affects of his change= , > but rather the fact that his test shows a linear improvement in TPS up > to 1000 connections for a 64 thread machine which is dealing entirely > with RAM -- no disk access. =C2=A0Where's the bottleneck that allows this > to happen? =C2=A0Without understanding that, his results are meaningless. I think you try to argue about oranges, and he does about pears. Your argument has nothing to do with what you are saying, which you should understand. Scalability is something that is affected by everything, and fixing this makes sens as much as looking at possible fixes to make raids more scalable, which is looked at by someone else I think. So please, don't say that this doesn't make sense because he tested it against ram disc. That was precisely the point of exercise. --=20 GJ