Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1688034 > unrolled thread

[PATCH 03/10] percpu: expose pcpu_nr_empty_pop_pages in pcpu_stats

Started byDennis Zhou <dennisz@fb.com>
First post2017-07-16 04:30 +0200
Last post2017-07-17 16:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 03/10] percpu: expose pcpu_nr_empty_pop_pages in pcpu_stats Dennis Zhou <dennisz@fb.com> - 2017-07-16 04:30 +0200
    Re: [PATCH 03/10] percpu: expose pcpu_nr_empty_pop_pages in  pcpu_stats Tejun Heo <tj@kernel.org> - 2017-07-17 16:50 +0200

#1688034 — [PATCH 03/10] percpu: expose pcpu_nr_empty_pop_pages in pcpu_stats

FromDennis Zhou <dennisz@fb.com>
Date2017-07-16 04:30 +0200
Subject[PATCH 03/10] percpu: expose pcpu_nr_empty_pop_pages in pcpu_stats
Message-ID<u3HtM-19b-13@gated-at.bofh.it>
From: "Dennis Zhou (Facebook)" <dennisszhou@gmail.com>

Percpu memory holds a minimum threshold of pages that are populated
in order to serve atomic percpu memory requests. This change makes it
easier to verify that there are a minimum number of populated pages
lying around.

Signed-off-by: Dennis Zhou <dennisszhou@gmail.com>
---
 mm/percpu-internal.h | 1 +
 mm/percpu-stats.c    | 1 +
 mm/percpu.c          | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/mm/percpu-internal.h b/mm/percpu-internal.h
index cd2442e..c9158a4 100644
--- a/mm/percpu-internal.h
+++ b/mm/percpu-internal.h
@@ -36,6 +36,7 @@ extern spinlock_t pcpu_lock;
 
 extern struct list_head *pcpu_slot;
 extern int pcpu_nr_slots;
+extern int pcpu_nr_empty_pop_pages;
 
 extern struct pcpu_chunk *pcpu_first_chunk;
 extern struct pcpu_chunk *pcpu_reserved_chunk;
diff --git a/mm/percpu-stats.c b/mm/percpu-stats.c
index fa0f5de..44e561d 100644
--- a/mm/percpu-stats.c
+++ b/mm/percpu-stats.c
@@ -164,6 +164,7 @@ static int percpu_stats_show(struct seq_file *m, void *v)
 	PU(nr_max_chunks);
 	PU(min_alloc_size);
 	PU(max_alloc_size);
+	P("empty_pop_pages", pcpu_nr_empty_pop_pages);
 	seq_putc(m, '\n');
 
 #undef PU
diff --git a/mm/percpu.c b/mm/percpu.c
index bd4130a..9ec5fd4 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -160,7 +160,7 @@ static LIST_HEAD(pcpu_map_extend_chunks);
  * The number of empty populated pages, protected by pcpu_lock.  The
  * reserved chunk doesn't contribute to the count.
  */
-static int pcpu_nr_empty_pop_pages;
+int pcpu_nr_empty_pop_pages;
 
 /*
  * Balance work is used to populate or destroy chunks asynchronously.  We
-- 
2.9.3

[toc] | [next] | [standalone]


#1689144 — Re: [PATCH 03/10] percpu: expose pcpu_nr_empty_pop_pages in pcpu_stats

FromTejun Heo <tj@kernel.org>
Date2017-07-17 16:50 +0200
SubjectRe: [PATCH 03/10] percpu: expose pcpu_nr_empty_pop_pages in pcpu_stats
Message-ID<u4fvu-6kS-39@gated-at.bofh.it>
In reply to#1688034
On Sat, Jul 15, 2017 at 10:23:08PM -0400, Dennis Zhou wrote:
> From: "Dennis Zhou (Facebook)" <dennisszhou@gmail.com>
> 
> Percpu memory holds a minimum threshold of pages that are populated
> in order to serve atomic percpu memory requests. This change makes it
> easier to verify that there are a minimum number of populated pages
> lying around.
> 
> Signed-off-by: Dennis Zhou <dennisszhou@gmail.com>

Applied to percpu/for-4.14.

Thanks.

-- 
tejun

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web