URL:
https://github.com/SSSD/sssd/pull/5370
Title: #5370: [WIP] nss: Use posix_fallocate() to alloc memcache file
alexey-tikhonov commented:
"""
Thank you for the investigation, @deastoe.
I think you are right and your solution makes sense.
Initially I couldn't understand why `POSIX_FALLOCATE_ATTEMPTS` doesn't help here
(SIGTERM handler merely queues `tevent`and doesn't terminate process immediately).
It seems the reason is `monitor` is [sending SIGERM
repeatedly](https://github.com/SSSD/sssd/blob/master/src/monitor/monitor....
This means `posix_fallocate()` (i.e. `fallocate()`) several times didn't finish in 10
ms. That's very weird, of course...
On the other hand, `usleep(10000)` isn't very reliable, of course. It can easily end
up with near-to-zero actual sleep time...
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5370#issuecomment-716487269