Search code examples
dockerionice

Does it make sense to run a command with ionice in docker container with a bind mount


Let's say I'm archiving files from a bind mount in a docker container and want to set a priority for disk time, so I run it like:

ionice -c2 -n7 tar....

Would that work? Would the host OS consider the class/priority that comes from a container (cgroups)?


Solution

  • Tests showed that ionice did not have any significant effect on tar performance, instead, I use RAM/CPU docker container limits