[Samba] Re: TDB locking overhead and performance...

Volker Lendecke Volker.Lendecke at SerNet.DE
Sat Apr 22 17:24:50 GMT 2006


On Sat, Apr 22, 2006 at 06:15:31PM +0100, Daniel J Blueman wrote:
 
> As a test, I changed the opening of the locking.tdb and brlock.tdb
> files to use the TDB_INTERNAL flag, avoiding use of the fcntl(F_SETLK)
> syscall for locking individual database records. Performance was a lot
> snappier, with quite a bit less system time used.
> 
> What is the scope of implementing shared memory TDBs, where locking
> could be done simply on structures?

How would you implement cross-process locking without
any syscalls? Maybe Linux has some fancy stuff here, but for
most unixes we need to coordinate the mmap'ed area for the
tdbs fcntl locks.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20060422/041647e1/attachment.bin


More information about the samba mailing list