[Xapian-devel] Database Locking

Olly Betts olly at survex.com
Thu May 26 15:37:06 BST 2005


On Thu, May 26, 2005 at 02:44:06PM +0100, Olly Betts wrote:
> Here are some preliminary timings for a successful lock and unlock on
> x86_64 Linux (I timed 10000 iterations using "time"):
> 
>  98.4-175.2 us   Quartz style locking with a lock file
> 533.2-605.6 us   fork/fcntl/exec locking
>   8.1-10.4  us   fnctl alone

A couple more timings:

  224.4-318.7 us   fork/fcntl and loop on read rather than exec-ing /bin/cat
  443.3-506.8 us   fork/fcntl and exec our own helper rather than /bin/cat

Cheers,
    Olly




More information about the Xapian-devel mailing list