From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E692CC433F5 for ; Tue, 25 Jan 2022 20:37:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232261AbiAYUhW (ORCPT ); Tue, 25 Jan 2022 15:37:22 -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-Google-Smtp-Source: ABdhPJzffMUcrRKU+oI0gJlv+ICn/cAio7G6+5MfpNppQ5u0GppTC4Rj7r7R4SgFU9HjOi5OBsdBtA== 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