System.DirectoryServices.Protocols - Linux performance problems with large response sizes
#43.929 aberto em 28 de out. de 2020
Métricas do repositório
- Stars
- (17.886 stars)
- Métricas de merge de PR
- (Mesclagem média 12d 11h) (661 fundiu PRs em 30d)
Description
Description
I have observed performance generally being worse on linux, to the point that large requests that succeed on Windows will time out on linux.
When searching for groups using a basic SearchRequest with the following configuration:
var searchRequest = new SearchRequest(
container,
"objectCategory=group",
SearchScope.Subtree,
new[] { "cn", });
I will get these results:
ou=Company,dc=company,dc=com (715 groups)
Windows: ~550ms
Linux: timeout
OU=Folder Access,OU=Company Security Groups,ou=Company,dc=company,dc=com (230 groups)
Windows: ~230ms
Linux: ~23s
OU=Product,ou=Company,dc=company,dc=com (20 groups)
Windows: ~90ms
Linux: ~2s
This isn't as problematic until reaching higher response sizes where the requests scale to unreasonable response times or just timeout.
I found this when investigating Windows-linux disparity in #43621.
Configuration
- .NET 5.0.0-rc.2.20475.5
- aspnet:5.0-alpine docker image
- x86_64
- libldap 2.4
- Windows Server 2019 DC