Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aq3ys-00022J-1q for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2016 19:28:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aq3yr-0007oK-KV for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2016 19:28:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aq3yq-0007mV-Ep for pgsql-hackers@postgresql.org; Tue, 12 Apr 2016 19:28:08 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aq3ym-0001ZM-Vu for pgsql-hackers@postgresql.org; Tue, 12 Apr 2016 19:28:07 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B66AE20A5E for ; Tue, 12 Apr 2016 15:28:03 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Tue, 12 Apr 2016 15:28:03 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=RSZLySg8yPAJESBLHzGMlKwnGgU=; b=I45xy i6DPaKhn2p5YVCGK6xr+m0l5cSAYHkoH0TjWUhOWrtn2pNLHSp8LrBQva/NZNpoQ lAy0UGZFzp1oX/ea6GfFLt9/ghPHtrWTXgyHnp9FonkDoUIZ3jyuK4vmts2l7eXW lOaFLDd2hMjfhEY0C33CxRMPb4wWDROuMtYxKs= X-Sasl-enc: Mtez79128dlQUe5YCfKulZZXl5Bv5IQv3PxbSGIiwLV4 1460489283 Received: from intern.anarazel.de (unknown [184.23.178.130]) by mail.messagingengine.com (Postfix) with ESMTPA id 59369C00020; Tue, 12 Apr 2016 15:28:03 -0400 (EDT) Date: Tue, 12 Apr 2016 12:28:01 -0700 From: Andres Freund To: Kevin Grittner Cc: Kevin Grittner , "pgsql-hackers@postgresql.org" , "pgsql-committers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < Message-ID: <20160412192801.wffn2vjyszyw4qa4@alap3.anarazel.de> References: <20160412173856.6jumsz7es5zac42o@alap3.anarazel.de> <20160412185625.g7ixnlpwaqvsqt7v@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi, On 2016-04-12 14:17:12 -0500, Kevin Grittner wrote: > Well, something is different between your environment and mine, > since I saw no difference at scale 100 and 2.2% at scale 200. In a readonly test or r/w? A lot of this will be different between single-socket and multi-socket servers; as soon as you have the latter the likelihood of contention being bad goes up dramatically. > So, > knowing more about your hardware, OS, configuration, etc., might > allow me to duplicate a problem so I can fix > For example, I used a "real" pg config, like I would for a production > machine (because that seems to me to be the environment that is most > important): the kernel is 3.13 (not one with pessimal scheduling) and > has tuning for THP, the deadline scheduler, the vm.*dirty* settings, > etc. Without knowing even the kernel and what tuning the OS and pg > have had on your box, I could take a lot of shots in the dark without > hitting anything. That shouldn't really matter much for a read-only, shared_buffer resident, test? There's no IO and THP pretty much plays no role because there's very few memory allocations (removing the pressure causing the well known degradations). > Oh, and the output of `numactl --hardware` would be good to have. > Thanks for all information you can provide. That was on Alexander's/PgPro's machine. Numactl wasn't installed, and I didn't have root. But it has four numa domains (gathered via /sys/). > It was the only reported case to that point, so the additional data > point is valuable, if I can tell where that point is. And you > don't have any evidence that even with your configuration that any > performance regression remains for those who have the default value > for old_snapshot_threshold? I haven't tested yet. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers