[Nepomuk] High mutex contention in Nepomuk2::Resource

Simeon Bird bladud at gmail.com
Fri Mar 15 16:00:07 UTC 2013


>> For patch 3, how about the attached two patches instead?
>
>
> I like your patch about making init a readWrite one, but not about the
> resourceStart/stop one. I cannot comment on the issue above, I'll need to
> look at the code more carefully.

Ok, thanks.

> Also, I don't really understand your - ResourceData: Change
> updateKickOffLists to take three arguments, the
> uri, old and new values, patch. I think I'll try to look at it again, a
> little later.

So the idea here is to change updateKickOffLists so that it can be
called without the dataMutex being taken. Which means that you
don't need to take the rmMutex before the dataMutex, so the
rmMutex doesn't need to be held over the soprano calls. result: speedup.

Simeon


More information about the Nepomuk mailing list