Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7491136ybi; Mon, 8 Jul 2019 23:02:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUlURhspwOaCV4aysGZ4uKphqAp9ejwbdpgxD5p7GhyN+yduTeN7EOXtjVliKiZJfKSMWY X-Received: by 2002:a63:f150:: with SMTP id o16mr28624011pgk.105.1562652146767; Mon, 08 Jul 2019 23:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562652146; cv=none; d=google.com; s=arc-20160816; b=PzmEhSABlkvaezMfu9yd9fRaLgI4xyMEJqoH3+OpCA8fZM0Sz0rpt78FSM1j+iJs1B fy7ugyjOVbmmQfPHPziB3zCMbOTqrIqZgCf5FIiWhCIB7vttOzvDZ3hiKivj16Bkvzwg uYTvUAPrxICT2hdC0W999PCMnDIlOJ7hyJZPqeUc5S9y/4RE+SazVHfPHVvklaimbFft i4pk7JZkBGKFe5RcpIl2llPWGrYKj9xqOcUb2IbOfSZ6RdGR1LR/0Bz2VHwAP+0jR1Ec qUw4RgjhtiGx9h8HR6NNwNznh7GzPa1uomqzO6MXWRGfXjFU08LS8mbRnLO0u0FHy/UT 9enw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=8H9DxfUP055AjEkmlAvjXMvI3VeCVnuumQ1UZuDs62Q=; b=cflJ7puKStImMKfp6C58COrldVYs8jDPwNnt93+zctrwPfR2FVT4yz6xOj2T6Xyn5e SSAcfmRZty6HnviOuD+VKR8DiMd99x0+oOE5dPVeKwKi/1fG4rYVDz4ushfY4mrf7GJi 5BtPoe4bULgctN+8aJb2ojrMSD569C9b4G4yo79HHHnxettHbDPciYLoU0VDV/+v8V3N Sj2q5uDoMNhasHbz6bVHxMFKVR27HBPQD19j/Jsb/1tzlBl1bknDR+AL2FOQtkNtJ2/x ubQpnkYJEMR/iguYWwTeLVoLbHzVGwMf8hOcKSzKQTZMZQKzVsIsEzaZC5ec7rx/3513 BBHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si19812543plo.384.2019.07.08.23.02.08; Mon, 08 Jul 2019 23:02:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727366AbfGIF74 (ORCPT + 99 others); Tue, 9 Jul 2019 01:59:56 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:40272 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfGIF74 (ORCPT ); Tue, 9 Jul 2019 01:59:56 -0400 Received: by mail-lj1-f193.google.com with SMTP id m8so8812000lji.7 for ; Mon, 08 Jul 2019 22:59:54 -0700 (PDT) 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; bh=8H9DxfUP055AjEkmlAvjXMvI3VeCVnuumQ1UZuDs62Q=; b=d8xjMBKmmDRFn7+ikdO8/b7UmrRpaK/8Jlh9VFTc84aBRQV4besDbiOEsvtfjQAzpN vjoV8uySw+83bf64HkQXsbnniLjswVRT0AT6wZ1tOWjC8Mq3OSfaJIV8gHPCO8VRK6AQ FFQdGFi39QY07bY5qVQuAQ+sm+rgLmG/LiF8QYD8n8o4ng9aYVE/6zSSOerCpEcNQtiM s2OFCsirGiXTQvnLg9pkCaeRI9uUueHeguuz9BdtiFrNls+RHkXz8YxlTG7cnOGEyyyp +WAeHZlKSL7+PVn79daEk6dOnTnPv475tsqRt8bfO1QG8UpC2JOulxuMKhcv7pAHz2y5 bjAg== X-Gm-Message-State: APjAAAWkwmfFqxLGNAqHTFd1KyHj1ECmHB9SP+PSkdFwCcH3OYvwp9XC npd+UkyguqVvbDkhsPt/+r3kd5e/wq4fknFYUD8= X-Received: by 2002:a2e:9d18:: with SMTP id t24mr13065996lji.2.1562651993947; Mon, 08 Jul 2019 22:59:53 -0700 (PDT) MIME-Version: 1.0 References: <20190514235111.2817276-1-guro@fb.com> <20190514235111.2817276-2-guro@fb.com> In-Reply-To: <20190514235111.2817276-2-guro@fb.com> From: Minchan Kim Date: Tue, 9 Jul 2019 14:59:42 +0900 Message-ID: Subject: Re: [PATCH RESEND] mm: show number of vmalloc pages in /proc/meminfo To: Roman Gushchin Cc: Andrew Morton , linux-mm , "linux-kernel@vger.kernel.org" , kernel-team@fb.com, Johannes Weiner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Roman, On Wed, May 15, 2019 at 8:51 AM Roman Gushchin wrote: > > Vmalloc() is getting more and more used these days (kernel stacks, > bpf and percpu allocator are new top users), and the total % > of memory consumed by vmalloc() can be pretty significant > and changes dynamically. > > /proc/meminfo is the best place to display this information: > its top goal is to show top consumers of the memory. > > Since the VmallocUsed field in /proc/meminfo is not in use > for quite a long time (it has been defined to 0 by the > commit a5ad88ce8c7f ("mm: get rid of 'vmalloc_info' from > /proc/meminfo")), let's reuse it for showing the actual > physical memory consumption of vmalloc(). > > Signed-off-by: Roman Gushchin > Acked-by: Johannes Weiner > Acked-by: Vlastimil Babka Acked-by: Minchan Kim How it's going on? Android needs this patch since it has gathered vmalloc pages from /proc/vmallocinfo. It's too slow.