On Mar 14, 2014, at 2:25 AM, Andy Zhou <az...@nicira.com> wrote:

> How about using atomic operations to maintain stats instead of per thread 
> buckets? It seems to be a win at least within a NUMA node from kernel 
> datapath experience.

Atomic modify operations require locking the bus and are thus very expensive 
for something that is being done all the time. In kernel flow stats one 
spinlock is used to protect the three stats variables.

  Jarno
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to