
동일한 호스트에 두 개의 VM(VM A와 B)이 있습니다. rsync
VM B(A에서 rsync 데몬이 실행됨)에서 해당 VM 사이를 이동 하려고 합니다 .
B$ rsync -rvut user@A::src dest/
몇 초 동안 잘 작동하고 여러 파일을 복사한 다음 갑자기 작동이 멈춥니다(또는 몇 MB/s에서 몇 kB/s로 느려짐). 프로세스를 종료한 다음 rsync
명령을 다시 시작하면 여러 파일에 문제가 없다가 다시 멈춥니다.
나는 그것이 IO 로드 문제(동일 호스트)라고 생각하며, 10초마다 동기화를 재개하지 않도록 IO 로드를 조정하기 위해 뭔가( nice
, ionice
또는 이와 유사한 것을 사용하여)를 할 수 있는지 궁금합니다.
감사합니다
편집하다
몇 가지 로그가 있습니다.
[...]
recv_files(pdf/dir1/file1b.pdf)
pdf/dir1/file1b.pdf
data recv 32768 at 0
data recv 32768 at 32768
data recv 32768 at 65536
data recv 32768 at 98304
data recv 32768 at 131072
data recv 22278 at 163840
186118 100% 550.78kB/s 0:00:00 (xfer#51, to-check=89/102979)
got file_sum
set modtime of pdf/dir1/.file1b.pdf.SYo81u to (1387400862) Wed Dec 18 22:07:42 2013
renaming pdf/dir1/.file1b.pdf.SYo81u to pdf/dir1/file1b.pdf
touch_up_dirs: pdf/dir1 (9719)
set modtime of pdf/dir1 to (1387400873) Wed Dec 18 22:07:53 2013
recv_files(pdf/dir2)
recv_files(pdf/dir2/file2a.pdf)
pdf/dir2/file2a.pdf
0 0% 0.00kB/s 0:00:00
data recv 32768 at 0
data recv 32768 at 32768
65536 36% 56.69kB/s 0:00:01
data recv 32768 at 65536
98304 55% 34.30kB/s 0:00:02
data recv 32768 at 98304
131072 73% 27.88kB/s 0:00:01
data recv 32768 at 131072
data recv 14216 at 163840
178056 100% 37.87kB/s 0:00:04 (xfer#52, to-check=88/102979)
got file_sum
set modtime of pdf/dir2/.file2a.pdf.A1lhL9 to (1387404392) Wed Dec 18 23:06:32 2013
renaming pdf/dir2/.file2a.pdf.A1lhL9 to pdf/dir2/file2a.pdf
recv_files(pdf/dir2/file2b.pdf)
pdf/dir2/file2b.pdf
0 0% 0.00kB/s 0:00:00
data recv 32768 at 0
32768 51% 2.84kB/s 0:00:10
data recv 30261 at 32768
63029 100% 5.46kB/s 0:00:11 (xfer#53, to-check=87/102979)
got file_sum
set modtime of pdf/dir2/.file2b.pdf.wx2GN3 to (1387404395) Wed Dec 18 23:06:35 2013
renaming pdf/dir2/.file2b.pdf.wx2GN3 to pdf/dir2/file2b.pdf
recv_files(pdf/dir2/file2c.pdf)
pdf/dir2/file2c.pdf
0 0% 0.00kB/s 0:00:00
data recv 32768 at 0
32768 17% 0.34kB/s 0:07:37
data recv 32768 at 32768
65536 35% 0.20kB/s 0:09:53
data recv 32768 at 65536
98304 52% 0.17kB/s 0:08:27
data recv 32768 at 98304
131072 70% 0.16kB/s 0:05:41
data recv 32768 at 131072
163840 88% 0.16kB/s 0:02:22
data recv 22231 at 163840
186071 100% 0.20kB/s 0:15:14 (xfer#54, to-check=86/102979)
got file_sum
set modtime of pdf/dir2/.file2c.pdf.BrJJSL to (1387404392) Wed Dec 18 23:06:32 2013
renaming pdf/dir2/.file2c.pdf.BrJJSL to pdf/dir2/file2c.pdf
touch_up_dirs: pdf/dir2 (9720)
recv_files(pdf/dir3)
recv_files(pdf/dir3/file3.pdf)
set modtime of pdf/dir2 to (1387404395) Wed Dec 18 23:06:35 2013
pdf/dir3/file3.pdf
0 0% 0.00kB/s 0:00:00
data recv 32768 at 0
data recv 32768 at 32768
data recv 32768 at 65536
data recv 32768 at 98304
data recv 32768 at 131072
data recv 14240 at 163840
178080 100% 15.44MB/s 0:00:00 (xfer#55, to-check=85/102979)
이 로그에서 볼 수 있듯이 동기화가 점점 느려지고 거의 중단되었습니다. 이번에는 죽이지 않았습니다. 복사하는 데 15분이 걸렸으며 file2c.pdf
(182kB) file3.pdf
1초도 안 되어 복사가 다시 시작됩니다.