Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ajLoN-0007Ij-CK for pgsql-committers@arkaria.postgresql.org; Fri, 25 Mar 2016 07:05: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 1ajLoM-00057E-Hh for pgsql-committers@arkaria.postgresql.org; Fri, 25 Mar 2016 07:05: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 1ajLoL-00056p-Ha for pgsql-committers@postgresql.org; Fri, 25 Mar 2016 07:05:33 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ajLoA-0002lR-Q0 for pgsql-committers@postgresql.org; Fri, 25 Mar 2016 07:05:32 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 39347209F2 for ; Fri, 25 Mar 2016 03:05:21 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Fri, 25 Mar 2016 03:05:21 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=VCO6eiBnT+TjxeG lFu2ELyF8rTI=; b=Rk8WUgCNh5xBuowwNFXgpnTOkxejWhM5BHJftddN1oMgD7Y OAhjfYVE+oRqMOZt6LaPbP8yDLzl+IdryMcHo7MNDwli2G4JvBdMeM2o2mm39mJw nEwi2AEFuWMxp3tR0R0cYvc6CAikHNBc7otAE8md57SxjbZfCTrqqrA02JPs= X-Sasl-enc: 64ZkAUONMfpJTCzBvetuXEvpNYz+OzkCkl9yi7vc+Fn4 1458889520 Received: from intern.anarazel.de (pd9f6a955.dip0.t-ipconnect.de [217.246.169.85]) by mail.messagingengine.com (Postfix) with ESMTPA id 9EF66680170; Fri, 25 Mar 2016 03:05:20 -0400 (EDT) Date: Fri, 25 Mar 2016 08:05:06 +0100 From: Andres Freund To: Robert Haas Cc: pgsql-committers@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: pgsql: Move each SLRU's lwlocks to a separate tranche. Message-ID: <20160325070506.56i5p7jzxwqfljm6@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 2015-11-12 19:59:54 +0000, Robert Haas wrote: > Move each SLRU's lwlocks to a separate tranche. > > This makes it significantly easier to identify these lwlocks in > LWLOCK_STATS or Trace_lwlocks output. It's also arguably better > from a modularity standpoint, since lwlock.c no longer needs to > know anything about the LWLock needs of the higher-level SLRU > facility. > > Ildus Kurbangaliev, reviewd by Álvaro Herrera and by me. Before this commit the lwlocks were cacheline aligned, but that's not the case anymore afterwards; afaics. I think that should be fixed? I guess it'd be good to avoid duplicating the code for aligning, so maybe we ought to add a ShmemAllocAligned or something? Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers