On Mon, Jan 25, 2010 at 11:37:50PM +0000, Gabor Kovesdan wrote:
> Author: gabor (doc,ports committer)
> Date: Mon Jan 25 23:37:49 2010
> New Revision: 202992
> URL: http://svn.freebsd.org/changeset/base/202992
> 
> Log:
>   Cache failing and opened catalogs in catopen() and related functions.
>   Continuous catopen() calls cause 4 failig stat(2) each, which means a lot
>   of overhead.  It is also a good idea to keep the opened catalogs in the 
> memory
>   to speed up further catopen() calls to the same catalog since these catalogs
>   are not big at all.  In this case, we count references and only free() the
>   allocated space when the reference count reaches 0.  The reads and writes to
>   the cache are syncronized with an rwlock when these functions are called 
> from
>   a threaded program.
>   
>   Requested by:       kib
>   Approved by:        delphij

Would you, please merge this (and followups) to stable/8, preferably before
the 8.1 freeze ?

Thanks.

Attachment: pgpniDoKjNnIl.pgp
Description: PGP signature

Reply via email to