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 X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9F6FC433DB for ; Tue, 12 Jan 2021 21:59:54 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2489023127 for ; Tue, 12 Jan 2021 21:59:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2489023127 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 56BD96B00F7; Tue, 12 Jan 2021 16:59:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 51C166B00F8; Tue, 12 Jan 2021 16:59:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 432956B00F9; Tue, 12 Jan 2021 16:59:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0225.hostedemail.com [216.40.44.225]) by kanga.kvack.org (Postfix) with ESMTP id 2F0706B00F7 for ; Tue, 12 Jan 2021 16:59:53 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id F0260180AD815 for ; Tue, 12 Jan 2021 21:59:52 +0000 (UTC) X-FDA: 77698491024.26.tent52_360134a27518 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin26.hostedemail.com (Postfix) with ESMTP id C19CA1804B661 for ; Tue, 12 Jan 2021 21:59:52 +0000 (UTC) X-HE-Tag: tent52_360134a27518 X-Filterd-Recvd-Size: 4751 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) by imf33.hostedemail.com (Postfix) with ESMTP for ; Tue, 12 Jan 2021 21:59:52 +0000 (UTC) Received: by mail-lj1-f174.google.com with SMTP id e7so217117ljg.10 for ; Tue, 12 Jan 2021 13:59:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=cRHFA4C63ztEV2JIf4LFaqF2zxgUQvb3Q0QPA2iOSY0=; b=RyKM/ND3OaSVjkewh9Fz3AQZXonM2KCrQo2i2xQPD3+dds2gbnnFqCY3dlrSwf5xx+ iiF4spDbAWiHN22NB2K/mxe+kjS4Amic4Fnmk0LtF/HoEWwxbzj364eAnihFkBCdIqs2 QbpinVaXb3uaeQIhBuYjhQGRbMfXWaOZr0dSIM37n7VUUxN0xM7F1QStS1HKvxD6EuWV AmFsPkboTVYPH/QKW/NesXcOyXBIoOqbZwjarRsExLdJHcOXnA2X1j0g62f45OoFrV8D KqMkIPesv5wGRUEfRf1zL1Pz66VdVS9MtdS7enJ/0GzAt7jz1vF/efcwuJlMJz5Dvexi JNyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=cRHFA4C63ztEV2JIf4LFaqF2zxgUQvb3Q0QPA2iOSY0=; b=UKZtALBHnz2JJE4FMxwYfUvuhVcmOqdG5dj4wzEwYgY1lnqjrcAyspdtSdPpbP3Qse Vb/46+yLN7dr0Ba4ZEMlqplqwmVwaOZ8y5H5oKBMtXFzAgB/UJXfK91bDGIrQ0g9JN0e irPB8eNifVbynDk+x9Qist9uue1I+1ugyWkSTf5vutnVXKrblF8dq5DRJrgGCp732ZUm ivVYCu5seUBMhVwiFIItU1aN6k6szQu2f5/EGLEPFCjUfmxhId+MhE8Jlj87Gpn9E7P3 rwCAlkTURDewi6Ne6pgmYGjynAIkndFA6+ov9pecoDVCHFqQfvOvEbCV4oS2e0Pwdhph 6Heg== X-Gm-Message-State: AOAM533JKyDRLbDVO7Db+3E2tEMY5UCuz3xU6cU2n0zBckbAOwxmJBPi S02tegIhjfWJJ9uSoXxlfztr7aBq76b4SVWqHjAweA== X-Google-Smtp-Source: ABdhPJwOQRbnQmQmzaxrSeMY48DkVgG5W+y31u0lUb8/BEz9jaOr8hrUDoAPmHzOrVaamjPz3wtPO3lg/9hV1mJp9ww= X-Received: by 2002:a2e:b0d3:: with SMTP id g19mr557003ljl.279.1610488790674; Tue, 12 Jan 2021 13:59:50 -0800 (PST) MIME-Version: 1.0 References: <20210112095806.I2Z6as5al%akpm@linux-foundation.org> <20210112135010.267508efa85fe98f670ed9e9@linux-foundation.org> In-Reply-To: <20210112135010.267508efa85fe98f670ed9e9@linux-foundation.org> From: Shakeel Butt Date: Tue, 12 Jan 2021 13:59:39 -0800 Message-ID: Subject: Re: mmotm 2021-01-12-01-57 uploaded (NR_SWAPCACHE in mm/) To: Andrew Morton Cc: Randy Dunlap , broonie@kernel.org, linux-fsdevel , LKML , Linux MM , Linux-Next Mailing List , Michal Hocko , mm-commits@vger.kernel.org, Stephen Rothwell Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Jan 12, 2021 at 1:50 PM Andrew Morton w= rote: > > On Tue, 12 Jan 2021 12:38:18 -0800 Randy Dunlap w= rote: > > > On 1/12/21 1:58 AM, akpm@linux-foundation.org wrote: > > > The mm-of-the-moment snapshot 2021-01-12-01-57 has been uploaded to > > > > > > https://www.ozlabs.org/~akpm/mmotm/ > > > > > > mmotm-readme.txt says > > > > > > README for mm-of-the-moment: > > > > > > https://www.ozlabs.org/~akpm/mmotm/ > > > > > > This is a snapshot of my -mm patch queue. Uploaded at random hopeful= ly > > > more than once a week. > > > > > > > on i386 and x86_64: > > > > when CONFIG_SWAP is not set/enabled: > > > > ../mm/migrate.c: In function =E2=80=98migrate_page_move_mapping=E2=80= =99: > > ../mm/migrate.c:504:35: error: =E2=80=98NR_SWAPCACHE=E2=80=99 undeclare= d (first use in this function); did you mean =E2=80=98QC_SPACE=E2=80=99? > > __mod_lruvec_state(old_lruvec, NR_SWAPCACHE, -nr); > > ^~~~~~~~~~~~ > > > > ../mm/memcontrol.c:1529:20: error: =E2=80=98NR_SWAPCACHE=E2=80=99 undec= lared here (not in a function); did you mean =E2=80=98SGP_CACHE=E2=80=99? > > { "swapcached", NR_SWAPCACHE }, > > ^~~~~~~~~~~~ > > Thanks. I did the below. > > But we're still emitting "Node %d SwapCached: 0 kB" in sysfs when > CONFIG_SWAP=3Dn, which is probably wrong. Shakeel, can you please have a > think? > Thanks Andrew for fixing. Independent of this patch, we already print ""SwapCached:" in /proc/meminfo for CONFIG_SWAP=3Dn, so I think doing the same for per-node meminfo should be fine too.