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

Re: slapd lightweight dispatcher

Aaron Richton wrote:
One thing I'll note about multi-conn is that it requires a variable in
connection.c to be set to the number of cpu's on the system where slapd
will be run. I think this should instead be changed to a parameter in

Ideally, this would be grokked (perhaps sysconf(3c) could be used). But I'm not sure how portable this is/could be...POSIX specifies the call, but I don't think the variables in question are specified.

This has zero chance of working portably. Especially given the ability on some multiprocessor systems to configure processor sets and partition jobs among sets.

Again, if we eliminate connections_mutex, then the multi-conn code's reason for existence also disappears. Simpler is better.

 -- Howard Chu
 Chief Architect, Symas Corp.  http://www.symas.com
 Director, Highland Sun        http://highlandsun.com/hyc
 OpenLDAP Core Team            http://www.openldap.org/project/