tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Hashed locking for the namecache



On Sat, Apr 05, 2008 at 11:24:57PM +0200, Juan RP wrote:
> On Sat, 5 Apr 2008 22:15:03 +0100
> Andrew Doran <ad%netbsd.org@localhost> wrote:
> 
> > Hi,
> > 
> > http://www.netbsd.org/~ad/cache.diff
> > 
> > This patch uses a hash of locks to cover forward lookup in the namecache.
> > On an 8-core box it cuts the time for 'build.sh -j16 release' by about 5%.
> > We could probably do something a lot more efficient with garbage collection.
> > But, this patch is simple and I think it could be a stepping stone towards
> > a more better scheme.
> 
> No comments about the patch, but is mutex_obj_{alloc,free,hold} part
> of the public mutex API?

I guess so, they just aren't documented yet. Incidentally the namecache is a
good example of where I'd like to use them because it gets hammered on.

Andrew


Home | Main Index | Thread Index | Old Index