URL:
https://github.com/SSSD/sssd/pull/5552
Title: #5552: files: split update into batches
elkoniu commented:
"""
Test setup: Fedora 32 virtual machine, 1 CPU, 2G RAM
Estimated time needed to mark domain as inconsistent:
|Version|30 + 100 users|30 + 250 users|30 + 500 users|
|:---:|:---:|:---:|:---:|
|Vanilla|103ms|161ms|124ms|
|Batching|0,4ms|0,9ms|0,4ms|
Time consumed by calling operations on `X` users:
```
time for N in `seq X`; do useradd test-user-$N; done
time for N in `seq X`; do userdel -rf test-user-$N; done
```
|Version|100 useradd|100 userdel|250 useradd|250 userdel|500 useradd|500 userdel|
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
|Vanilla|1m41.923s|2m4.702s|6m36.025s|7m8.865s|19m17.027s|18m52.852s|
|Batching|2m57.306s|2m54.875s|9m13.329s|8m52.207s|24m13.363s|24m13.268s|
Result:
- marking domain as inconsistent is instant which solves
https://github.com/SSSD/sssd/issues/5091
- time needed for add / delete users in bash loop has increased by minimum 25%
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5552#issuecomment-863841885