Re: 64 bit netdev stats counter

From: David S. Miller (davem@redhat.com)
Date: Fri Jul 12 2002 - 17:28:42 EST


   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/



This archive was generated by hypermail 2b29 : Mon Jul 15 2002 - 22:00:24 EST