mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
961f07fb76
EnumDomainUsers currently takes too long, significantly slowing down calls to winbind's getpwent which is a core unix API. The time is taken up by a GUID lookup for every record in the cached result. The advantages of this approach are: 1. It meets the specified requirement that if a record yet to be returned by a search in progress (with a resume handle) is deleted or modified, the future returned results correctly reflect the new changes. 2. Memory footprint for a search in progress is only 16 bytes per record. But, those benefits are not worth the significant performance hit of the lookups, so this patch changes the function to run the search and cache the RIDs and names of all records matching the search when the request is made. This makes the memory footprint around 200 bytes per record or up to 2MB per concurrent search for a 100k user database. The speedup achieved by this change is around 50%, and in tandem with some winbindd improvements as part of the same task has achieved around 15x speedup for getpwent. The lost specification compliance is unlikely to cause a problem for any known usage of this RPC call. Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> |
||
---|---|---|
.. | ||
emulate | ||
gp_parse | ||
kcc | ||
netcmd | ||
provision | ||
samba3 | ||
subunit | ||
tests | ||
__init__.py | ||
colour.py | ||
common.py | ||
compat.py | ||
dbchecker.py | ||
descriptor.py | ||
dnsserver.py | ||
domain_update.py | ||
drs_utils.py | ||
forest_update.py | ||
getopt.py | ||
gp_ext_loader.py | ||
gp_sec_ext.py | ||
gpclass.py | ||
graph.py | ||
hostconfig.py | ||
idmap.py | ||
join.py | ||
logger.py | ||
mdb_util.py | ||
ms_display_specifiers.py | ||
ms_forest_updates_markdown.py | ||
ms_schema_markdown.py | ||
ms_schema.py | ||
ndr.py | ||
ntacls.py | ||
remove_dc.py | ||
samdb.py | ||
schema.py | ||
sd_utils.py | ||
sites.py | ||
subnets.py | ||
tdb_util.py | ||
upgrade.py | ||
upgradehelpers.py | ||
uptodateness.py | ||
xattr.py |