Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwdRw-00059W-Gg for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Apr 2017 23:37:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cwdRv-0002m4-Vj for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Apr 2017 23:37:52 +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 1cwdQP-0006Dn-51 for pgsql-hackers@postgresql.org; Fri, 07 Apr 2017 23:36:17 +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 1cwdQK-0004ti-4P for pgsql-hackers@postgresql.org; Fri, 07 Apr 2017 23:36:15 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3B6CC20911; Fri, 7 Apr 2017 19:36:11 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 07 Apr 2017 19:36:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=myO+1feQN70u5ayoTt y/bCHd36iGhkDFKWvOsE7Ljy8=; b=aln2/hWYsYb+E7TGdKvwj29JZMmzF+s/IK UieUtT1DjC7ZtBuFNYiXwiSK6lurl7P/BbXVD4Obpvi8YQsZK9eLjQc5bHNIIV0j 5V/g9nA+7DSrE/m+MC+MOJybzqUMHhLWAVx95OwKHADHf6QZI+eUJijPv1/dbIh8 6xytEQPQw/3erzqcQFHvTZ/DMYSJsWFF9+As7DY0gUfTGfZOmd4sYic8nO/po340 jBGCHZ3YDMBVpWDCxAZCq2Hoo9NOqgl2so0Jl54dFHRKS5oxPNBoqbBJECVqRujJ VKJ5q6AddlxaDL8uysWVgv5huc8sdIE41qkT+uS0ZK5zxLj7K9qw== X-ME-Sender: X-Sasl-enc: e0jPQX82WrxgEtBVD5yL7+gHZOlX3efaCVyHt5zcSWeW 1491608170 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id EC1DF2436B; Fri, 7 Apr 2017 19:36:10 -0400 (EDT) Date: Fri, 7 Apr 2017 16:36:09 -0700 From: Andres Freund To: Alvaro Herrera Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Improve 64bit atomics support. Message-ID: <20170407233609.7kjj2g5uqrdssiw4@alap3.anarazel.de> References: <20170407225521.dyfyj4hqdqbz4klz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170407225521.dyfyj4hqdqbz4klz@alvherre.pgsql> 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 2017-04-07 19:55:21 -0300, Alvaro Herrera wrote: > Andres Freund wrote: > > Improve 64bit atomics support. > > > > When adding atomics back in b64d92f1a, I added 64bit support as > > optional; there wasn't yet a direct user in sight. That turned out to > > be a bit short-sighted, it'd already have been useful a number of times. > > Seems like this killed an arapaima: > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=arapaima&dt=2017-04-07%2022%3A06%3A59 > > Program terminated with signal 6, Aborted. > #0 0x00c6a402 in __kernel_vsyscall () > #0 0x00c6a402 in __kernel_vsyscall () > #1 0x00284b10 in raise () from /lib/libc.so.6 > #2 0x00286421 in abort () from /lib/libc.so.6 > #3 0x084d967e in ExceptionalCondition ( > conditionName=0xe19dac "(((uintptr_t) ((uintptr_t)(ptr)) + ((8) - 1)) & ~((uintptr_t) ((8) - 1))) != (uintptr_t)(ptr)", > errorType=0xe19831 "UnalignedPointer", > fileName=0xe19d88 "../../../src/include/port/atomics.h", lineNumber=428) > at assert.c:54 > #4 0x00e189b0 in pg_atomic_init_u64 () > at ../../../src/include/port/atomics.h:428 Gah, that's fairly annoying :(. We can't trivially force alignment in the generic fallback case, because not all compilers support that. We don't really need it the fallback case, because things are protected by a lock - but that means we'll have to make a bunch of locks conditional :/ 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