[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#5261) Samba4 can 'hang' OpenLDAP slapd
--=-ENBDdr/KGkLnrgJWYt0i
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Thu, 2007-12-06 at 18:09 -0800, Howard Chu wrote:
> db_stat -CA
I've run this on all the databases. It seems clear to me the issue is
with the 'user' db.
[abartlet@naomi source]$
cd /home/data/samba/samba4/SAMBA_4_0/source/st/dc/private/ldap/db/user
[abartlet@naomi user]$ db_stat -CA
Default locking region information:
16 Last allocated locker ID
0x7fffffff Current maximum unused locker ID
9 Number of lock modes
1000 Maximum number of locks possible
1000 Maximum number of lockers possible
1000 Maximum number of lock objects possible
7 Number of current locks
11 Maximum number of locks at any one time
17 Number of current lockers
18 Maximum number of lockers at any one time
6 Number of current lock objects
9 Maximum number of lock objects at any one time
73 Total number of locks requested
66 Total number of locks released
0 Total number of locks upgraded
8 Total number of locks downgraded
1 Lock requests not available due to conflicts, for which we
waited
0 Lock requests not available due to conflicts, for which we did
not wait
0 Number of deadlocks
0 Lock timeout value
0 Number of locks that have timed out
0 Transaction timeout value
0 Number of transactions that have timed out
712KB The size of the lock region
0 The number of region locks that required waiting (0%)
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Lock REGINFO information:
Lock Region type
5 Region ID
__db.005 Region name
0x2aaaaabef000 Original region address
0x2aaaaabef000 Region address
0x2aaaaabef068 Region primary address
0 Region maximum allocation
0 Region allocated
Region allocations: 3005 allocations, 0 failures, 0 frees, 1 longest
REGION_JOIN_OK Region flags
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Lock region parameters:
163 Lock region region mutex [0/205 0% 360/46912496263136]
1031 locker table size
1031 object table size
584 obj_off
54296 locker_off
0 need_dd
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Lock conflict matrix:
0 0 0 0 0 0 0 0 0
0 0 1 0 1 0 1 0 1
0 1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 0
0 1 1 0 0 0 0 1 1
0 0 1 0 0 0 0 0 1
0 1 1 0 0 0 0 1 1
0 0 1 0 1 0 1 0 0
0 1 1 0 1 1 1 0 1
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Locks grouped by lockers:
Locker Mode Count Status ----------------- Object
---------------
1 dd=3D16 locks held 1 write locks 0 pid/thread
347/46912500832560 =20
1 READ 1 HELD id2entry.bdb handle
0
2 dd=3D15 locks held 0 write locks 0 pid/thread
347/46912500832560 =20
3 dd=3D14 locks held 1 write locks 0 pid/thread
347/46912500832560 =20
3 READ 1 HELD dn2id.bdb handle
0
4 dd=3D13 locks held 0 write locks 0 pid/thread
347/1090525520 =20
5 dd=3D12 locks held 0 write locks 0 pid/thread
347/46912500832560 =20
6 dd=3D11 locks held 0 write locks 0 pid/thread
347/46912500832560 =20
7 dd=3D10 locks held 0 write locks 0 pid/thread
347/46912500832560 =20
8 dd=3D 9 locks held 0 write locks 0 pid/thread
347/1090525520 =20
9 dd=3D 8 locks held 1 write locks 0 pid/thread
347/1090525520 =20
9 READ 1 HELD 0x59310 len: 9 data:
0x010000000000000000
a dd=3D 7 locks held 0 write locks 0 pid/thread
347/1107310928 =20
b dd=3D 6 locks held 1 write locks 0 pid/thread
347/1090525520 =20
b READ 1 HELD objectClass.bdb handle
0
c dd=3D 5 locks held 0 write locks 0 pid/thread
347/1090525520 =20
d dd=3D 4 locks held 0 write locks 0 pid/thread
347/1090525520 =20
e dd=3D 3 locks held 1 write locks 0 pid/thread
347/1090525520 =20
e READ 1 HELD objectCategory.bdb handle
0
f dd=3D 2 locks held 0 write locks 0 pid/thread
347/1090525520 =20
10 dd=3D 1 locks held 0 write locks 0 pid/thread
347/1090525520 =20
8000000b dd=3D 0 locks held 1 write locks 1 pid/thread
347/1090525520 =20
8000000b WRITE 1 WAIT 0x59310 len: 9 data:
0x010000000000000000
8000000b WRITE 1 HELD id2entry.bdb page
1
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Locks grouped by object:
Locker Mode Count Status ----------------- Object
---------------
8000000b WRITE 1 HELD id2entry.bdb page
1
1 READ 1 HELD id2entry.bdb handle
0
3 READ 1 HELD dn2id.bdb handle
0
b READ 1 HELD objectClass.bdb handle
0
e READ 1 HELD objectCategory.bdb handle
0
9 READ 1 HELD 0x59310 len: 9 data:
0x010000000000000000
8000000b WRITE 1 WAIT 0x59310 len: 9 data:
0x010000000000000000
[abartlet@naomi schema]$ pwd
/home/data/samba/samba4/SAMBA_4_0/source/st/dc/private/ldap/db/schema
[abartlet@naomi schema]$ db_stat -CA
Default locking region information:
9 Last allocated locker ID
0x7fffffff Current maximum unused locker ID
9 Number of lock modes
1000 Maximum number of locks possible
1000 Maximum number of lockers possible
1000 Maximum number of lock objects possible
2 Number of current locks
4 Maximum number of locks at any one time
9 Number of current lockers
9 Maximum number of lockers at any one time
2 Number of current lock objects
4 Maximum number of lock objects at any one time
31 Total number of locks requested
29 Total number of locks released
0 Total number of locks upgraded
4 Total number of locks downgraded
0 Lock requests not available due to conflicts, for which we
waited
0 Lock requests not available due to conflicts, for which we did
not wait
0 Number of deadlocks
0 Lock timeout value
0 Number of locks that have timed out
0 Transaction timeout value
0 Number of transactions that have timed out
712KB The size of the lock region
0 The number of region locks that required waiting (0%)
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Lock REGINFO information:
Lock Region type
5 Region ID
__db.005 Region name
0x2aaaaabef000 Original region address
0x2aaaaabef000 Region address
0x2aaaaabef068 Region primary address
0 Region maximum allocation
0 Region allocated
Region allocations: 3016 allocations, 0 failures, 11 frees, 1 longest
REGION_JOIN_OK Region flags
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Lock region parameters:
163 Lock region region mutex [0/96 0% 363/46912496263136]
1031 locker table size
1031 object table size
584 obj_off
54296 locker_off
0 need_dd
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Lock conflict matrix:
0 0 0 0 0 0 0 0 0
0 0 1 0 1 0 1 0 1
0 1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 0
0 1 1 0 0 0 0 1 1
0 0 1 0 0 0 0 0 1
0 1 1 0 0 0 0 1 1
0 0 1 0 1 0 1 0 0
0 1 1 0 1 1 1 0 1
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Locks grouped by lockers:
Locker Mode Count Status ----------------- Object
---------------
1 dd=3D 0 locks held 1 write locks 0 pid/thread
347/46912500832560 =20
1 READ 1 HELD id2entry.bdb handle
0
2 dd=3D 0 locks held 0 write locks 0 pid/thread
347/46912500832560 =20
3 dd=3D 0 locks held 1 write locks 0 pid/thread
347/46912500832560 =20
3 READ 1 HELD dn2id.bdb handle
0
4 dd=3D 0 locks held 0 write locks 0 pid/thread
347/1098918224 =20
5 dd=3D 0 locks held 0 write locks 0 pid/thread
347/46912500832560 =20
6 dd=3D 0 locks held 0 write locks 0 pid/thread
347/46912500832560 =20
7 dd=3D 0 locks held 0 write locks 0 pid/thread
347/1090525520 =20
8 dd=3D 0 locks held 0 write locks 0 pid/thread
347/1090525520 =20
9 dd=3D 0 locks held 0 write locks 0 pid/thread
347/1098918224 =20
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Locks grouped by object:
Locker Mode Count Status ----------------- Object
---------------
1 READ 1 HELD id2entry.bdb handle
0
3 READ 1 HELD dn2id.bdb handle
0
[abartlet@naomi config]$ pwd
/home/data/samba/samba4/SAMBA_4_0/source/st/dc/private/ldap/db/config
[abartlet@naomi config]$ db_stat -CA
Default locking region information:
9 Last allocated locker ID
0x7fffffff Current maximum unused locker ID
9 Number of lock modes
1000 Maximum number of locks possible
1000 Maximum number of lockers possible
1000 Maximum number of lock objects possible
2 Number of current locks
4 Maximum number of locks at any one time
9 Number of current lockers
9 Maximum number of lockers at any one time
2 Number of current lock objects
4 Maximum number of lock objects at any one time
31 Total number of locks requested
29 Total number of locks released
0 Total number of locks upgraded
4 Total number of locks downgraded
0 Lock requests not available due to conflicts, for which we
waited
0 Lock requests not available due to conflicts, for which we did
not wait
0 Number of deadlocks
0 Lock timeout value
0 Number of locks that have timed out
0 Transaction timeout value
0 Number of transactions that have timed out
712KB The size of the lock region
0 The number of region locks that required waiting (0%)
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Lock REGINFO information:
Lock Region type
5 Region ID
__db.005 Region name
0x2aaaaabef000 Original region address
0x2aaaaabef000 Region address
0x2aaaaabef068 Region primary address
0 Region maximum allocation
0 Region allocated
Region allocations: 3016 allocations, 0 failures, 11 frees, 1 longest
REGION_JOIN_OK Region flags
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Lock region parameters:
163 Lock region region mutex [0/96 0% 366/46912496263136]
1031 locker table size
1031 object table size
584 obj_off
54296 locker_off
0 need_dd
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Lock conflict matrix:
0 0 0 0 0 0 0 0 0
0 0 1 0 1 0 1 0 1
0 1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 0
0 1 1 0 0 0 0 1 1
0 0 1 0 0 0 0 0 1
0 1 1 0 0 0 0 1 1
0 0 1 0 1 0 1 0 0
0 1 1 0 1 1 1 0 1
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Locks grouped by lockers:
Locker Mode Count Status ----------------- Object
---------------
1 dd=3D 0 locks held 1 write locks 0 pid/thread
347/46912500832560 =20
1 READ 1 HELD id2entry.bdb handle
0
2 dd=3D 0 locks held 0 write locks 0 pid/thread
347/46912500832560 =20
3 dd=3D 0 locks held 1 write locks 0 pid/thread
347/46912500832560 =20
3 READ 1 HELD dn2id.bdb handle
0
4 dd=3D 0 locks held 0 write locks 0 pid/thread
347/1115703632 =20
5 dd=3D 0 locks held 0 write locks 0 pid/thread
347/46912500832560 =20
6 dd=3D 0 locks held 0 write locks 0 pid/thread
347/46912500832560 =20
7 dd=3D 0 locks held 0 write locks 0 pid/thread
347/1090525520 =20
8 dd=3D 0 locks held 0 write locks 0 pid/thread
347/1090525520 =20
9 dd=3D 0 locks held 0 write locks 0 pid/thread
347/1115703632 =20
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D
Locks grouped by object:
Locker Mode Count Status ----------------- Object
---------------
1 READ 1 HELD id2entry.bdb handle
0
3 READ 1 HELD dn2id.bdb handle
0
--=20
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Red Hat Inc.
--=-ENBDdr/KGkLnrgJWYt0i
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD4DBQBHWLFwz4A8Wyi0NrsRAsZVAJi3+Vq41t9uwEfIKjzPFyzEUIOBAJ9B744l
fc4tt0W/CKELwgwaxKzTxw==
=5an3
-----END PGP SIGNATURE-----
--=-ENBDdr/KGkLnrgJWYt0i--