Hi, Stephen,

You are correct and we understand that spinlock might be slightly faster than 
counter based rwlock in this case. However, the counter based rwlock is the 
exception path when TSX fails.

If performance of this exception path is a big concern, a more optimal 
read-write lock scheme (e.g. TLRW) should be introduced into rte_rwlock in the 
future.

Thanks
Yipeng

>-----Original Message-----
>From: Stephen Hemminger [mailto:step...@networkplumber.org]
>
>For small windows, reader-writer locks are slower than a spin lock
>because there are more cache bounces.

Reply via email to