Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp791111ybi; Fri, 7 Jun 2019 17:52:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEfhZeUJuQ/Bg6RMKae0UJv0jPZKICj5xTPi5lTbNWFQUtuMUKbzw1cDIbQ6c/2vxIOQPN X-Received: by 2002:a63:d4c:: with SMTP id 12mr5620651pgn.30.1559955122304; Fri, 07 Jun 2019 17:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559955122; cv=none; d=google.com; s=arc-20160816; b=d9yMD8yvBJ1acaLuH5TuedTDJmd0+POiWcFflISKCN5buOPbDeuPxFWYkiyi5qO2v2 D4WVln5gMON+py8UubHR21bwaug4O64G8yxA6jdry/oGG6IeoldUWK+MGM6hjWPJHy2x nOvoN/QYM3aqevzkUQ1vLBYgauuztiY2DNtjjR2e1aJOr4uP/SLNPXsmiUutTIciKjOf dINkjMervdyLRifwak2zDH6qgFejw+h5PTyrIY2d4SWBvFLcNCazsZY6ZzPktVHG0CML yC/jmUcnkHNw5yVldtdnlI/xVI5igbGUepjfwHI2tfAbKSso6ETLTNeSU4LPULZ3RRn2 AaFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=nGU1cHVksPdzJ27l4WiOPkJRPpZpUroiBndbB+8Stj8=; b=0ppBd0Qy9kyRGV1uHR4gV6tV6fFiDYIFB4qku5ggBCgeOLKmLkLvDKZKzVhp4vWYmY 6MpWGkBK8HP11GVDoYvQZF56Q6nhKhgFMWhMNQ6sFGJYDhvqOYj2jrLjQq5Q4I09Aai3 4eqNcJkAslE5mMxWwgJ/lG+6dbrXpWL4svZWey2vkuPzAaQCnSfz82PlOER4GwzyHhB6 5KMf03Q+mBNEPzzAP7lj7FVWES/7eV1XtKdXc6f8PPHUlAS4oQUwVcfysgJmAMDYHQss fcTX/5QOmNzsfZYIGHsmWWeF49mRZ+m0v2FfkVYtVXQJGzAt/MzWmMg2YTDZIUTQ2ied 5bHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Jzvx8yjV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si3362217pgp.566.2019.06.07.17.51.45; Fri, 07 Jun 2019 17:52:02 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Jzvx8yjV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730654AbfFGXkq (ORCPT + 99 others); Fri, 7 Jun 2019 19:40:46 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:41350 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729810AbfFGXkq (ORCPT ); Fri, 7 Jun 2019 19:40:46 -0400 Received: by mail-pl1-f194.google.com with SMTP id s24so1379834plr.8 for ; Fri, 07 Jun 2019 16:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=nGU1cHVksPdzJ27l4WiOPkJRPpZpUroiBndbB+8Stj8=; b=Jzvx8yjVWIMjVeu9Ly1QaYnH/7d+iTVN/G5iSXG4yHrXEWzsLAoe/q1B2FRzv6MpzZ kpDBofFIPg9z5Dx+3e6ObpQ3KZp4I7YRXUuRabEDP/tWxBkE7vZxmhaWPbiE1CMNZ35I XpvHnylLRBIqSb9mdFIMJgjquKN97YTW3pp5hujJBBPzWHIorb/ZcByNQOOhcQ2Tyqx/ RBjfqiclvRqpyIpEVieCXmS2nF7xJVozuQnunsKbLBeWCtSbEGLtV+yArLI8dKnBrBmY 5s0K+KUx3OM5ZhiTkyrI7w0kLiJ9fUS0i9L+UQX52D5AjQSKelKOyNMo1BkangCOiKVk z4rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=nGU1cHVksPdzJ27l4WiOPkJRPpZpUroiBndbB+8Stj8=; b=qN7KCA3aBx+FoMuzX4RaN1KP4xNQpL+WiojzNZnWtZqpDG92CB3g89v6i9HyM/nHwQ IgLFgg5Fp6iOwR5cV3pwkoN/3G2LhK3GAXicnve9aft6C7gsIlNt6NLPJMYQ0wZdJOMX gv7AFE22em1x+aRCPk+AtjOJxB9dF2VkVs7CrZIZYv16gPf7IYNMo3uwPP7IokC7lY9Q 9IJNbdhRxS1gPW8Wy9oUGNzLGM8EppqUby15pqud7DfBwhkilbntfZo7rDyEmSrFIph/ +O6hns6jFyG+FJj0iHjL6zBInfJvsRO3lP7cQHoS5V3UAFEA3T/Uht33ogsHh6ZRdzyl RFkg== X-Gm-Message-State: APjAAAU0Okz0gKSRWm0KcY+7I4V9DRwDpCAVk3UWQFT3mNDNUmGYXS4/ w9/VywSZTOe7IwwluUQw6O9YPOmoqdS24KSB029HO42UOXU= X-Received: by 2002:a17:902:6b07:: with SMTP id o7mr37395316plk.180.1559950845545; Fri, 07 Jun 2019 16:40:45 -0700 (PDT) MIME-Version: 1.0 References: <20190515210202.21169-1-richard@nod.at> <1644731533.84685.1559938164477.JavaMail.zimbra@nod.at> <1342653998.84700.1559940592644.JavaMail.zimbra@nod.at> In-Reply-To: <1342653998.84700.1559940592644.JavaMail.zimbra@nod.at> From: Emil Lenngren Date: Sat, 8 Jun 2019 01:40:38 +0200 Message-ID: Subject: Re: [PATCH] ubifs: Add support for zstd compression. To: Richard Weinberger Cc: linux-mtd , Sebastian Andrzej Siewior , linux-kernel , Michele Dionisio Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Den fre 7 juni 2019 kl 22:49 skrev Richard Weinberger : > > ----- Urspr=C3=BCngliche Mail ----- > > Von: "Emil Lenngren" > > An: "richard" > > CC: "linux-mtd" , "Sebastian Andrzej Sie= wior" , "linux-kernel" > > , "Michele Dionisio" > > Gesendet: Freitag, 7. Juni 2019 22:27:09 > > Betreff: Re: [PATCH] ubifs: Add support for zstd compression. > >> So I'm not sure what is the best choice for the default filesystem. > > > > My idea was at the end, i.e. it will only be used when LZO and ZLIB > > are not selected to be included for UBIFS, for example when someone > > compiles a minimal kernel who knows exactly which compression > > algorithms will be used on that system. > > BTW: you can always select the compressor using the compr=3D mount option= . > Also for the default filesystem. Yep that's what I'm using while I'm testing. > Putting it at the end does not harm but IMHO the use is little. > But for the sake of completes, I agree with you. Can you send a follow-up > patch? Ok > > > I did a single test today and compared lzo and zstd and on that test > > lzo had faster decompression speed but resulted in larger space. I'll > > do more tests later. > > Can you please share more details? I'm interested what CPU this was. ARM Cortex-A7. The kernel is compiled with gcc 7.3.1. Next week I'll test some more. I have a question about how the decompression is done while reading. When a large file is read from the filesystem (assuming not in any cache), is it the case that first a chunk is read from flash, that chunk is then decompressed, later next chunk is read from flash, that one is then decompressed and so on, or can the decompression be done in parallel while reading the next chunk from flash? /Emil