[openib-general] uverbs: pthread_mutex -> pthread_spinlock ?

Tziporet Koren tziporet at mellanox.co.il
Thu Mar 10 04:18:26 PST 2005


In VAPI we used spinlocks from this reason on all data-path verbs and it
gave us better performance.

Tziporet

-----Original Message-----
From: Michael S. Tsirkin [mailto:mst at mellanox.co.il]
Sent: Thursday, March 10, 2005 12:47 PM
To: openib-general at openib.org
Subject: [openib-general] uverbs: pthread_mutex -> pthread_spinlock ?


I am able to shave about 200ns off the rdma post latency,
by using pthread_spinlock instead of pthread_mutex for protecting
the qp post op in libmthca.

I'm aware of course that a context switch when spinlock is held may
waste a whole timeslice , but maybe for short operations such as this
it's reasonable to use spinlocks?

-- 
MST - Michael S. Tsirkin
_______________________________________________
openib-general mailing list
openib-general at openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit
http://openib.org/mailman/listinfo/openib-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050310/86371f6b/attachment.html>


More information about the general mailing list