Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp425590iob; Fri, 13 May 2022 04:56:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3FdbChHsUnQwLEP9OP49nHmZryWNBAOP1MJMnSmH/xYw3bHs71LC3ulxXL0g+Ru7c+7p3 X-Received: by 2002:a05:6000:1145:b0:20a:d93d:ee24 with SMTP id d5-20020a056000114500b0020ad93dee24mr3608381wrx.543.1652442963266; Fri, 13 May 2022 04:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652442963; cv=none; d=google.com; s=arc-20160816; b=H5UEAguh1qbhBSIseAhnXrWe1F/IxG2fRYOlLVnX02WLfr5j6+yD3gO2rcdrWkOCA3 K0Xqyf8u68qYRpttN0s7mFP1LTti4XnI5clT8e0evbNX0DuR9cAgic9xeYUuwpOatqqB tT9yjQEWx4r+9Txkb76DTZLa41/kFqF6I27ep7gYHZ85hdm0kiyzJaBjvZ00YVVTdN27 uWqnYe0IejF0RJS//qk4b5THkRhJNFxMcmHtKsb5QIZchc7VHy5e2/je+bwn8/WYRnGh gKQqceOLKRRhTkhKS//4Fx9146lPiRAA61vUr1ERwSvEJwuxZRC3hToz/sdi1ljKI0YV 5Qdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=EE9Fagjhe/kqd3S9iC2YvYzVpVJK7eXKAdqNAWFHIas=; b=Q9QDCK0RdQT+Tg3w0mWzD0RJ2AqLputFUl3WcJ8fdoIhOPd09j+9+tEhVmuy1xu+pm Dl6YnlRztTwsjfbqgUvqbWzWaZ/lOKyId5KVYxyU3ZYX1ICGUy5r4nKcOWys/Lcx64b8 JRqMfAISs/RHj+7zX9jW7IEBe9pmEgI9QbDSrhfO/S0A75NGphjNdKEb01z78ZJfBwRc P6BhBl884055yxGFqhy3TPWPaTKlEk5cbg8xfpyrJ93SlVzAC8QiGmZOw1aUQg9y01sB ggCnvjp1e3MYJlVqbFsxepxlakgl/o4OLw71D46LEWADgJ5mMvmRh+QFscYo66NxLv36 5Fiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V+nCXNPD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v27-20020a5d591b000000b0020c7286760esi1867985wrd.792.2022.05.13.04.55.33; Fri, 13 May 2022 04:56:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V+nCXNPD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345364AbiEKRNz (ORCPT + 99 others); Wed, 11 May 2022 13:13:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244088AbiEKRNy (ORCPT ); Wed, 11 May 2022 13:13:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4FE90173364 for ; Wed, 11 May 2022 10:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652289232; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EE9Fagjhe/kqd3S9iC2YvYzVpVJK7eXKAdqNAWFHIas=; b=V+nCXNPDJ8h3Ey9KSjR+gF+xpXUiWUEsQ0UNAC+Cd4kYrfHmJBForclQk9zEeaTWrwhSTn qB4uH+s7rUsq8Ud4iXtJLQpPSHeODg1KsrfObk4iGNaF0hgvoVnoGPxX+z5rQ1wMemZWAz mWoQFVYvHiu8JgMNamhzuEbJ/HIF3OY= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-541-aPM6e6rSNUyxXTtsiO2pBQ-1; Wed, 11 May 2022 13:13:51 -0400 X-MC-Unique: aPM6e6rSNUyxXTtsiO2pBQ-1 Received: by mail-wm1-f71.google.com with SMTP id e9-20020a05600c4e4900b00394779649b1so3113670wmq.3 for ; Wed, 11 May 2022 10:13:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=EE9Fagjhe/kqd3S9iC2YvYzVpVJK7eXKAdqNAWFHIas=; b=tx0kxkBYuxjPUnbrckxPFd+8z8j5RnGhh/2mbymcC3G7+yEEXEZkv4PbQBOFcAdsxl WqjV8QAmE/A6KE7EuKa1PYvfUeNKiCZpUCnhyC8UaHT/DlpMZW9N0JJCjQZ3ucy9qK7H MHChFklKoke/wRYjYvjS7W+VPp049tLWU3gOnhceAOkMhH9yg74M4P+Hv2v36AkIwCs4 hVNWz5E/IyNNr/zCovxoUEWXKFzuIblgmysu94CRE7xXL2FjQLNAlS1iySatvscOmzR/ lOMcuxtXa7raUY7Nw7a0J2xCvtGWQjY7MN0FEXDhN4bm3D7j4uSI22mNNMdIl+cHJ9p9 zjIA== X-Gm-Message-State: AOAM530GADf2PatkNd0ah7XJFRxVUqv5dRroX6LgQpYLpxe0vpl/Pmjj wswa2/nObLr6c8ZnBiEmFbM1ILZwVPtmGymXwKDsCnHz7Fd3jtIc53z3hlJk+Rph7YnkBY3MSa9 iBB2Mdoo7/2PC5USI0SN84ugO X-Received: by 2002:a05:6000:1f1a:b0:20c:d84b:5863 with SMTP id bv26-20020a0560001f1a00b0020cd84b5863mr7146320wrb.277.1652289229998; Wed, 11 May 2022 10:13:49 -0700 (PDT) X-Received: by 2002:a05:6000:1f1a:b0:20c:d84b:5863 with SMTP id bv26-20020a0560001f1a00b0020cd84b5863mr7146292wrb.277.1652289229792; Wed, 11 May 2022 10:13:49 -0700 (PDT) Received: from ?IPV6:2003:cb:c701:700:2393:b0f4:ef08:bd51? (p200300cbc70107002393b0f4ef08bd51.dip0.t-ipconnect.de. [2003:cb:c701:700:2393:b0f4:ef08:bd51]) by smtp.gmail.com with ESMTPSA id o12-20020a05600c2e0c00b003945781b725sm282850wmf.37.2022.05.11.10.13.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 May 2022 10:13:49 -0700 (PDT) Message-ID: Date: Wed, 11 May 2022 19:13:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v2 5/6] mm: zswap: add basic meminfo and vmstat coverage Content-Language: en-US To: Johannes Weiner , Andrew Morton Cc: Michal Hocko , Roman Gushchin , Shakeel Butt , Seth Jennings , Dan Streetman , Minchan Kim , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com References: <20220510152847.230957-1-hannes@cmpxchg.org> <20220510152847.230957-6-hannes@cmpxchg.org> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220510152847.230957-6-hannes@cmpxchg.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10.05.22 17:28, Johannes Weiner wrote: > Currently it requires poking at debugfs to figure out the size and > population of the zswap cache on a host. There are no counters for > reads and writes against the cache. As a result, it's difficult to > understand zswap behavior on production systems. > > Print zswap memory consumption and how many pages are zswapped out in > /proc/meminfo. Count zswapouts and zswapins in /proc/vmstat. > > Signed-off-by: Johannes Weiner Acked-by: David Hildenbrand -- Thanks, David / dhildenb