Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1375698
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Kirill A. Shutemov" <kirill@shutemov.name> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 01/31] huge tmpfs: prepare counts in meminfo, vmstat and SysRq-m |
| Date | Mon, 11 Apr 2016 13:10:03 +0200 |
| Message-ID | <rmHTd-4Qu-31@gated-at.bofh.it> (permalink) |
| References | <rkGye-1F1-7@gated-at.bofh.it> <rkGye-1F1-5@gated-at.bofh.it> |
| X-Original-To | Hugh Dickins <hughd@google.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=abRNLIdVkOmWhpAQfPbOTti/r3ZuN1I62q4Ob8geQEE=; b=C4qFT1EoG7cT9+/HaVjzO2bHaTQqCtVZXJknZUz/gDlxgqZjPugMmsQMlOOvzGH59C VAXEzotWJ8y+cb8HRuIbq7K+c1/3jdy5xFXgxr8jcWzyrvbSTtF73aFNJrK6MSIQ8+hW z01pqMHNnp7LBhj4C78pK1OWRIw1X02QLFicS4BR+EY27iym48d71Zcz1eWx5sqVaOyM yyKtu5blVot+YK9Fyu8BWF0bHQG8MsZvXNXnzoTYoXjgo+j4aiW716Fbo4/qQFGPXa6o b7BRu86unOrBtDOAg3DYRSdH/6Eazl6TWjTkXfWW2YuYOB20hgP8n4/L22nGyUpLXtjD tXDw== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=abRNLIdVkOmWhpAQfPbOTti/r3ZuN1I62q4Ob8geQEE=; b=W50k/eOyRrZB0gfugCkS3iuEgQEWZshOMt9zwmt+NnI7cLd5hj7v9GwoeJygaI4c8U dyFHoZyzsHODyeQEFzT6qEi6hGmjN7h3fNUJVJcMBs3mzbIghN+zXCA5IIWX9cIzWDoT cKuaffvP47/ouGgGXfBxjqY9u7DaNhafvTpdJiI1yedmic3WIUfW8E16AVSULcetUCDf UJ8EBHYFmcVpq/ay6uRpEBkeaOstcn1wVyS2I2+kl4OtsUBTh9BG30u3fPALsTw7UqGv a1OSZOzb2UulA2riZweJy5pU9994BaAASAkGe+b5xrDD92t27fTJ0oP989TpZvXRYte7 7RtQ== |
| X-Gm-Message-State | AD7BkJL/44oRDShYqk24HUrpTqFcGTPK7eB0rsPcbU28f0SXHrC20Q8/2z6xDiKSR9LIMw== |
| X-Received | by 10.28.19.204 with SMTP id 195mr18718093wmt.1.1460372747585; Mon, 11 Apr 2016 04:05:47 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.23.1 (2014-03-12) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 31 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Andrew Morton <akpm@linux-foundation.org>, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>, Andrea Arcangeli <aarcange@redhat.com>, Andres Lagar-Cavilla <andreslc@google.com>, Yang Shi <yang.shi@linaro.org>, Ning Qu <quning@gmail.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org |
| X-Original-Date | Mon, 11 Apr 2016 14:05:45 +0300 |
| X-Original-Message-ID | <20160411110545.GD22996@node.shutemov.name> |
| X-Original-References | <alpine.LSU.2.11.1604051403210.5965@eggly.anvils> <alpine.LSU.2.11.1604051410260.5965@eggly.anvils> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1375698 |
Show key headers only | View raw
On Tue, Apr 05, 2016 at 02:12:26PM -0700, Hugh Dickins wrote: > ShmemFreeHoles will show the wastage from using huge pages for small, or > sparsely occupied, or unrounded files: wastage not included in Shmem or > MemFree, but will be freed under memory pressure. (But no count for the > partially occupied portions of huge pages: seems less important, but > could be added.) And here first difference in interfaces comes: I don't have an equivalent in my implementation, as I don't track such information. It looks like an implementation detail for team-pages based huge tmpfs. We don't track anything similar for anon-THP. > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -3830,6 +3830,11 @@ out: > } > > #define K(x) ((x) << (PAGE_SHIFT-10)) > +#ifdef CONFIG_TRANSPARENT_HUGEPAGE > +#define THPAGE_PMD_NR HPAGE_PMD_NR > +#else > +#define THPAGE_PMD_NR 0 /* Avoid BUILD_BUG() */ > +#endif I've just put THP-related counters on separate line and wrap it into #ifdef. -- Kirill A. Shutemov
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 01/31] huge tmpfs: prepare counts in meminfo, vmstat and SysRq-m Hugh Dickins <hughd@google.com> - 2016-04-05 23:20 +0200 Re: [PATCH 01/31] huge tmpfs: prepare counts in meminfo, vmstat and SysRq-m "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-04-11 13:10 +0200
csiph-web