Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apOUy-0002Ae-Va for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Apr 2016 23:10:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1apOUy-0002Nd-Cs for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Apr 2016 23:10:32 +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 1apOTd-0000pO-IX for pgsql-hackers@postgresql.org; Sun, 10 Apr 2016 23:09:09 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1apOTU-00041b-ES for pgsql-hackers@postgresql.org; Sun, 10 Apr 2016 23:09:09 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A1C47203F1 for ; Sun, 10 Apr 2016 19:08:58 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Sun, 10 Apr 2016 19:08:58 -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=MO3OlLCNB6/Y5iWdwcbppnJSORQ=; b=sLClg xSP8hwsfNtpDBu57YLC9iy7P8v6/Zk75k0YOKN7X0ljum2wTh+N3ohxxNlcjtWdq gUy3F36TRHJF71lfNfPwhAolfF0c1nMHD6aSjdLNvdEAcWkrlTaQzEiqQnBGOPlL nBT0xi49YtDEjI2he+KbJf9fRmat/MTQcOckqY= X-Sasl-enc: 4V8HfvTT5GPvEko+kI2AktwOmRB9kZMBuf+f13RVoC7w 1460329738 Received: from intern.anarazel.de (unknown [208.71.159.84]) by mail.messagingengine.com (Postfix) with ESMTPA id 53FDEC00016; Sun, 10 Apr 2016 19:08:58 -0400 (EDT) Date: Sun, 10 Apr 2016 16:08:56 -0700 From: Andres Freund To: Robert Haas Cc: Tom Lane , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Move each SLRU's lwlocks to a separate tranche. Message-ID: <20160410230856.xont3ukgmsnpygrf@alap3.anarazel.de> References: <20160325070506.56i5p7jzxwqfljm6@alap3.anarazel.de> <31588.1458913723@sss.pgh.pa.us> <14166.1458924422@sss.pgh.pa.us> 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 2016-04-05 15:48:22 -0400, Robert Haas wrote: > On Fri, Mar 25, 2016 at 12:47 PM, Tom Lane wrote: > > Robert Haas writes: > >> On Fri, Mar 25, 2016 at 9:48 AM, Tom Lane wrote: > >>> Robert Haas writes: > >>>> It's stupid that we keep spending time and energy figuring out which > >>>> shared memory data structures require alignment and which ones don't. > >>>> Let's just align them *all* and be done with it. The memory cost > >>>> shouldn't be more than a few kB. > > > >>> I think such a proposal should come with a measurement, not just > >>> speculation about what it costs. > > > >> About 6kB with default settings. See below. > > > > Sold, then. > > Excellent. Done. InitBufferPool() manually fixes up alignment; that should probably be removed now. I also wonder if it doesn't make sense to fix PG_CACHE_LINE_SIZE to 64byte on x86. I personally think a manual ifdef in pg_config_manual.h is ok for that. 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