Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4822195ioa; Wed, 27 Apr 2022 11:52:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRGQqyLIwYuXpcTk0anTkZjCI25hjgdFJY/Ez+dVULb+83WHn7/MvR8EskPHjBSt87fj+A X-Received: by 2002:a17:902:70c1:b0:154:667f:e361 with SMTP id l1-20020a17090270c100b00154667fe361mr30283464plt.148.1651085566702; Wed, 27 Apr 2022 11:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651085566; cv=none; d=google.com; s=arc-20160816; b=TuTQTBvLRKgWXu2TpKklErQZSZNe0PYUcL0a+JYy80hMkO7ZHowQXbTQzY/F3hbMsO knfdLxR6zQIU/830j8u6pFFWnvczsjoNHjdm0u7+jq3l5ul3/qmc9zjf+3iS5DebMH5d lkwGk2tGW2iVa7ID71WVW0PSDrBuc6qGqeL82Qn/vMyTT2e7bK8UuLkmIBMO/jBcZ9a6 xsIDUYo5n4ePmkneSB65UugBPkAK3xHwp0s1yoq7UQKTg254D93YakD5jXihpmIGz3c/ uBqRGYBtQXORJYEJqm3b2umZD8DmcW7vvZu4bvZ0AgLbLcpox5K9TW7ZC001TaYrswW0 WeeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=P/2sGR4/TokE/CQIHS2dfj7WUYp9ihuaW+yDYcsRh3s=; b=mNBU7el6eDwxHQC1ugUGO7ioVfKcqg2N9nQRwRvw8Y4e9SyaadtqNQq8PKoM80RtSj skw/QZR4I5yuZMwqugF0BzZl794zYK4Qq/tLRm+cvXrqLkpUGAII5DOIF5XwS0h5M7tr DLSLpX1EbwI5bSEA+s6+EorqxhyhS19ro4J7kiZVtKhhAt72GnAh7cS8Ev1XDp0EeU7r 8C1leHbdti64jAQu0qm6PDRub1aEO+IkrMS9FfY3AW7f+OASX8uX5wKVEYEAtJllHL5B BpapnpuWqOa+ImZvnJ/5qKDxttHRIGUy/oaaBOUl2RPXD/9h9sSNaDnPGbmv5t+7STaY zEqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=mL5WuWxE; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id on18-20020a17090b1d1200b001d9279996f1si6129472pjb.29.2022.04.27.11.52.30; Wed, 27 Apr 2022 11:52:46 -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=@linux-foundation.org header.s=korg header.b=mL5WuWxE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231351AbiD0Svy (ORCPT + 99 others); Wed, 27 Apr 2022 14:51:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231561AbiD0Sva (ORCPT ); Wed, 27 Apr 2022 14:51:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79061C42F4; Wed, 27 Apr 2022 11:36:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 011D861EE6; Wed, 27 Apr 2022 18:36:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F7A4C385A9; Wed, 27 Apr 2022 18:36:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1651084615; bh=OMICTGO/WYqPH3eg8uS6ToJj8mhJ9pJAhueCepETYGw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mL5WuWxE1oAHwTgDVWF/ZSPjveU0MDpd5Uvw46vXoBCYn2+/LaKGjCRkzm4GlsAIM 7b/mKi2m9pR5S0iab7gFXcUa6WjTZ82mYZgSVkrTfOxFluiScSimCscnu58NstAxiI U9cw/bYMDrCdB3fqlz02HDDXeqW1WRZ9YtXIArtE= Date: Wed, 27 Apr 2022 11:36:54 -0700 From: Andrew Morton To: Johannes Weiner Cc: Michal Hocko , Roman Gushchin , Shakeel Butt , Seth Jennings , Dan Streetman , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH 4/5] mm: zswap: add basic meminfo and vmstat coverage Message-Id: <20220427113654.ef8f543d7ba279952deff6f7@linux-foundation.org> In-Reply-To: <20220427160016.144237-5-hannes@cmpxchg.org> References: <20220427160016.144237-1-hannes@cmpxchg.org> <20220427160016.144237-5-hannes@cmpxchg.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Wed, 27 Apr 2022 12:00:15 -0400 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. /proc/meminfo is rather prime real estate. Is this important enough to be placed in there, or should it instead be in the more lowly /proc/vmstat? /proc/meminfo is documented in Documentation/filesystems/proc.rst ;) That file appears to need a bit of updating for other things.