Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751438AbdGaVam (ORCPT ); Mon, 31 Jul 2017 17:30:42 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:53563 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751017AbdGaVak (ORCPT ); Mon, 31 Jul 2017 17:30:40 -0400 From: Nick Terrell To: Phillip Lougher CC: "Austin S . Hemmelgarn" , Herbert Xu , Kernel Team , Chris Mason , Yann Collet , Adam Borowski , David Sterba , SquashFS developers , "linux-btrfs@vger.kernel.org" , LKML , "Sean Purcell" Subject: Re: [PATCH v3 4/4] squashfs: Add zstd support Thread-Topic: [PATCH v3 4/4] squashfs: Add zstd support Thread-Index: AQHTAZ+UHFix+2fnIkSGaWGYvBLZ3qJtO3kAgADUS4A= Date: Mon, 31 Jul 2017 21:30:08 +0000 Message-ID: <65F25A58-E706-4D93-847E-1E4016E7367F@fb.com> References: <20170720212743.3351201-1-terrelln@fb.com> <20170720212743.3351201-5-terrelln@fb.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2620:10d:c090:200::7:a120] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR15MB1658;20:Em384nPZgSGxNY9GowOXLl8vwS5uSgKCT3jMisOSkml5O5U26m1JgT920HmBIiBP4+N6qJ9Z6kI/mfjO1jSOX/Wv0LhnH5CkKM07P7p3GRz/J0CBfJzZXZ3EmihZ4tpdmrZmAMVOrlDp2ONDNjDndqA4vQyRI8GU2FAaoAV8UYY= x-ms-office365-filtering-correlation-id: a16f44dc-928a-443e-2e5e-08d4d85b513f x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM5PR15MB1658; x-ms-traffictypediagnostic: DM5PR15MB1658: x-exchange-antispam-report-test: UriScan:(166708455590820)(67672495146484)(81227570615382); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6041248)(20161123562025)(20161123555025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR15MB1658;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR15MB1658; x-forefront-prvs: 03853D523D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39450400003)(39410400002)(39400400002)(39850400002)(39840400002)(24454002)(189002)(199003)(377454003)(76176999)(54356999)(53546010)(83716003)(2900100001)(6306002)(6506006)(6512007)(3660700001)(6436002)(99286003)(478600001)(86362001)(3280700002)(97736004)(105586002)(2906002)(189998001)(106356001)(82746002)(81156014)(4326008)(6116002)(102836003)(38730400002)(6246003)(36756003)(110136004)(966005)(8936002)(68736007)(81166006)(8676002)(5660300001)(14454004)(6916009)(229853002)(2950100002)(25786009)(53936002)(101416001)(305945005)(6486002)(77096006)(50986999)(7736002)(33656002)(54906002)(39060400002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1658;H:DM5PR15MB1753.namprd15.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <9F8035E1A7E56A47AE6FD3B6085F8E38@namprd15.prod.outlook.com> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2017 21:30:08.2332 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1658 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-07-31_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id v6VLUlge003679 Content-Length: 1961 Lines: 50 On 7/30/17, 6:50 PM, "Phillip Lougher" wrote: > On Thu, Jul 20, 2017 at 10:27 PM, Nick Terrell wrote: >> Add zstd compression and decompression support to SquashFS. zstd is a >> great fit for SquashFS because it can compress at ratios approaching xz, >> while decompressing twice as fast as zlib. For SquashFS in particular, >> it can decompress as fast as lzo and lz4. It also has the flexibility >> to turn down the compression ratio for faster compression times. > > Hi Nick, > > This patch (and none of the previous versions) is showing up on > squashfs-devel@lists.sourceforge.net. I also think you should have > emailed me directly as a courtesy, as I'm the Squashfs author and > maintainer. Sorry about that Phillip, it was an oversight on my part. I've added you to the CC list going forward, and have subscribed to the mailing list. >> | Method>> | Ratio | Compression MB/s | Decompression MB/s | >> |----------------|-------|------------------|--------------------| >> | gzip>> | 2.92 |>>> 15 |>>>>128 | >> | lzo>>>| 2.64 |>>> 9.5 |>>>>217 | >> | lz4>>>| 2.12 |>>> 94 |>>>>218 | >> | xz>>> | 3.43 |>>> 5.5 |>>>> 35 | >> | xz 256 KB> | 3.53 |>>> 5.4 |>>>> 40 | >> | zstd 1>> | 2.71 |>>> 96 |>>>>210 | >> | zstd 5>> | 2.93 |>>> 69 |>>>>198 | >> | zstd 10>>| 3.01 |>>> 41 |>>>>225 | >> | zstd 15>>| 3.13 |>>> 11.4 |>>>>224 | >> | zstd 16 256 KB | 3.24 |>>> 8.1 |>>>>210 | > > > Those numbers look good to me. > >> >> This patch was written by Sean Purcell , but I will be >> taking over the submission process. >> >> [1] http://releases.ubuntu.com/16.10/ >> [2] https://github.com/facebook/zstd/blob/dev/contrib/linux-kernel/squashfs-benchmark.sh > > I can't find your patch that adds zstd to the user-land > Squashfs-tools. That would be handy to do any testing :-) > > Phillip I'll include the squashfs-tools patch that Sean just posted in the next version.