Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bmUhL-000519-Cf for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Sep 2016 23:43:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bmUhK-00024o-RD for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Sep 2016 23:43:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bmUhJ-00023x-FV for pgsql-hackers@postgresql.org; Tue, 20 Sep 2016 23:43:33 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bmUhG-0001ir-J9 for pgsql-hackers@postgresql.org; Tue, 20 Sep 2016 23:43:32 +0000 Received: by mail-wm0-x22f.google.com with SMTP id b130so61848788wmc.0 for ; Tue, 20 Sep 2016 16:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=aneJsqFgmFVhpGvgqkyivW2Ay3ffQz+sVDu3kPrDMjw=; b=hE0x3Rj19sNG8Vkb17d5fEh0sqP+vzPYtlcX9B5huDKlHsPaM7PUgsz17Ki7DO+eG0 uAvPbGAkQVz99nxdiodTrmkz7KF1HqJQSDWyLnbQadoAXeV7LR29l9yXHLtq02C0lqVS bbRKP9uSENXUEsIv2HuPxZCMw+F8kVt/tCZb8qsxpRvQ95vfUxwwr/jwMdnK9HU4w/Ha tgOz8FAPPNPLuPJDv6JnbT9NY43F9Ycq0Hcb9WVE6d0hRiQ1US5f3DwF5rGm+LkKe9Ki Urkt8quFSBJLNphnXGRu5WWouZ/FmDyQ9pgXBtIXQ+tDYiJ1PyhBeDssOso0/PSxOIJe qDLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=aneJsqFgmFVhpGvgqkyivW2Ay3ffQz+sVDu3kPrDMjw=; b=V9YRSIsqmTAqznAHz5rvw+BG+XmjyATOTP5+k2u5B05axG4prY3Cw2QdrXLY4WoKBO CpnWSCigv9/Qm/7gjLRGHof8J8d8ANr4VC4Wlz+i8zMBB7bmACPKX2XdXfSvkfx7FWzy hCLs67PCrtvII/HkXgt0gaxKxkJ9AFLaGfAheynvQE1Rvol2QqQYCLmzLdT34jBQJUIk 6YFfNWBTPwr628H1bt9gY6WdwFoVdQDW9JrcU5dqzdNeAffrfqLlHnIJnrvfHcyEC14u SBRNqzo9Lk0HB6355SOc7H949IkceIx69tXJgVVO9Da//3wUXj0rML43QDZsSVVWvtMY MEWw== X-Gm-Message-State: AE9vXwPLMCJHe3HnTe3jqjI3g9K16r590qvpxeKOKLWIb+Lwf919HuPva95tuLQnXR+QhWxuED1WGVbCqkcIepmXo8Wu7+AWI05KYALxHfg1zA0NU8iuvrsMClYlWt/E+wctMfee18Ccw8MK7IVfJGDwdPfmaahfyxjt2G8q4I5ZkJHTRpIgq06aXaz1Ukl1kFN89x//V9Iw X-Received: by 10.28.215.81 with SMTP id o78mr427074wmg.42.1474415008368; Tue, 20 Sep 2016 16:43:28 -0700 (PDT) Received: from [10.137.2.17] (ip-89-177-44-58.net.upcbroadband.cz. [89.177.44.58]) by smtp.gmail.com with ESMTPSA id e12sm29617886wmg.17.2016.09.20.16.43.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Sep 2016 16:43:27 -0700 (PDT) Subject: Re: less expensive pg_buffercache on big shmem To: Robert Haas , Andres Freund References: <20160902031927.mchzocis5lnymykz@alap3.anarazel.de> Cc: Ivan Kartyshov , "pgsql-hackers@postgresql.org" From: Tomas Vondra Message-ID: Date: Wed, 21 Sep 2016 01:43:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Thunderbird/46.0a2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 09/02/2016 11:01 AM, Robert Haas wrote: > On Fri, Sep 2, 2016 at 8:49 AM, Andres Freund wrote: >> On 2016-09-02 08:31:42 +0530, Robert Haas wrote: >>> I wonder whether we ought to just switch from the consistent method to >>> the semiconsistent method and call it good. >> >> +1. I think, before long, we're going to have to switch away from having >> locks & partitions in the first place. So I don't see a problem relaxing >> this. It's not like that consistency really buys you anything... I'd >> even consider not using any locks. > > I think we certainly want to lock the buffer header, because otherwise > we might get a torn read of the buffer tag, which doesn't seem good. > But it's not obvious to me that there's any point in taking the lock > on the buffer mapping partition; I'm thinking that doesn't really do > anything unless we lock them all, and we all seem to agree that's > going too far. +1 from me to only locking the buffer headers. IMHO that's perfectly fine for the purpose of this extension. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers