Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4968727pxb; Wed, 26 Jan 2022 01:40:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwr49hwTt9VhLnj8Nldqkc8mZlaV7J++gtsDwui0HsP2mciH6FTgcxfIVm98SiTZQYfsA97 X-Received: by 2002:a17:906:1f04:: with SMTP id w4mr18807691ejj.603.1643190058434; Wed, 26 Jan 2022 01:40:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643190058; cv=none; d=google.com; s=arc-20160816; b=nO6ms7Z1HWUFgHFNllT3FoWGiaXNkrcD8zXNaRRmxjlvakYWVb6bW9X4XS9mWK9DNv tpMi/EQvdo6biFfiO4XZnwZcx673j/bD2jLmpljjiiUWcHiIHf8stf4aYhLLoj3YnO2S vYYLA2rStq4m+bCqz75KayNtRqIIHT76qIwAU50vRczLO2QC6uUsitI/ELNo1YdNcAAr udk9IQkOzaba0v1CbBmww9164LJtOFE0NoJy48kHd3689IAdALVUSaRjz8t/1HL043pD vv7bR4bCRscrpUejha1qiLLr//KuTRvqz8+e8hX47gjtHKLpLpRtmZgI7egrJ1hRFhQw TRVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=S114hpLlK1eEOMK2e4rLDa38DT2qlNS0CbSes7k76IU=; b=0XsXjxWoPVD+lEdY7kP5P8HT2QoLMvPd9nmpI5q1jKpm9dQB/A6IEilkJ/38grk5Cr +ZRV8eTTyGy3/6zAkltGa58xywpJurvXxa/ZqV/Ge1KncKa9MNfgwDDBgn4dAGQ9Qph0 JasyeZVfNXeWJbd5k6QVzP0kPlPfDc3gePoal7pIoJ46njc7aI2tU37tgh+VZ1a3iPCR agtx7ZQquDszrFxXhxoTNnA0YkrJiKk/dVDVmOU4Zoz+PHQp5te7bQfNKUuYHl+r0gwY WUWPqaYOby225Lf+bGZ5s2D5fBoTHkBixCO+tps2xJxkGQbNvQgMD9rIidQWYgnsn8mv Ml6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=d378eBTU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y20si4854354edd.608.2022.01.26.01.40.33; Wed, 26 Jan 2022 01:40:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=d378eBTU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231847AbiAYUhV (ORCPT + 99 others); Tue, 25 Jan 2022 15:37:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232253AbiAYUhU (ORCPT ); Tue, 25 Jan 2022 15:37:20 -0500 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD35EC06173B for ; Tue, 25 Jan 2022 12:37:19 -0800 (PST) Received: by mail-io1-xd2c.google.com with SMTP id r144so3188645iod.9 for ; Tue, 25 Jan 2022 12:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=S114hpLlK1eEOMK2e4rLDa38DT2qlNS0CbSes7k76IU=; b=d378eBTUprEfA0JyKd2BgfcVOIdsU2TDPLJesC0g9fQe6T8z5JCBPGDsoNQtEKr/HE 9ln+MKXxHPBYZ7ttXQAJedWDvUDwaiuV4HbrhmkexmJhuALe5Uhk08pKxLSc8pcF1UHc fk3G/swpCUXr5NHD1beQb8N7jZ2NnQed8nS5k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=S114hpLlK1eEOMK2e4rLDa38DT2qlNS0CbSes7k76IU=; b=wFjEhUm9cq7rlhj4E5Il0AUm8RiMHq3FI0QjpsgUS4rUiPZbeWhMiaEBiaZX5YGME/ 3nqgDdb0oxMioX10tTW6anvRwSMa4+deAB5EwWCLBc44ZhE2If7s/LzSqb1S7XP6E0Cy rHBuEp/aTCVoGkq/FsvArIqWSzGHqFhBV6br5dMEMp+tHVqGRuJZ+0WzfV8mSN2RQQl3 sRSeqJNKNQFqEB5GEx3kU0lIms2Dnlb8FBUar6fykjz2oC8z9A1FYqL+h8tRTH1j/fQc ky0izGrH7Yf+iW9NYdsyiZwARGE3ShtV3GHlDL4I8Zr/vDl0S3dvgL0uFKExah6nTIyA uPdA== X-Gm-Message-State: AOAM532yJnT+1h6do4rVgtTcu56R6dk5aSNSLbl2jBWOEtR8AOA9NAWe e1Gb9/TT4vL1Pw2CIIbXBQRsDA== X-Received: by 2002:a5d:8b82:: with SMTP id p2mr11668599iol.214.1643143039280; Tue, 25 Jan 2022 12:37:19 -0800 (PST) Received: from ?IPv6:2601:282:8200:4c:4ef8:d404:554b:9671? ([2601:282:8200:4c:4ef8:d404:554b:9671]) by smtp.gmail.com with ESMTPSA id r189sm5103334ior.2.2022.01.25.12.37.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jan 2022 12:37:19 -0800 (PST) Subject: Re: [PATCH 2/3] selftests/zram01.sh: Fix compression ratio calculation To: Yang Xu , linux-kselftest@vger.kernel.org, shuah@kernel.org Cc: linux-kernel@vger.kernel.org, naresh.kamboju@linaro.org, aleksei.kodanev@bell-sw.com, Shuah Khan References: <1639562171-4434-1-git-send-email-xuyang2018.jy@fujitsu.com> <1639562171-4434-2-git-send-email-xuyang2018.jy@fujitsu.com> From: Shuah Khan Message-ID: Date: Tue, 25 Jan 2022 13:37:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <1639562171-4434-2-git-send-email-xuyang2018.jy@fujitsu.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/15/21 2:56 AM, Yang Xu wrote: > zram01 uses `free -m` to measure zram memory usage. The results are nonsense > because they are polluted by all running processes on the system. > Are the results inaccurate or does /sys/block/zram/mm_stat is a quick way to get the information? In any case, this patch and all 3 patches in this series have: WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line) Please run checkpatch.pl and clean these up. thanks, -- Shuah