Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2107859pja; Thu, 26 Mar 2020 09:48:29 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtZwWU94e0cIYkqNYue82HaCIfQVvAl6nhU41TeX5nEr/mQJlusUM0AWJ9Z0s34yv2D/M9m X-Received: by 2002:a4a:3e90:: with SMTP id t138mr5734386oot.24.1585241309638; Thu, 26 Mar 2020 09:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585241309; cv=none; d=google.com; s=arc-20160816; b=mwMTtl6+MbRhtejOMJZAcGay5Zpx2fSEtD1I/uEorvNibdH5N5sexiiKtxWs+nLmeU msGxOWZMxA1aYwNtFdcrDSFmOqyf/Niy+S6sGBq2R7HNbVp9pvSmKzQyXN6Jyp5xLKeO oxmqM3xyPxr+YZ8oEZmwPnkFVYpr/+BmHitFC6zDbZ+9a565qlS9EIkcXVgVJl2fXdKr kvVl4gI2SyaUgvAF1AgeEoEQqMH3kTlDg8OWxy+ecqiFYhoNZtHMa7zXlQWExh5tFAzo NdJAtJoM6d+H4haYq1zva0NBbXQiroXvryJms9vUWDiAlq8PGiEAhwxGjCE89okpWgA8 bmvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kYmZ7W7spXJCoSjpaQQC+a9kzIPwWZNW6wR0y26VyYE=; b=FSnICwcjCUqgz6cbkyS2EDZgpxUWNgJQEYSoweG4zSN7XgvRNSCETHQTVYV5bqo7lP XDOblZe1ineOf5S7tGLme23pRWF2fejbfTt0xJODGp/VbAzxphkUBBkF+D9ijShI6nff mrkvNLMFBLfx59CBPxxSJobYgeM5aTezz9XGmFDLRXBAWudsSeR+w12O3KodxXGLaFdK cXpfLBzuBN7uO3EJ/NNsJyDdjX/I8sKWgjHb0XsjwwLUtJ4K/0ZVkfHrYFAqYbCvtej+ iP7mLL7//lW/mj6RoJANfemfF++ZdXU6BreJ2imopididC6GfzhpjmnqOB7m6PpDOUN6 mZ/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@malat-biz.20150623.gappssmtp.com header.s=20150623 header.b=GIr3jiVd; 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 u16si1424341oth.230.2020.03.26.09.48.08; Thu, 26 Mar 2020 09:48:29 -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=@malat-biz.20150623.gappssmtp.com header.s=20150623 header.b=GIr3jiVd; 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 S1726971AbgCZQrr (ORCPT + 99 others); Thu, 26 Mar 2020 12:47:47 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45408 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgCZQrq (ORCPT ); Thu, 26 Mar 2020 12:47:46 -0400 Received: by mail-wr1-f65.google.com with SMTP id t7so8607995wrw.12 for ; Thu, 26 Mar 2020 09:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=malat-biz.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kYmZ7W7spXJCoSjpaQQC+a9kzIPwWZNW6wR0y26VyYE=; b=GIr3jiVdrqj3bn59MVLn4TI9NEimaDRJDtviwTb1yGhBa4MRpNqFrbqzMF1fYfGVyo zyjFWXtmLjvyFM+kTu2YAvkZCtbSAZ/SpplHv2w7uu3gpFdPI3hOY3FlpoVSJooIiuS2 rgN04v4rRUDOgRrktidIM0Dxy9Jbe0qXePkvXL2Oz3dTVTT5ya2XFOsaxZZ0D1N9rFaz b+5CKnM4F5wcg2ovEo5pLcgNAuvq2RydWfGPN26aWoYYA72NoHbBVWJRY+9ZOVOho4uj td34p19/XoQpGn8MFPanfE+Ke1/KARSmsW3CUfSFAbRg8xFvHbRjIND5iX4+KvJ0k6qV 9o9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kYmZ7W7spXJCoSjpaQQC+a9kzIPwWZNW6wR0y26VyYE=; b=GPoU7AAN+dV8sHsbSAosT0mZq1D+UQ2gFtKj39mdFkfufZoN3ugo5aIWKkuiJ4tGgH mSqR8VQpZ5JkgRBXPgc3XGQN3QaeSbzxb8RuuBke9I4py9U8oSPsXgIzPpJQanIfuDXZ 0ZeUhvdTjmUyR5cwEGN58YB1FTZvuERcBOA9dqE2GWvxwHPDvUtBjxArzM2rnMDoslfA nrXi5KBazPZsWSM8ad9wQl/FrDIxpN+L+3xn1NpQPuJSg69jLw2ucN/YLPxfHqmHVYju yRPYdPPR2sRf/nF8I9I6D7hIZL+9UdIhR6XyMBnHTGoJuk3GOH85Xx1puDLhY007QSF6 JIDQ== X-Gm-Message-State: ANhLgQ228m/Z+nV/IOrxDTA+kApmCuziSDoyeImMjrUxfFFRVTxYPPkl SHmzSkvnUwPm+tzGklPzcF2JHw== X-Received: by 2002:adf:f104:: with SMTP id r4mr9875048wro.375.1585241263872; Thu, 26 Mar 2020 09:47:43 -0700 (PDT) Received: from ntb.petris.klfree.czf (p5B36386E.dip0.t-ipconnect.de. [91.54.56.110]) by smtp.gmail.com with ESMTPSA id e5sm4130732wru.92.2020.03.26.09.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 09:47:43 -0700 (PDT) Date: Thu, 26 Mar 2020 17:47:32 +0100 From: Petr Malat To: Nick Terrell Cc: Nick Terrell , linux-kernel@vger.kernel.org, Chris Mason , linux-kbuild@vger.kernel.org, x86@kernel.org, gregkh@linuxfoundation.org, Kees Cook , Kernel Team , Adam Borowski , Patrick Williams , rmikey@fb.com, mingo@kernel.org, Patrick Williams Subject: Re: [PATCH v3 3/8] lib: add zstd support to decompress Message-ID: <20200326164732.GA17157@ntb.petris.klfree.czf> References: <20200325195849.407900-1-nickrterrell@gmail.com> <20200325195849.407900-4-nickrterrell@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200325195849.407900-4-nickrterrell@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Wed, Mar 25, 2020 at 12:58:44PM -0700, Nick Terrell wrote: > From: Nick Terrell > * Add unzstd() and the zstd decompress interface. Here I do not understand why you limit the window size to 8MB even when you read a larger value from the header. I do not see a reason why there should be such a limitation at the first place and if there should be, why it differs from ZSTD_WINDOWLOG_MAX. I removed that limitation to be able to test it in my environment and I found the performance is worst than with my patch by roughly 20% (on i7-3520M), which is a major drawback considering the main motivation to use zstd is the decompression speed. I will test on arm as well and share the result tomorrow. Petr