Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4906557ioa; Wed, 27 Apr 2022 14:03:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyY0N+phqOIapg6ruvKBmQz75ZaD096XGlvQ1qX19gUGBfjniPM0O701mZ/20TnhW4JDjDH X-Received: by 2002:a17:902:d5ce:b0:158:48db:9719 with SMTP id g14-20020a170902d5ce00b0015848db9719mr30181734plh.7.1651093390943; Wed, 27 Apr 2022 14:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651093390; cv=none; d=google.com; s=arc-20160816; b=HFH22IEXajNlRkQpTnaY6DIxnaYXi/bkc1HFZ+udH61rHOa1SvqQlelITcNDcd5g09 0XBK3dQ7Tz0FnMKgPzCDB+p+IAErlHG80Cl615SxG1jLd8Oa5aW8MWA2agqSHXIUEGUh +wrGtxFAwJ5mJG2f8ezn24nSAtHDdUl9w59QuBZMmeYl/H7ItgNMjM56MgtFHXfcH/3U F2xDATPvQkZ+IS9fSv30Yqwu5V+EncuDeYdOlmQwtX/kGKAz1oH+qyP2CPEyYgzWxL5Y abgj6sT3jqrk5lmhGU6L5/0FlkYQeZRm3RWVgMOxyB5gk6+A5nzzlmfsuQa1ESxh/1g1 S84g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5Bxi6KofN0Ih5O2P5EXy7XNcKRJLdVQH6xt19JcR/Cc=; b=Yt9nq+KP2bw+F/keWDBS4EDdP6XB3DZmlPEXlIJvukQhRcIfzfjGKdqhlptL06l/R/ A0IikIOrhfYIWtn7JHZutu6duUkN4HNN63GcuzHLuILRnrCcPPIo/dgi9E0ajjzuJKS+ O2lQVmxxXMSC7c4M1ybbnyItImlVSAA+DfY1E8ads+Q8ofEsjfznFIuYtijkBxZ/Kh6t 95ogOq7GWi9i3H19DNWimWrzOHtND8DqR303fyPFrwA0JNWA7o2SXQRdrebcaX52cir4 lWSSGkKrqqdAFvWjAOByZPWC3zA86svdVWlg7ePktMyCeQIz9gLjvsop+AwjQjqly4OD gMAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=65NapwWd; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id my12-20020a17090b4c8c00b001c7e8ae7620si2865431pjb.157.2022.04.27.14.02.51; Wed, 27 Apr 2022 14:03:10 -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=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=65NapwWd; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232341AbiD0THS (ORCPT + 99 others); Wed, 27 Apr 2022 15:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232245AbiD0TG5 (ORCPT ); Wed, 27 Apr 2022 15:06:57 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FA267C243 for ; Wed, 27 Apr 2022 11:53:45 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id r8so1688477qvx.10 for ; Wed, 27 Apr 2022 11:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5Bxi6KofN0Ih5O2P5EXy7XNcKRJLdVQH6xt19JcR/Cc=; b=65NapwWd4Bu52BgiMzSrFcem1E52ZJnpS0GWN6sZuF8lZ5D+NZ9Ww0Anh9KupdJguI UzAS0QkUzTyoa4mXefmL3ncFHMeJEYGiv8Y4ZWUY5GqWqlu6l8H3TeskMI6hQscaCpfY xFTNfO8WOciEzvX0JjGttg51D/9bWg1IxH7Q9heQTyN0Ax1r1H6fpSgxb1qUOYSOt4/b VLQI177Dk/OGl9IygOnXPdYVJLVXXFN59R2Qt3TQ2OMHxqMptwsfkrNXKPx5A6KaTz0c ZfjzEibO+5o5S6D/+WwZ8cM2fs2lXZy9mXt7BWxQ6A3lY0GIvJq4h5tUVYWmcEZW3FdV 8Jzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5Bxi6KofN0Ih5O2P5EXy7XNcKRJLdVQH6xt19JcR/Cc=; b=z1NSrFpuUQpf5cqD0+IlanSMIhfl63nJ+ulC/7S0dvDwmsXyAuq1xGnGCyTiwuNmv9 4/5b4FrxmGaTbe4piC7mLr4YxpAQ+CPwivQnPFJ+S9MjrQejrhbboQ0Z1T0qvUrNH52B jb6ObthuVatzl+d346VaCBI2QcNDQVhqh9XqjGULH+tA3XQZ1h+rFqnjwlk48A0nS4Bx koaly4nWeZOWU4Xcf3E6F72SWll3ERzaCEix7jOZLaxwrv2XLKeGkG1bKzalYGmF8Idg zpkR6cwsyJW8mTeDcrgLj3TH92oHBV2tGG3KMM94uq41qHiahazA2yJlD4h89anFsthi HTTQ== X-Gm-Message-State: AOAM531uPi4YDPVtPPH7RQS4oC55L5pDX2sO/iXjDsS8KFSj00uqiX3a mzYRSB2iDiTRbFW8ZYVvi9AYBw== X-Received: by 2002:a0c:c3c6:0:b0:42c:17e4:9a75 with SMTP id p6-20020a0cc3c6000000b0042c17e49a75mr21460568qvi.124.1651085624374; Wed, 27 Apr 2022 11:53:44 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:f617]) by smtp.gmail.com with ESMTPSA id r9-20020ac85c89000000b002f378738ed4sm3690092qta.7.2022.04.27.11.53.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 11:53:44 -0700 (PDT) Date: Wed, 27 Apr 2022 14:53:08 -0400 From: Johannes Weiner To: Andrew Morton 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: References: <20220427160016.144237-1-hannes@cmpxchg.org> <20220427160016.144237-5-hannes@cmpxchg.org> <20220427113654.ef8f543d7ba279952deff6f7@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220427113654.ef8f543d7ba279952deff6f7@linux-foundation.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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, Apr 27, 2022 at 11:36:54AM -0700, Andrew Morton wrote: > 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? The zswap pool size is capped to 20% of available RAM, and we usually have a utilization of tens of gigabytes. I think it's fair to say it's a first class memory consumer when enabled, and actually a huge hole in /proc/meminfo coverage right now. > /proc/meminfo is documented in Documentation/filesystems/proc.rst ;) > > That file appears to need a bit of updating for other things. "The following is from a 16GB PIII, which has highmem enabled." lmao. I'll send a general update for that, and a delta fixlet for 4/5. Thanks!