LDAP performance checker
Frustrated by the lack of any LDAP performance checker that was simple to configure, easy to build, and actually worked, I wrote this: https://github.com/arr2036/ldapperf https://github.com/arr2036/ldapperf/archive/v0.1.tar.gz Maybe someone else will find it useful. With a set of 10,000 objects, with random object retrieval (using full DN and base scope) with OpenLDAP 2.4.39 + LMDB on a 12 core E5-2697 v2 @ 2.7Ghz with Ubuntu 14.04, 24 threads on the server, 50 threads on ldapperf i get around 45,000 TPS. Retrieving the same object multiple times (possibly taking advantage of some sort of query cache) I get between 60,000-66,000 TPS. Now you can prove (or not) that FreeRADIUS is the bottleneck :) Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On Sat, 2014-09-20 at 19:17 -0400, Arran Cudbard-Bell wrote:
Frustrated by the lack of any LDAP performance checker that was simple to configure, easy to build, and actually worked, I wrote this:
https://github.com/arr2036/ldapperf
https://github.com/arr2036/ldapperf/archive/v0.1.tar.gz
Maybe someone else will find it useful.
With a set of 10,000 objects, with random object retrieval (using full DN and base scope) with OpenLDAP 2.4.39 + LMDB on a 12 core E5-2697 v2 @ 2.7Ghz with Ubuntu 14.04, 24 threads on the server, 50 threads on ldapperf i get around 45,000 TPS.
Retrieving the same object multiple times (possibly taking advantage of some sort of query cache) I get between 60,000-66,000 TPS.
Now you can prove (or not) that FreeRADIUS is the bottleneck :)
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
what means this? fedora 20 with everything up to date... [brendan@desktop ldapperf-0.1]$ make gcc -Wall -lldap -lpthread -g -o ldapperf ldapperf.c ldapperf.c: In function ‘lp_conn_init’: ldapperf.c:336:2: warning: implicit declaration of function ‘ldap_init’ [-Wimplicit-function-declaration] ld = ldap_init(ldap_host, ldap_port); ^ ldapperf.c:336:5: warning: assignment makes pointer from integer without a cast [enabled by default] ld = ldap_init(ldap_host, ldap_port); ^ ldapperf.c:351:3: warning: implicit declaration of function ‘ldap_simple_bind_s’ [-Wimplicit-function-declaration] rc = ldap_simple_bind_s(ld, bind_dn, password ); ^ ldapperf.c:355:4: warning: implicit declaration of function ‘ldap_unbind_s’ [-Wimplicit-function-declaration] ldap_unbind_s(ld); ^ ldapperf.c: In function ‘lp_query_perform’: ldapperf.c:402:2: warning: implicit declaration of function ‘ldap_search_s’ [-Wimplicit-function-declaration] rc = ldap_search_s(ld, base_dn_p, scope, filter_p, NULL, 0, &search_result); ^ ldapperf.c:426:5: warning: implicit declaration of function ‘ldap_get_values’ [-Wimplicit-function-declaration] if ((values = ldap_get_values(ld, entry, attribute)) != NULL){ ^ ldapperf.c:426:17: warning: assignment makes pointer from integer without a cast [enabled by default] if ((values = ldap_get_values(ld, entry, attribute)) != NULL){ ^ ldapperf.c:431:5: warning: implicit declaration of function ‘ldap_value_free’ [-Wimplicit-function-declaration] ldap_value_free(values); ^ /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libldap.so: undefined reference to symbol 'ber_free' /usr/bin/ld: note: 'ber_free' is defined in DSO /lib64/liblber-2.4.so.2 so try adding it to the linker command line /lib64/liblber-2.4.so.2: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make: *** [ldapperf] Error 1
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libldap.so: undefined reference to symbol 'ber_free' /usr/bin/ld: note: 'ber_free' is defined in DSO /lib64/liblber-2.4.so.2 so try adding it to the linker command line /lib64/liblber-2.4.so.2: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make: *** [ldapperf] Error 1
You don't have libldap or its development headers installed. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On Sep 21, 2014 9:49 PM, "Arran Cudbard-Bell" <a.cudbardb@freeradius.org> wrote:
/usr/bin/ld:
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libldap.so: undefined reference to symbol 'ber_free'
/usr/bin/ld: note: 'ber_free' is defined in DSO /lib64/liblber-2.4.so.2 so try adding it to the linker command line /lib64/liblber-2.4.so.2: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make: *** [ldapperf] Error 1
You don't have libldap or its development headers installed.
-Arran
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
I did install openldap-devel and its dependencies. Will look for libldap, though
On 22.09.2014 03:42, Arran Cudbard-Bell wrote:
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libldap.so: undefined reference to symbol 'ber_free' /usr/bin/ld: note: 'ber_free' is defined in DSO /lib64/liblber-2.4.so.2 so try adding it to the linker command line /lib64/liblber-2.4.so.2: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make: *** [ldapperf] Error 1
You don't have libldap or its development headers installed.
They are installed or the build would have failed much earlier. The bug is inside the Makefile. You need to add "-llber" to the gcc command, because you need to explicitly link to all needed libraries. Grüße, Sven.
On 22 Sep 2014, at 08:02, Sven Hartge <sven@svenhartge.de> wrote:
On 22.09.2014 03:42, Arran Cudbard-Bell wrote:
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libldap.so: undefined reference to symbol 'ber_free' /usr/bin/ld: note: 'ber_free' is defined in DSO /lib64/liblber-2.4.so.2 so try adding it to the linker command line /lib64/liblber-2.4.so.2: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make: *** [ldapperf] Error 1
You don't have libldap or its development headers installed.
They are installed or the build would have failed much earlier.
The bug is inside the Makefile. You need to add "-llber" to the gcc command, because you need to explicitly link to all needed libraries.
Hm, ok, we've never had to do that with the server, and we use BER symbols in the edir stuff. Oh well... The other issues were that apparently some RFC 1823 functions have been marked as deprecated by libldap, so for newer versions of the library #define LDAP_DEPRECATED 1 is required. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
Here's a new version with the fixes from today: https://github.com/arr2036/ldapperf/archive/v0.2.tar.gz Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On Mon, 2014-09-22 at 21:40 -0400, Arran Cudbard-Bell wrote:
Here's a new version with the fixes from today:
https://github.com/arr2036/ldapperf/archive/v0.2.tar.gz
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
it fall down, go boom... [brendan@desktop ldapperf-0.2]$ ./ldapperf -H ldap1.bpk2.com -D "uid=brendan,dc=bpk2,dc=com" -w "SuperSecretPhrase" -b "dc=bpk2,dc=com" -s sub Performing 50 search(es) total, with 5 threads, with persistent connections *** Error in `./ldapperf': double free or corruption (fasttop): 0x00007f8460000900 *** ======= Backtrace: ========= /lib64/libc.so.6[0x33ee275acf] /lib64/libc.so.6[0x33ee27cdf8] /lib64/libldap-2.4.so.2(ldap_pvt_tls_set_option+0x2c3)[0x3414a36563] /lib64/libldap-2.4.so.2(ldap_int_tls_config+0x165)[0x3414a367d5] /lib64/libldap-2.4.so.2[0x3414a2a737] /lib64/libldap-2.4.so.2(ldap_int_initialize+0xd4)[0x3414a2abf4] /lib64/libldap-2.4.so.2(ldap_create+0x30)[0x3414a0fd30] /lib64/libldap-2.4.so.2(ldap_init+0x23)[0x3414a100d3] /lib64/libldap-2.4.so.2(ldap_open+0x22)[0x3414a10172] ./ldapperf[0x401ae0] ./ldapperf[0x40215d] /lib64/libpthread.so.0[0x33eee07f35] /lib64/libc.so.6(clone+0x6d)[0x33ee2f4c3d] ======= Memory map: ======== 00400000-00404000 r-xp 00000000 fd:02 18355705 /home/brendan/Downloads/ldapperf-0.2/ldapperf 00604000-00605000 r--p 00004000 fd:02 18355705 /home/brendan/Downloads/ldapperf-0.2/ldapperf 00605000-00606000 rw-p 00005000 fd:02 18355705 /home/brendan/Downloads/ldapperf-0.2/ldapperf 006b4000-006d5000 rw-p 00000000 00:00 0 [heap] 33ede00000-33ede20000 r-xp 00000000 fd:01 549176 /usr/lib64/ld-2.18.so 33ee01f000-33ee020000 r--p 0001f000 fd:01 549176 /usr/lib64/ld-2.18.so 33ee020000-33ee021000 rw-p 00020000 fd:01 549176 /usr/lib64/ld-2.18.so 33ee021000-33ee022000 rw-p 00000000 00:00 0 33ee200000-33ee3b4000 r-xp 00000000 fd:01 549177 /usr/lib64/libc-2.18.so 33ee3b4000-33ee5b3000 ---p 001b4000 fd:01 549177 /usr/lib64/libc-2.18.so 33ee5b3000-33ee5b7000 r--p 001b3000 fd:01 549177 /usr/lib64/libc-2.18.so 33ee5b7000-33ee5b9000 rw-p 001b7000 fd:01 549177 /usr/lib64/libc-2.18.so 33ee5b9000-33ee5be000 rw-p 00000000 00:00 0 33eea00000-33eea03000 r-xp 00000000 fd:01 534966 /usr/lib64/libdl-2.18.so 33eea03000-33eec02000 ---p 00003000 fd:01 534966 /usr/lib64/libdl-2.18.so 33eec02000-33eec03000 r--p 00002000 fd:01 534966 /usr/lib64/libdl-2.18.so 33eec03000-33eec04000 rw-p 00003000 fd:01 534966 /usr/lib64/libdl-2.18.so 33eee00000-33eee18000 r-xp 00000000 fd:01 549181 /usr/lib64/libpthread-2.18.so 33eee18000-33ef017000 ---p 00018000 fd:01 549181 /usr/lib64/libpthread-2.18.so 33ef017000-33ef018000 r--p 00017000 fd:01 549181 /usr/lib64/libpthread-2.18.so 33ef018000-33ef019000 rw-p 00018000 fd:01 549181 /usr/lib64/libpthread-2.18.so 33ef019000-33ef01d000 rw-p 00000000 00:00 0 33ef200000-33ef215000 r-xp 00000000 fd:01 549189 /usr/lib64/libz.so.1.2.8 33ef215000-33ef414000 ---p 00015000 fd:01 549189 /usr/lib64/libz.so.1.2.8 33ef414000-33ef415000 r--p 00014000 fd:01 549189 /usr/lib64/libz.so.1.2.8 33ef415000-33ef416000 rw-p 00015000 fd:01 549189 /usr/lib64/libz.so.1.2.8 33f0200000-33f0207000 r-xp 00000000 fd:01 549198 /usr/lib64/librt-2.18.so 33f0207000-33f0406000 ---p 00007000 fd:01 549198 /usr/lib64/librt-2.18.so 33f0406000-33f0407000 r--p 00006000 fd:01 549198 /usr/lib64/librt-2.18.so 33f0407000-33f0408000 rw-p 00007000 fd:01 549198 /usr/lib64/librt-2.18.so 33f0600000-33f0616000 r-xp 00000000 fd:01 549193 /usr/lib64/libresolv-2.18.so 33f0616000-33f0816000 ---p 00016000 fd:01 549193 /usr/lib64/libresolv-2.18.so 33f0816000-33f0817000 r--p 00016000 fd:01 549193 /usr/lib64/libresolv-2.18.so 33f0817000-33f0818000 rw-p 00017000 fd:01 549193 /usr/lib64/libresolv-2.18.so 33f0818000-33f081a000 rw-p 00000000 00:00 0 3402e00000-3402e03000 r-xp 00000000 fd:01 551479 /usr/lib64/libplds4.so 3402e03000-3403002000 ---p 00003000 fd:01 551479 /usr/lib64/libplds4.so 3403002000-3403003000 r--p 00002000 fd:01 551479 /usr/lib64/libplds4.so 3403003000-3403004000 rw-p 00003000 fd:01 551479 /usr/lib64/libplds4.so 3403200000-3403204000 r-xp 00000000 fd:01 551465 /usr/lib64/libplc4.so 3403204000-3403403000 ---p 00004000 fd:01 551465 /usr/lib64/libplc4.so 3403403000-3403404000 r--p 00003000 fd:01 551465 /usr/lib64/libplc4.so 3403404000-3403405000 rw-p 00004000 fd:01 551465 /usr/lib64/libplc4.so 3403600000-340363a000 r-xp 00000000 fd:01 551449 /usr/lib64/libnspr4.so 340363a000-3403839000 ---p 0003a000 fd:01 551449 /usr/lib64/libnspr4.so 3403839000-340383a000 r--p 00039000 fd:01 551449 /usr/lib64/libnspr4.so 340383a000-340383c000 rw-p 0003a000 fd:01 551449 /usr/lib64/libnspr4.so 340383c000-340383e000 rw-p 00000000 00:00 0 3404200000-340431e000 r-xp 00000000 fd:01 551487 /usr/lib64/libnss3.so 340431e000-340451e000 ---p 0011e000 fd:01 551487 /usr/lib64/libnss3.so 340451e000-3404523000 r--p 0011e000 fd:01 551487 /usr/lib64/libnss3.so 3404523000-3404525000 rw-p 00123000 fd:01 551487 /usr/lib64/libnss3.so 3404525000-3404527000 rw-p 00000000 00:00 0 3404600000-3404625000 r-xp 00000000 fd:01 551483 /usr/lib64/libnssutil3.so 3404625000-3404825000 ---p 00025000 fd:01 551483 /usr/lib64/libnssutil3.so 3404825000-340482b000 r--p 00025000 fd:01 551483 /usr/lib64/libnssutil3.so 340482b000-340482c000 rw-p 0002b000 fd:01 551483 /usr/lib64/libnssutil3.so 3404a00000-3404a77000 r-xp 00000000 fd:01 549785 /usr/lib64/libfreebl3.so 3404a77000-3404c76000 ---p 00077000 fd:01 549785 /usr/lib64/libfreebl3.so 3404c76000-3404c78000 r--p 00076000 fd:01 549785 /usr/lib64/libfreebl3.so 3404c78000-3404c79000 rw-p 00078000 fd:01 549785 /usr/lib64/libfreebl3.so 3404c79000-3404c7d000 rw-p 00000000 00:00 0 3405600000-3405624000 r-xp 00000000 fd:01 551494 /usr/lib64/libsmime3.so 3405624000-3405823000 ---p 00024000 fd:01 551494 /usr/lib64/libsmime3.so 3405823000-3405826000 r--p 00023000 fd:01 551494 /usr/lib64/libsmime3.so 3405826000-3405827000 rw-p 00026000 fd:01 551494 /usr/lib64/libsmime3.so 3405a00000-3405a08000 r-xp 00000000 fd:01 549827 /usr/lib64/libcrypt-2.18.so 3405a08000-3405c07000 ---p 00008000 fd:01 549827 /usr/lib64/libcrypt-2.18.so 3405c07000-3405c08000 r--p 00007000 fd:01 549827 /usr/lib64/libcrypt-2.18.so 3405c08000-3405c09000 rw-p 00008000 fd:01 549827 /usr/lib64/libcrypt-2.18.so 3405c09000-3405c37000 rw-p 00000000 00:00 0 3405e00000-3405e3a000 r-xp 00000000 fd:01 551489 /usr/lib64/libssl3.so 3405e3a000-340603a000 ---p 0003a000 fd:01 551489 /usr/lib64/libssl3.so 340603a000-340603d000 r--p 0003a000 fd:01 551489 /usr/lib64/libssl3.so 340603d000-340603e000 rw-p 0003d000 fd:01 551489 /usr/lib64/libssl3.so 340603e000-340603f000 rw-p 00000000 00:00 0 3413000000-341301c000 r-xp 00000000 fd:01 550940 /usr/lib64/libsasl2.so.3.0.0 341301c000-341321b000 ---p 0001c000 fd:01 550940 /usr/lib64/libsasl2.so.3.0.0 341321b000-341321c000 r--p 0001b000 fd:01 550940 /usr/lib64/libsasl2.so.3.0.0 341321c000-341321d000 rw-p 0001c000 fd:01 550940 /usr/lib64/libsasl2.so.3.0.0 3414000000-341400e000 r-xp 00000000 fd:01 549732 /usr/lib64/liblber-2.4.so.2.10.2 341400e000-341420d000 ---p 0000e000 fd:01 549732 /usr/lib64/liblber-2.4.so.2.10.2 341420d000-341420e000 r--p 0000d000 fd:01 549732 /usr/lib64/liblber-2.4.so.2.10.2 341420e000-341420f000 rw-p 0000e000 fd:01 549732 /usr/lib64/liblber-2.4.so.2.10.2 3414a00000-3414a4f000 r-xp 00000000 fd:01 551496 /usr/lib64/libldap-2.4.so.2.10.2 3414a4f000-3414c4e000 ---p 0004f000 fd:01 551496 /usr/lib64/libldap-2.4.so.2.10.2 3414c4e000-3414c50000 r--p 0004e000 fd:01 551496 /usr/lib64/libldap-2.4.so.2.10.2 3414c50000-3414c52000 rw-p 00050000 fd:01 551496 /usr/lib64/libldap-2.4.so.2.10.2 3675600000-3675615000 r-xp 00000000 fd:01 529014 /usr/lib64/libgcc_s-4.8.3-20140911.so.1 3675615000-3675814000 ---p 00015000 fd:01 529014 /usr/lib64/libgcc_s-4.8.3-20140911.so.1 3675814000-3675815000 r--p 00014000 fd:01 529014 /usr/lib64/libgcc_s-4.8.3-20140911.so.1 3675815000-3675816000 rw-p 00015000 fd:01 529014 /usr/lib64/libgcc_s-4.8.3-20140911.so.1 7f8460000000-7f8460021000 rw-p 00000000 00:00 0 7f8460021000-7f8464000000 ---p 00000000 00:00 0 7f8464000000-7f8464021000 rw-p 00000000 00:00 0 7f8464021000-7f8468000000 ---p 00000000 00:00 0 7f8468000000-7f8468021000 rw-p 00000000 00:00 0 7f8468021000-7f846c000000 ---p 00000000 00:00 0 7f8470000000-7f8470021000 rw-p 00000000 00:00 0 7f8470021000-7f8474000000 ---p 00000000 00:00 0 7f84777ff000-7f8477800000 ---p 00000000 00:00 0 7f8477800000-7f8478000000 rw-p 00000000 00:00 0 [stack:27026] 7f8478000000-7f8478021000 rw-p 00000000 00:00 0 7f8478021000-7f847c000000 ---p 00000000 00:00 0 7f847d6f0000-7f847d6f5000 r-xp 00000000 fd:01 525207 /usr/lib64/libnss_dns-2.18.so 7f847d6f5000-7f847d8f4000 ---p 00005000 fd:01 525207 /usr/lib64/libnss_dns-2.18.so 7f847d8f4000-7f847d8f5000 r--p 00004000 fd:01 525207 /usr/lib64/libnss_dns-2.18.so 7f847d8f5000-7f847d8f6000 rw-p 00005000 fd:01 525207 /usr/lib64/libnss_dns-2.18.so 7f847d8f8000-7f847d8fa000 r-xp 00000000 fd:01 540468 /usr/lib64/libnss_mdns4_minimal.so.2 7f847d8fa000-7f847daf9000 ---p 00002000 fd:01 540468 /usr/lib64/libnss_mdns4_minimal.so.2 7f847daf9000-7f847dafa000 r--p 00001000 fd:01 540468 /usr/lib64/libnss_mdns4_minimal.so.2 7f847dafa000-7f847dafb000 rw-p 00002000 fd:01 540468 /usr/lib64/libnss_mdns4_minimal.so.2 7f847db00000-7f847db0b000 r-xp 00000000 fd:01 540503 /usr/lib64/libnss_files-2.18.so 7f847db0b000-7f847dd0a000 ---p 0000b000 fd:01 540503 /usr/lib64/libnss_files-2.18.so 7f847dd0a000-7f847dd0b000 r--p 0000a000 fd:01 540503 /usr/lib64/libnss_files-2.18.so 7f847dd0b000-7f847dd0c000 rw-p 0000b000 fd:01 540503 /usr/lib64/libnss_files-2.18.so 7f847dd35000-7f847dd36000 ---p 00000000 00:00 0 7f847dd36000-7f847e536000 rw-p 00000000 00:00 0 [stack:27027] 7f847e536000-7f847e537000 ---p 00000000 00:00 0 7f847e537000-7f847ed37000 rw-p 00000000 00:00 0 [stack:27025] 7f847ed37000-7f847ed38000 ---p 00000000 00:00 0 7f847ed38000-7f847f538000 rw-p 00000000 00:00 0 [stack:27024] 7f847f538000-7f847f539000 ---p 00000000 00:00 0 7f847f539000-7f847fd40000 rw-p 00000000 00:00 0 [stack:27023] 7f847fd5b000-7f847fd5c000 rw-p 00000000 00:00 0 7f847fd5d000-7f847fd64000 rw-p 00000000 00:00 0 7ffff0499000-7ffff04ba000 rw-p 00000000 00:00 0 [stack] 7ffff0570000-7ffff0572000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted (core dumped)
On 23 Sep 2014, at 07:20, Brendan Kearney <bpk678@gmail.com> wrote:
On Mon, 2014-09-22 at 21:40 -0400, Arran Cudbard-Bell wrote:
Here's a new version with the fixes from today:
https://github.com/arr2036/ldapperf/archive/v0.2.tar.gz
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
it fall down, go boom...
Well, not much I can do about that, it's crashing in libldap. Try editing the makefile to link to ldap_r instead of ldap, otherwise let me know the version of libldap you're using and i'll see if I can reproduce it and report a bug to them. -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
On Tue, 2014-09-23 at 08:28 -0400, Arran Cudbard-Bell wrote:
On 23 Sep 2014, at 07:20, Brendan Kearney <bpk678@gmail.com> wrote:
On Mon, 2014-09-22 at 21:40 -0400, Arran Cudbard-Bell wrote:
Here's a new version with the fixes from today:
https://github.com/arr2036/ldapperf/archive/v0.2.tar.gz
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
it fall down, go boom...
Well, not much I can do about that, it's crashing in libldap.
Try editing the makefile to link to ldap_r instead of ldap, otherwise let me know the version of libldap you're using and i'll see if I can reproduce it and report a bug to them.
-Arran
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
/usr/lib64/libldap_r-2.4.so.2.10.2
On Tue, 2014-09-23 at 08:28 -0400, Arran Cudbard-Bell wrote:
On 23 Sep 2014, at 07:20, Brendan Kearney <bpk678@gmail.com> wrote:
On Mon, 2014-09-22 at 21:40 -0400, Arran Cudbard-Bell wrote:
Here's a new version with the fixes from today:
https://github.com/arr2036/ldapperf/archive/v0.2.tar.gz
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
it fall down, go boom...
Well, not much I can do about that, it's crashing in libldap.
Try editing the makefile to link to ldap_r instead of ldap, otherwise let me know the version of libldap you're using and i'll see if I can reproduce it and report a bug to them.
-Arran
Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
ha, it would help if i used the correct DN for my user id. now that i am, its not throwing the core dump. i dont think a bad DN should throw a coredump though. ./Downloads/ldapperf-0.2/ldapperf -H ldap1.bpk2.com -D "uid=brendan,ou=users,dc=bpk2,dc=com" -w "SuperSecretPhrase" -b "ou=users,dc=bpk2,dc=com" -s sub -S -l 100 -t 100 Performing 10000 search(es) total, with 100 threads, with persistent connections Statistics: Total time (seconds) : 2.092452 Successful searches : 10000 Successful searches/s : 4779.082149 Search failures : 0 Session init errors : 0 Bind failures : 0 server is an HP Microserver N36l, dual core 1.2 GHz Athlon, 8 GB RAM
participants (4)
-
Arran Cudbard-Bell -
Brendan Kearney -
brendan kearney -
Sven Hartge