I have a PHP application running in Docker on two environments with the same Docker version, Docker container, OS (CentOS 7) and kernel. On one, I've discovered performance is about 5x worse. Using perf
, the system call sk_run_filter
appears to be the primary culprit for the performance. I know this is called by seccomp
, but this is also enabled and using the default profile on both servers, so known seccomp
performance concerns don't seem like the cause of this.
The only difference I was able to find between these environment was the Docker filesystem—the slow environment is using overlay instead of overlay2. We will be upgrading this in hopes that it resolves the issue, but looking to understand if this is the source of these slow sk_run_filter
calls or if something else might be the cause.
To get to the question: what would cause poor sk_run_filter
performance with Docker, and could it be the overlay
filesystem?