Michael Ströder michael@stroeder.com schrieb am 11.08.2021 um 15:58 in
Nachricht 68f0b325-4ad4-7b86-d5be-a6a98aa07e99@stroeder.com:
HI!
How to profile performance of different ACLs?
In theory one could run slapd with debug symbols under control of a profiler for C code. But personally I don't have a clue which ACL processing entry points to examine more closely.
What if you measure the performance on the client side? I mean: If the client does not see a significant difference, the server's performance may be more or less the same, too. Or just measure how much I/O or CPU load the server is generating while you do your client tests. You could evaluate which ACLs are preferrable, but it does not tell you whether or where you could improve the servers ACL processing...
Regards, Ulrich
Another approach could be to derive metrics from acl-loglevel messages.
Maybe it would be preferable if monitoring were enhanced to include some break-down of processing, like: * parsing the request * preparing the request (checking whether is is valid, probably including ACLs processing time here) * executing the request
The values could be per connection or as totals (or both)
Regards, Ulrich
Any ideas?
Ciao, Michael.