Re: [patch 2/2] x86,pat Convert memtype_lock into an rw_lock.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Wednesday, March 24, 2010 - 9:36 am

On Wed, 2010-03-24 at 09:12 -0700, Suresh Siddha wrote:

Sure, but the rwlock_t is unfair and can degrade into much worse
performance than the spinlock.

Thing is, rwlock_t needs to write to the cacheline for each read
acquire, so unless the hold time is much-much longer than the cacheline
bounce time, its just not worth it, but since its a rwlock_t it should
be have short hold time, hence its a useless construct :-)


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch 2/2] x86,pat Convert memtype_lock into an rw_lock., Peter Zijlstra, (Wed Mar 24, 9:36 am)