Quanah,

> BDB 4.2.52 + 6 patches.  As I noted, I've used this same BDB build with
> OpenLDAP for years, with rock solid stability, and it heavily uses the BDB
> transactional interfaces.

The uses pattern may be different. Amavisd relies heavily on CDS
(Concurrent Data Store), uses cursors, and uses Hash and Queue access methods.

I'll repeat what I just posted on a related thread, it may or may not
be relevant (although your issue is a huge number of current locks,
unlike the other thread which talks about discrepancy between
locks requested and locks released in a statistics report) -


Here are some possibly relevant entries in bdb release notes:
http://www.oracle.com/technology/software/products/berkeley-db/db/

4.3.29
Concurrent Data Store Changes:
  Fix cursor locks for environments opened without DB_THREAD so that they
  use the same locker ID. This eliminates many common cases of application
  self-deadlock, particularly in CDS.  [#9742]
Queue Access Method Changes:
5 Fix a bug where the Queue access method might fail to release a record
  lock when running without transactions.  [#9487]
Locking Subsystem Changes:
11 Fix a bug that would fail to upgrade a write lock when moving a cursor
  off a previously deleted record. [#11042]
Utility Changes:
4 Fix a bug in the locking statistics where “current locks” included
  failed lock requests.  [#9314]

4.4.20
Concurrent Data Store Changes:
1. Lock upgrades and downgrades are now accounted for separately
   from lock requests and releases. [#11155]
Queue Access Method Changes:
2. Fix a bug where updates that do not use transactions,
   but do enable locking, failed to release locks. [#11669]


In view of the above, I'd suggest upgrading bdb to 4.4.20 (or at least
to 4.3.29).


> I've also seen via google that many users have 
> reported hitting these issues in Amavis with later release of BDB as well.
> I would also note that by creating or modifying the DB_CONFIG file, and
> then restarting Amavis, the environment gets reset, so it should clean up
> the results of previous crashes.

Restarting amavisd removes previous databases and creates new ones.

> > The first thing to check is what amavisd-nanny has to say.
> > If it reports any crashed processes ('went away'), than this
> > is the first thing to track down and fix. If there are no
> > process crashes, I'd first try with a different version of libdb.
>
> Not currently running amavisd-nanny, unfortunately.  And for the reasons
> noted above, I'm somewhat doubtful that BDB is the real culprit.  I've see
> the Lock table is out of available locker entries be valid in the past, but
> in those cases, the data coming back from db_stat -c made sense.

amavisd-nanny needn't be running all the time, just once every
now and then, or every couple of days when a postmaster wants
to have a quick overview of the amavisd health.

An alternative to amavisd-nanny is to grep the system log
for any reported crashes of processes running perl.
It is essential to first solve any process crashing problems
before troubleshooting bdb.

  Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to