Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS2U8-0008NW-S5 for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Jul 2016 13:33:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bS2U8-0007P7-FB for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Jul 2016 13:33:24 +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 1bS2Sm-0005tW-1V for pgsql-hackers@postgresql.org; Tue, 26 Jul 2016 13:32:00 +0000 Received: from bay.acenet.us ([173.230.252.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bS2Sf-0006mJ-2D for pgsql-hackers@postgresql.org; Tue, 26 Jul 2016 13:31:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FZ8exzZducozkoq+IkNJDq1vH7QdMlNsmMZtznmbWjg=; b=uW36iqQObIKRNcEMR9dLRtewQa qyITBW03HzjnTY1XpCAT38SPorXIUQW3xlOHljaTo8wOpqA4IO0wNUSzDD9Izc7SunjP/tnjnkuuu LXvL0246RaIY7Hq1GDZJoBzM+BXeVESo5Y8ZpV/Vo+CSSpE1kuvTDgCvLEX84ex7R1YdCTUbTr6n2 H5ZwNNnbCmIT+oNXcyshfelLnfZcMhSLVyClwc/YsNaS0DmEao1DdxTv8VzFP9dtYJzToJ6Wo9pGq EqZir72nEs9FLttYJF5tRz+YixM+tb9z1fs01wVvrpZy/42WddWQs+YmVJzuD1RJLo9Gs7epA6D7W Sd7au9sw==; Received: from banach.math.purdue.edu ([128.210.3.16]:41451) by bay.acenet.us with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1bS2Sc-002S4c-Sd; Tue, 26 Jul 2016 09:31:50 -0400 Subject: Re: AdvanceXLInsertBuffer vs. WAL segment compressibility To: Amit Kapila References: <579297F8.7020107@anastigmatix.net> <57962061.9010506@anastigmatix.net> <5796D9EB.6070407@anastigmatix.net> Cc: Michael Paquier , PostgreSQL Hackers From: Chapman Flack Message-ID: <57976646.70502@anastigmatix.net> Date: Tue, 26 Jul 2016 09:31:50 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap+anastigmatix.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-Pg-Spam-Score: -1.8 (-) 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 07/26/2016 08:48 AM, Amit Kapila wrote: > general, if you have a very low WAL activity, then the final size of > compressed WAL shouldn't be much even if you use gzip. It seems your 9.5 pg_xlog, low activity test cluster (segment switches forced only by checkpoint timeouts), compressed with gzip -9: $ for i in 0*; do echo -n "$i " && gzip -9 <$i | wc -c; done 000000010000000100000042 27072 000000010000000100000043 27075 000000010000000100000044 27077 000000010000000100000045 27073 000000010000000100000046 27075 Log from live pre-9.4 cluster, low-activity time of day, delta compression using rsync: 2016-07-26 03:54:02 EDT (walship) INFO: using 2.39s user, 0.4s system, 9.11s on wall: 231 byte 000000010000004600000029_000000010000004600000021_fwd ... 2016-07-26 04:54:01 EDT (walship) INFO: using 2.47s user, 0.4s system, 8.43s on wall: 232 byte 00000001000000460000002A_000000010000004600000022_fwd ... 2016-07-26 05:54:02 EDT (walship) INFO: using 2.56s user, 0.29s system, 9.44s on wall: 230 byte 00000001000000460000002B_000000010000004600000023_fwd So when I say "factor of 100", I'm understating slightly. (Those timings, for the curious, include sending a copy offsite via ssh.) > everything zero. Now, it might be possible to selectively initialize > the fields that doesn't harm the methodology for archive you are using > considering there is no other impact of same in code. However, it Indeed, it is only the one header field that duplicates the low- order part of the (hex) file name that breaks delta compression, because it has always been incremented even when nothing else is different, and it's scattered 2000 times through the file. Would it break anything for *that* to be zero in dummy blocks? -Chap -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers