URL:
https://github.com/SSSD/sssd/pull/5552
Title: #5552: files: split update into batches
elkoniu commented:
"""
> Version 100 useradd 100 userdel 250 useradd 250 userdel 500
useradd 500 userdel
> Vanilla 0m43.464s 0m41.084s 2m46.462s 2m46.462s 9m55.823s 9m15.531s
> Batching 0m53.304s 0m48.572s 3m42.061s 4m16.405s 20m15.965s 18m1.768s
Why this change isn't linear?
100 useradd: +23%,
500 useradd: +102%
9m -> 20m is worrying.
To be precise it was 30 + 100 users and 30 + 500 users. I was using default 30 /etc/passwd
entries as sort of zero - reference.
9m -> 20m is worrying.
Please take a look at this comment:
https://github.com/SSSD/sssd/pull/5552#discussion_r605794536
I think when I was spamming SSSD with useradd / userdell commands end result was multiple
batching tasks running in parallel, where each one was doing some database operations.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5552#issuecomment-814033099