Re: 64 bit netdev stats counter

David S. Miller (davem@redhat.com)
Fri, 12 Jul 2002 15:28:42 -0700 (PDT)


From: Andrew Morton <akpm@zip.com.au>
Date: Fri, 12 Jul 2002 15:27:09 -0700

Could you make the counters per-cpu and only add them all up
in the rare case where someone wants to read the stats?

And then change all the drivers ;)

Since spinlocks are held %99 of the time when these counters are
bumped, I'd like to suggest another more sane and space optimized
solution :-)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/