Results 1 to 3 of 3
I'm trying to rsync between two servers like so Code: rsync -av -e ssh /path/to/dir1 root@machine2:/path/to/dir2 building file list ... done file1 file2 file3 ... There are a huge lot ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-26-2007 #1
Rsync taking up all Ram, 800MB!
rsync -av -e ssh /path/to/dir1 root@machine2:/path/to/dir2 building file list ... done file1 file2 file3 ...
The problem is that rsync is taking up all the Ram, nearly 800MB out of a 1Gb machine on the source machine and the same on the destination machine (and that's only because the other processes on the servers are taking up the rest). Here is the line from top:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 30802 root 16 0 759m 609m 736 S 0.0 60.3 2:29.90 rsync
- 02-26-2007 #2
Unix systems will always try to use approximately 90% of your RAM. It's simply making the best use of the RAM, no poin in leaving it empty! If rsyc is moving a lot of files it could benefit from the cache space so it is being assigned it. I would say if you started another few applications the memory will be spread out accordingly. It shouldn't affect the performance of other applications.
- 02-26-2007 #3
I know about the cache thing, but rsync itself is taking up 800MB, not cached.
Perhaps it's hitting a file that is large, but I thought that rsync works on timestamps, so it should just compare and recopy but still not use up 800MB!
The cache went down to practically nothing, which is not the norm from my observations.