[Date Prev][Date Next] [Chronological] [Thread] [Top]

Speed wars: NIS 1, LDAP 0



Using the nss_ldap module from rage.net...

On a PII-450 256M RAM running OpenLDAP 1.2.0's slapd:

[sopwith@atlas sopwith]$ time ./t 400
0.01user 0.00system 0:16.19elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (152major+24minor)pagefaults 0swaps

On a Pentium 166 64M RAM running ypserv 1.1.7:

[sopwith@helix ~] time ./t2 400
0.08user 0.19system 0:06.77elapsed 3%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (92major+18minor)pagefaults 0swaps

The test program simply does N iterations of getpwnam("sopwith");
getgrnam("sopwith");

This sucks. :) Has anyone profiled the nss_ldap module, libldap, or slapd?
Would a different backend help the speed? Any configuration options I
should be setting? What can I do to help improve the situation?

-- Elliot
"In film you will find four basic story lines. Man versus man, man
 versus nature, nature versus nature, and dog versus vampire."
    - Steven Spielberg