flock vs fnctl

Scott Adkins adkinss at ohio.edu
Thu Jul 24 14:11:39 EDT 2003


Thanks for the info... I switched over to using flock() and I can confirm
that it is now being used instead of fnctl().  The problem is that I still
see the same problem as before with regards to over 16500 instances of the
following:

    stat("/var/imap/mailboxes.db", 0x000000011FFF9C98) = 0
    flock(6, LOCK_UN)                               = 0
    flock(6, LOCK_SH)                               = 0
    fstat(6, 0x000000011FFF9D38)                    = 0

At least it uses flock() now :-)  It is interesting to see that this only
occurs after all the mkdir/copy/unlink operations have been completed.  I
don't know what it is trying to do, but it is quite painful... It adds at
least another minute to the operation of the IMAP RENAME command after
everything has been renamed!

Anwyays, Rob requested a backtrace.  I am trying to get ladebug working
so that I can get a decent backtrace... I am very interested in seeing
what part of the code this is occurring in.

Scott

--On Wednesday, July 23, 2003 4:25 PM -0400 Rob Siemborski 
<rjs3 at andrew.cmu.edu> wrote:

> On Wed, 23 Jul 2003, Lawrence Greenfield wrote:
>
>>    Date: Tue, 22 Jul 2003 17:11:39 -0400 (EDT)
>>    From: Rob Siemborski <rjs3 at andrew.cmu.edu>
>> [...]
>>    No, fcntl is not the default.  I'll have to look at the documentation.
>>
>>    --with-lock=flock should fix this for you though if it makes a
>>    difference.
>>
>> Except that it has been since 2.1.7:
>>
>> > Change default locking method to fcntl from flock
>
> Despite what I said in the message, I apparently changed the documentation
> to be correct.
>
> Hmm, I wonder what I was thinking when I wrote the message.
>
> -Rob
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
> Research Systems Programmer * /usr/contributed Gatekeeper
>



-- 
 +-----------------------------------------------------------------------+
      Scott W. Adkins                http://www.cns.ohiou.edu/~sadkins/
   UNIX Systems Engineer                  mailto:adkinss at ohio.edu
        ICQ 7626282                 Work (740)593-9478 Fax (740)593-1944
 +-----------------------------------------------------------------------+
     PGP Public Key available at http://www.cns.ohiou.edu/~sadkins/pgp/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 231 bytes
Desc: not available
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20030724/566c08f1/attachment.bin


More information about the Info-cyrus mailing list