Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xjnwi-0003SH-0A for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Oct 2014 11:31:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xjnwg-0005Vh-ED for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Oct 2014 11:31:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xjnwe-0005Va-Ph for pgsql-hackers@postgresql.org; Thu, 30 Oct 2014 11:31:12 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xjnwa-0006DG-F0 for pgsql-hackers@postgresql.org; Thu, 30 Oct 2014 11:31:11 +0000 Received: from intern.anarazel.de (p5DDC4470.dip0.t-ipconnect.de [93.220.68.112]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id B8FDDE3279; Thu, 30 Oct 2014 12:31:06 +0100 (CET) Date: Thu, 30 Oct 2014 12:31:04 +0100 From: Andres Freund To: Amit Kapila Cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Lockless StrategyGetBuffer() clock sweep Message-ID: <20141030113104.GA8151@alap3.anarazel.de> References: <20141027133218.GA2639@awork2.anarazel.de> <20141029190927.GF17724@awork2.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 On 2014-10-30 10:23:56 +0530, Amit Kapila wrote: > I have a feeling that this might also have some regression at higher > loads (like scale_factor = 5000, shared_buffers = 8GB, > client_count = 128, 256) for the similar reasons as bgreclaimer patch, > means although both reduces contention around spin lock, however > it moves contention somewhere else. I have yet to take data before > concluding anything (I am just waiting for your other patch (wait free > LW_SHARED) to be committed). I have a hard time to see how this could be. In the uncontended case the number of cachelines touched and the number of atomic operations is exactly the same. In the contended case the new implementation does far fewer atomic ops - and doesn't do spinning. What's your theory? Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, 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