Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqNdN-0006aT-O2 for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 16:27:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqNdN-0002Q9-1P for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 16:27:17 +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 1aqNc1-0000w5-AP for pgsql-hackers@postgresql.org; Wed, 13 Apr 2016 16:25:53 +0000 Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1aqNbx-0003ao-Hm; Wed, 13 Apr 2016 16:25:52 +0000 Received: by mail-oi0-x22f.google.com with SMTP id y204so69763482oie.3; Wed, 13 Apr 2016 09:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=54oT5nX8R6hNR7e215nE/aAmII85lM1x5QRFentD3cQ=; b=slBbur8KDGB3+rKLgOIhnOwkVskdRFnCnyepN4+2DzGlkZQQRPsyTwlan69wHjl8/i ShyrgRlOHuxeW9LuBlrRLKFMc5Yr+V2qBslYmKFASQDBYmbWLugvsVqtAHsRBZl8LDxM YGe1D9U0MpZbIYR+5V6d5PyHh99l/Q48khOmWSU20p9DViEThmUW8eR4+nlNYdUYGAus qHYtWkdLuYPM6tha7y0G/Djo7NoEPiCxbdvJr8n1gwnzzmvTPR09OOv4BroLslenkerX PXOo80G9nSnQeX5VSIYUySsZ7at8jUjgB+MqzNj6IX3vdszT0AFaiFMNMABk2h42t8SX kvWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=54oT5nX8R6hNR7e215nE/aAmII85lM1x5QRFentD3cQ=; b=eBPxtqkynyA724tKE6W4EaKTngQLCXS3qEok9kC6bSIVSfEDurUAMyRnb52F52RmPN tdgufVKJhutSj8Rekj2E5KMHO4PTjNukWro6DTdNolRtgB3GWIDIPupW1nXHCiQMoPIc +TvGDDBATqJUlWmbUjifzUdnyTMLWQq6JwYEM6CY5oxt74DS7N4EJ2I1FKt2+eddaG+l rQLBpxHufcGBp6IB/9JHfWWAkAnXR+xOdfLMdXUalP1bOtf/ioMDmrUBgzzo7Q54Dkxk /5bgOuK0KJwLZWVqcFfBlsEPKMhcVDzkM7JLzJG4NU8u0IqtvxyVS3lZSJBnU3vkXcom QYqw== X-Gm-Message-State: AOPr4FWytwKGe+Ud5A7+bHZHgGOWe+rVczlpWt7d5xumMYuzuZ80ebSG2DFahjVjXJLtUP0F9WNmGE95B7wBaw== MIME-Version: 1.0 X-Received: by 10.157.15.196 with SMTP id m4mr5380552otd.79.1460564747631; Wed, 13 Apr 2016 09:25:47 -0700 (PDT) Received: by 10.182.123.39 with HTTP; Wed, 13 Apr 2016 09:25:47 -0700 (PDT) In-Reply-To: <20160413155942.fx6bnpwpoanbn3i4@alap3.anarazel.de> References: <20160412185625.g7ixnlpwaqvsqt7v@alap3.anarazel.de> <20160413025214.GA954515@alvherre.pgsql> <20160413030530.dfldqhmtojo222c4@alap3.anarazel.de> <20160413150116.ixitwrmpdc2shcfy@alap3.anarazel.de> <20160413155942.fx6bnpwpoanbn3i4@alap3.anarazel.de> Date: Wed, 13 Apr 2016 11:25:47 -0500 Message-ID: Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < From: Kevin Grittner To: Andres Freund Cc: Robert Haas , Alvaro Herrera , Noah Misch , Kevin Grittner , "pgsql-hackers@postgresql.org" Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) 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 On Wed, Apr 13, 2016 at 10:59 AM, Andres Freund wrote: >> but as an example, if I only see such regression on a Linux kernel >> with version a version < 3.8 I am going to be less concerned about >> getting something into 9.6, since IMO it is completely irresponsible >> to run a NUMA machine with 4 or more nodes on an OS with a substandard >> NUMA scheduler. I'm not sure when 3.8 became available, but according >> to Wikipedia Version 3.10 of the Linux kernel was released in June >> 2013, so it's not like you need to be on the bleeding edge to have a >> decent scheduler. > > I don't think effect of adding a single spinlock (an exclusive lock!) in > a hot path is likely to be hugely dependant on the kernel version. My experience is that is easily can be. We had a customer who could not scale beyond a certain point due to spinlock contention on a single spinlock already present in stock pg. We tried lots of config tweaks and a some custom patches to no avail. Then we had them upgrade from RHEL 6.latest to RHEL 7.latest, and they could scale much, much farther. No OS or pg config changes were made at the same time. The difference is that they went from kernel version kernel 2.6.32 to kernel version 3.10.0. The early version 3 kernels had a NUMA scheduler rewrite that was a disaster compared to 2.6.32. They rewrote it again in 3.8, with dramatic effect. > We've had such cases before, and felt the pain. E.g. the spinlock in the > ProcArrayLock used to be a *HUGE* contention point, and it has pretty > much the same acquisition pattern as this spinlock now. It would be great to have improvements in such access patterns, no doubt. I'll be happy if we get there. I don't have a problem trying to contribute to the effort, either, if people think that might actually be a net gain. But if we have a point where those not using the new feature are unaffected, and the question is about the range of workloads where the new feature will be helpful in 9.6, it doesn't seem to me to rise to the level of a bug or a release blocker. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers