File access in mounted volumes extremely slow, CPU bound

Hey, guys. I had the same issue on Linux. Or maybe it’s not the same problem, but it could probably help someone else in the universe.

The file access on volumes inside containers was very very slow and the file acess was normal in other folders. After days of war I found that the volume had auditing enabled… so I turned it off.

I checked with auditctl -l and I noticed the line -w /var/lib/docker -k docker. I than removed the line with auditctl -w /var/lib/docker -k docker, restarted the container and the sun shone again. Dont forget to verify the audity rules (/etc/audit/rules.d/audit.rules).