[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1286469421.2912.240.camel@edumazet-laptop>
Date: Thu, 07 Oct 2010 18:37:01 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH] percpu_counter: change inaccurate comment
percpu_counter used to be huge objects, they are not anymore,
thanks to fine alloc_percpu() granularity.
We now consume 4 bytes per possible cpu.
Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
---
include/linux/percpu_counter.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/percpu_counter.h b/include/linux/percpu_counter.h
index 8a7d510..5e2cb5c 100644
--- a/include/linux/percpu_counter.h
+++ b/include/linux/percpu_counter.h
@@ -3,7 +3,8 @@
/*
* A simple "approximate counter" for use in ext2 and ext3 superblocks.
*
- * WARNING: these things are HUGE. 4 kbytes per counter on 32-way P4.
+ * WARNING: these things are big : 4 bytes per possible cpu per counter.
+ * For a 64 cpus machine: 256 bytes + sizeof(struct percpu_counter)
*/
#include <linux/spinlock.h>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists