I'm running a postgres 9.5 database in IBM Containers. I modified the DockerHub image so that it will work with the Volumes feature offered by the Containers service (had to work around permissions issues related to this questions: Can I change owner of directory that is mounted on volume in IBM containers?).
However, I'm now seeing very poor performance. For example, here is the latest output of running the removal of a newly initialized postgres db (~20MB), varies but I haven't seen anything faster than 3 minutes:
/tmp/vol/pgdata $ time rm -rf *
real 18m 1.38s
user 0m 0.00s
sys 0m 0.25s
Is it possible that I need to configure something different in the image/container to get reasonable performance? Has anybody else had luck running a database on a Volume?