[lkml]   [2001]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Lse-tech] [RFC] [PATCH] Scalable Statistics Counters
Hello, Kiran,

> Statistics counters are used in many places in the Linux kernel,
> storage, network I/O subsystems etc. These counters are not atomic since

> accuracy is not so important. Nevertheless, frequent updation of these
> counters result in cacheline bouncing among various cpus in a multi
> environment. This patch introduces a new set of interfaces, which should
> improve performance of such counters in MP environment. This
> switches to code that is devoid of overheads for SMP if these interfaces
> are used with a UP kernel.
> Comments are welcome :)

I'm wondering about the scope of this. My Ethernet adapter with, maybe, 20
counter fields would have 20 counters allocated for each of my 16
The only way to get the total would be to use statctr_read() to merge them.
Same for the who knows how many IP counters etc., etc.

How many and which counters were converted for the test you refer to?

I do like the idea of a uniform access mechanism, though. It is well in
with my thoughts about an architected interface for topology and
so I'll definitely get back to you as I try to collect requirements.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean