Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOSMf-0007Sc-Fl for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2017 17:59:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOSMf-0008AI-3H for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2017 17:59:41 +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 1eOSMe-0008A9-TY for pgsql-hackers@lists.postgresql.org; Mon, 11 Dec 2017 17:59:40 +0000 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eOSMb-0001wZ-IF for pgsql-hackers@lists.postgresql.org; Mon, 11 Dec 2017 17:59:40 +0000 Received: by mail-wr0-x22c.google.com with SMTP id z18so18521643wrb.8 for ; Mon, 11 Dec 2017 09:59:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=a77qDoa5oTj6ADRSFLTKNCtDN5JfJixTDpXvhcgAsjs=; b=njL7mfgX6I4x4GixwXw6l4zOYd31B/UN87tWidzC0wHCa3V4Zxo91B+5TqM1R7R0pu uS9SHlnMYL/UMEe+pRfObVr3UNDcFWNcScbZCoBxABWjqAFW1ASjhJIANEcps3b96Dxh swnvKywwp3z2WEK9n9wnqqEJMuYWVRDxxs7EhE3KauHlIcQe0b0tK4MBWBl7ZeBpKWin T9l3YeO6VxySIpgMbjIV/sjuusSp2MFUinhyTwWzRyVw8nWyU/n3Y2FGxm1Ot4rfjJ2o mvf2wOEExSFnmfKCT2BIup7OsXLM8y8Dy4ghHEwahawIY/K1rrLl7q8JOkU0RmwnoL6Q JdyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=a77qDoa5oTj6ADRSFLTKNCtDN5JfJixTDpXvhcgAsjs=; b=J2ew54oexX5UYb2KN0jhJ5YtwOye+niN7T63rRhf0rZuLI6NQVhaQ5Zbgvf+nP4R6D CLxhxUbIvPCMyyrJm85aHs6wYGkhqk2uhwN++A1BwTYfckW4vf9i8kV6TkYvMOjOn6hz wbzvHwiNbzOCurRLpvd6u4/dFicjNbRSvzY6dRyASka2b7skJo2UPHuJL/5vhgYfA/G4 bB5k6SsNvh9Puv7iYLZbis0uds2q310rUEOVAaoNOaUI4yBfPMt5DWOT/CBUY70YuSw/ UIT9FfyBB042CZ4yoQ5w4B/XOWaMVDsPY3+wkPBiF4A4n5C+UMA/dFx0eRxcuIfJ2Sfz EFCg== X-Gm-Message-State: AKGB3mIPsKAiJfWIEtFqjAY6ZiY3ABQnmoRpjY2lMHZPt+8QwtgMwnZm FLPKuOIGLR6hj7MY6UuiZmpN2vuW+Eakd1EN/YNHFttbs4KNLN6uAdyMu+ArteiXkhUXc5wmoTC gyKeJdDLpm+UMv51nBjJAfxWIO7twEcf7fSm//OyA4BIvxTdsuW52FoGh4InkeukDeyY93seOe8 q55kZW0syz70wl8Vpc X-Google-Smtp-Source: ACJfBotpREuyvQH0ZkxamAcd/wwsRVZvR4rFq6gHcNFxtGNUAJn24Ai2RWmsK4eH0XYoVR9M6vwWVQ== X-Received: by 10.223.192.76 with SMTP id c12mr1236835wrf.147.1513015176056; Mon, 11 Dec 2017 09:59:36 -0800 (PST) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id x142sm10305531wme.34.2017.12.11.09.59.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 09:59:34 -0800 (PST) Subject: Re: Rethinking MemoryContext creation To: Tom Lane , Peter Geoghegan Cc: PostgreSQL Hackers References: <2264.1512870796@sss.pgh.pa.us> <13309.1512920544@sss.pgh.pa.us> From: Tomas Vondra Message-ID: Date: Mon, 11 Dec 2017 18:59:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <13309.1512920544@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/10/2017 04:42 PM, Tom Lane wrote: > Peter Geoghegan writes: >> On Sat, Dec 9, 2017 at 5:53 PM, Tom Lane wrote: >>> Overall I'm seeing about a 5% improvement in a "pgbench -S" scenario, >>> although that number is a bit shaky since the run-to-run variation >>> is a few percent anyway. > >> Is that with "-M prepared", too? > > No, I didn't use that. > FWIW I've done some measurements, and while there is a improvement, it's far from 5%. pgbench -S -c 1 -T 60 master patched ----------------- 18244 18534 18369 18587 18310 18479 18346 18515 18344 18557 pgbench -S -M prepared -c 1 -T 60 master patched ----------------- 35191 35231 35115 35555 35164 35686 35110 35724 35053 35762 So that's about 1.3% and 1.2% improvement. It seems fairly consistent, but it might easily be due to different in layout of the binaries. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services