Received: by 10.223.185.116 with SMTP id b49csp4916585wrg; Wed, 7 Mar 2018 03:21:14 -0800 (PST) X-Google-Smtp-Source: AG47ELshDmNpFQjz8hGnmuJtABg3o6pHk51F+qyHJPw3/P5HWXdL3ztj4j/ahUd3Br/LI63jN+HM X-Received: by 2002:a17:902:7593:: with SMTP id j19-v6mr19945364pll.408.1520421674134; Wed, 07 Mar 2018 03:21:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520421674; cv=none; d=google.com; s=arc-20160816; b=evfyoXK9PXiQ/vQgnG2PmY94TgZCbVgzfN/Mcl6e3pY7HkqLJgNdM6BugXbjaaSov7 GgHQnYrinPsIo6ikulvWmz/QlVSnk2606FUqKY78E2dDNAj3PgYQJhdK7/d36O3F714y ziYSEd/D1OOXl4RFulT2kNFD9U9MqkVQGqmq1Ck7n2sbsJj67WzTVqBJ8GnVpKY0ml1a yXmK9+VHycQZQfKP8ehRMPr2DFosnywLIvdMG9OqdiSdz35p4N63ObXGHVI8nKAKVEvr rAQ/YoAFsIS9+Kln8S84ST9EzEWqZOWarSzI4MrnFvXzc63BSwLqmuoQQVfaMMjq8sB4 PAvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=0mSrP5u+pRmAL0H2j0Wb3o6t9Z2yaS4S0JudnKgSArM=; b=tZsrALz2WujLi8mWRJB8NlLQhopVpUcYp69aFIs/TxmV/mPKlgW6p2+hQEGXwgx8bA v2v+LKbVoS8IVpCpoIZD2gZWPsEL6ygQYhyhAYL4jKv0m4ZhRgigCC48iLXGmlNXXCzK Pq4GMggsCD7BppOM7/atEi+BBgl8232OC37W6LgT2oGJ2DICQlSVkJSb34yRkQ1vUvQx eU/0UqY33Ay5GbUQnE2qrOCIjFolt2AWqMht3neP4w3IJd8LReMcPujeJAJcxAjcRjXu Ps7Wy1QN9wTM5S3tgyxLBH7cgR0YAzAmhc4cqNK/buAd52mnXAu2qupVMdcSY9VEUxlA vVvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si11074231pgc.726.2018.03.07.03.20.59; Wed, 07 Mar 2018 03:21:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754344AbeCGLTb convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Mar 2018 06:19:31 -0500 Received: from mailhost.informatik.uni-hamburg.de ([134.100.9.70]:53802 "EHLO mailhost.informatik.uni-hamburg.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754293AbeCGLT2 (ORCPT ); Wed, 7 Mar 2018 06:19:28 -0500 Received: from localhost (localhost [127.0.0.1]) by mailhost.informatik.uni-hamburg.de (Postfix) with ESMTP id A0DCC151; Wed, 7 Mar 2018 12:19:26 +0100 (CET) X-Virus-Scanned: amavisd-new at informatik.uni-hamburg.de Received: from mailhost.informatik.uni-hamburg.de ([127.0.0.1]) by localhost (mailhost.informatik.uni-hamburg.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ib7T2J8W9srh; Wed, 7 Mar 2018 12:19:26 +0100 (CET) Received: from benjamins-mbp.fritz.box (port-39392.pppoe.wtnet.de [134.101.157.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: 4bwarnke@informatik.uni-hamburg.de) by mailhost.informatik.uni-hamburg.de (Postfix) with ESMTPSA id 88501150; Wed, 7 Mar 2018 12:19:25 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [RESEND PATCH v3] crypto: add zBeWalgo compression for zram From: Benjamin Warnke <4bwarnke@informatik.uni-hamburg.de> In-Reply-To: <20180307021252.GA802@jagdpanzerIV> Date: Wed, 7 Mar 2018 12:19:24 +0100 Cc: Linux Crypto Mailing List , linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, minchan@kernel.org, ngupta@vflare.org Content-Transfer-Encoding: 8BIT Message-Id: <43DE57BA-0029-4C1F-905C-7E57839054C4@informatik.uni-hamburg.de> References: <8CFBD60E-6A2B-4766-B6F9-09A98DEA26CB@informatik.uni-hamburg.de> <20180307021252.GA802@jagdpanzerIV> To: Sergey Senozhatsky X-Mailer: Apple Mail (2.3445.5.20) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On(07/03/2018 03:12),Sergey Senozhatsky wrote: > > Hello, > > On (03/06/18 20:59), Benjamin Warnke wrote: >> Currently ZRAM uses compression-algorithms from the crypto-api. ZRAM >> compresses each page individually. As a result the compression algorithm >> is >> forced to use a very small sliding window. None of the available >> compression >> algorithms is designed to achieve high compression ratios with small >> inputs. > > I think you first need to merge zBeWalgo (looks like a long way to go) > And then add ZRAM support, as a separate patch. I'll split my patch into 2 parts 1st: add zBeWalgo compression algorithm 2nd: enable zBeWalgo to be used by ZRAM > >> - 'ecoham' (100 MiB) This dataset is one of the input files for the >> scientific >> application ECOHAM which runs an ocean simulation. This dataset contains a >> lot of zeros. Where the data is not zero there are arrays of floating >> point >> values, adjacent float values are likely to be similar to each other, >> allowing for high compression ratios. >> >> algorithm | ratio | compression | decompression >> zbewalgo | 12.94 | 294.10 MBit/s | 1242.59 MBit/s >> deflate | 12.54 | 75.51 MBit/s | 736.39 MBit/s >> 842 | 12.26 | 182.59 MBit/s | 683.61 MBit/s >> lz4hc | 12.00 | 51.23 MBit/s | 1524.73 MBit/s >> lz4 | 10.68 | 1334.37 MBit/s | 1603.54 MBit/s >> lzo | 9.79 | 1333.76 MBit/s | 1534.63 MBit/s >> >> - 'source-code' (800 MiB) This dataset is a tarball of the source-code >> from a >> linux-kernel. >> >> algorithm | ratio | compression | decompression >> deflate | 3.27 | 42.48 MBit/s | 250.36 MBit/s >> lz4hc | 2.40 | 104.14 MBit/s | 1150.53 MBit/s >> lzo | 2.27 | 444.77 MBit/s | 886.97 MBit/s >> lz4 | 2.18 | 453.08 MBit/s | 1101.45 MBit/s >> 842 | 1.65 | 64.10 MBit/s | 158.40 MBit/s >> zbewalgo | 1.19 | 52.89 MBit/s | 197.58 MBit/s >> >> - 'hpcg' (8 GiB) This dataset is a (partial) memory-snapshot of the >> running hpcg-benchmark. At the time of the snapshot, that application >> performed a sparse matrix - vector multiplication. >> >> algorithm | ratio | compression | decompression >> zbewalgo | 16.16 | 179.97 MBit/s | 468.36 MBit/s >> deflate | 9.52 | 65.11 MBit/s | 632.69 MBit/s >> lz4hc | 4.96 | 193.33 MBit/s | 1607.12 MBit/s >> 842 | 4.20 | 150.99 MBit/s | 316.22 MBit/s >> lzo | 4.14 | 922.74 MBit/s | 865.32 MBit/s >> lz4 | 3.79 | 908.39 MBit/s | 1375.33 MBit/s >> >> - 'partdiff' (8 GiB) Array of double values. Adjacent doubles are similar, >> but >> not equal. This array is produced by a partial differential equation >> solver >> using a Jakobi-implementation. >> >> algorithm | ratio | compression | decompression >> zbewalgo | 1.30 | 203.30 MBit/s | 530.87 MBit/s >> deflate | 1.02 | 37.06 MBit/s | 1131.88 MBit/s >> lzo | 1.00 | 1741.46 MBit/s | 2012.78 MBit/s >> lz4 | 1.00 | 1458.08 MBit/s | 2013.88 MBit/s >> lz4hc | 1.00 | 173.19 MBit/s | 2012.37 MBit/s >> 842 | 1.00 | 64.10 MBit/s | 2013.64 MBit/s > > Hm, mixed feelings. as Eric Biggers suggested, I'll add Zstandard to the set of algorithms which compared. What else should I add to the benchmarks? Benjamin