Your message dated Sat, 15 Jul 2006 22:24:19 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#304812: slapadd takes days due to its sched_yield use
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: slapd
Version: 2.2.23-1
Hello,
slapd/slapadd use sched_yield on places where it really
should not be idling. Due to this upgrade from 2.1.30 to
2.2.23 takes more than 1 day on our 100000 objects tree
we have, with about 40 indexed attributes (after one day
I gave up, attached debugger to slapadd and overwrite
sched_yield procedure in slapadd with 'ret'; import
finished ~1 hour after I did that).
So I created shared library with function below, and
LD_PRELOADed it before upgrading replicas - replicas
were upgraded in about 1h15m, so I assume that slapadd
without killing sched_yield would take at least 4 days
with our configuration, which seems a bit too long to me.
It would be nice if upstream could eliminate at least
some useless sched_yield from code (if not all these
calls, I do not believe they are doing anything good
on 2.6.x kernels). Or you should warn users that
slapadd can take days, maybe weeks.
/*
%.so: %.c
gcc -W -Wall -O2 -shared -o $@ $< -ldl
*/
#define _GNU_SOURCE
#include <dlfcn.h>
int sched_yield(void) {
return 0;
}
Thanks,
Petr Vandrovec
--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
The added -q option in 2.2.23 greatly improves the time to import a
database. So no need to have this bugreport open anymore.
Regards,
Matthijs Mohlmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEuU7z2n1ROIkXqbARArflAJ0b8LCYE02wsalKCqc9992akgrznACghqjK
HlX9kVHMK6jRDdGmysravNc=
=heWQ
-----END PGP SIGNATURE-----
--- End Message ---