Broadening the scope of the negative connection cache

Gerald (Jerry) Carter jerry at samba.org
Tue May 13 14:29:43 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marc,

> I've encountered some minor performance in Samba that come 
> up when a PDC is down.  Briefly, the ability of the negative
> connection cache to limit the time wasted attempting to
> contact that PDC is limited by the fact that it's implemented
> as a linked list and limited in scope to the process
> where the failed connection was performed.
> 
> The obvious solution would be to migrate the negative 
> connection cache to be stored in a different way, probably
> as a TDB file.  This would allow every child process to share
> the failure information.

I believe the easiest way to achieve this is simply to
use the gencache API and set a 60 second TTL on entries.




cheers, jerry
- --
=====================================================================
Samba                                    ------- http://www.samba.org
Likewise Software          ---------  http://www.likewisesoftware.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIKaXXIR7qMdg1EfYRAlCDAJ9ksY8k21gzjbr1N3JcpzN4SN4EFACfZfK6
X4l4N90Q6W5mQq9BrTsohBg=
=/Q46
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list