My application architecture requires me to mount 2 folders at the same partition and move 2 files between them. I have the following mounts:
/drive2/folder1 on /var/www/myapp/folder1 type none (rw,bind) /drive2/folder2 on /var/www/myapp/folder2 type none (rw,bind)
The problem is in moving file between 2 folders
/var/www/myapp/folder2. It takes approximately 10 secs for a 1Gb file:
mv /var/www/myapp/folder1/test /var/www/myapp/folder2/
And also it produces high disk activity. However, when I am moving the same file between
/drive2/folder2, it takes less than a sec to move it.
Anyone can give me heads up on this problem?