Confd_mmap_schemas sporadic failure on ARM

Hello,

We see sporadic failure for mmap() inside mmap_schema when running on ARM processor because it fails to reserve the same address for all processes (we currently have 70 of them starting up at boot).
But the issue is not restricted to the boot sequence.
We have a process that is started every time a user logs in, and that process can also fail on confd_mmap_schemas because mmap() sometimes (~0,1%) cannot allocate the same address.

We use:

  • ConfD 8.0.6
  • /confdConfig/enableSharedMemorySchema = true
  • /confdConfig/enableCompressedSchema = false
  • default mmap_schema
  • our system does not persist the schema file, it is created at /tmp every boot
  • kernel 5.4.47
  • processors: powerpc (32-bit), x86_64, arm64
  • glibc 2.25
  • gcc >= 6.3

We tried with the same result:

  • CONFD_MMAP_SCHEMAS_KEEP_SIZE
  • CONFD_MMAP_SCHEMAS_FIXED_ADDR

At the time a mmap() just failed:

  • output of /proc/self/maps does not show the memory range allocated
  • mremap fails even after waiting 1 second
  • new try to mmap() fails even after waiting 1 second

We never observed the failure on powerpc or x86_64 (same ConfD version and configs, same kernel and glibc versions).

We have 2 hardware platforms using arm64 with different processors (Cortex A72 dual core, Cortex 53 single core), both have same result.

Does anyone face similar issue?
Any extra handling (user space / kernel / toolchain) is known to be needed for ARM?

Best Regards,
Ricardo