1

I have an Ubuntu 8.04.4 server with an md RAID5 consisting of 9 drives. While transferring a large amount of data to it (through vsftpd) I noticed very bad transfer speed fluctuation.
For example during the transfer of a 20GB archive, every couple of 100MB, the transfer would completely halt for several seconds. Then it would go back up to ~55MB/s. And this would repeat over and over again; leaving me with an overall transfer speed of like 10MB/s.
The server is on the same 1Gb LAN as the machine I am working on, so I assume the LAN is not the problem.
I have observed this behavior on this server several times in the past whenever I have to transfer large data volumes (over 200MB).

Looking at the output of iostat, top or our Cacti graphs did not give me any indication to what might cause this issue.

Any idea on how to diagnose an issue like this would be appreciated.

3 Answers 3

0

To be honest, I wouldn't use FTP transfers to measure speeds - it's an antiquated protocol, and I wouldn't be surprised if it was slowing you down.

Can you export a directory with NFS and try transferring the files that way?

3
  • Sure, I could do that. It would be helpful to see if the issue is related to vsftpd or the underlying layers. But, generally, I don't have this issue with other servers (which I access via FTP). So I should be able to resolve this with the current setup (hopefully). Nov 17, 2010 at 3:04
  • Ok, I tried it with a Samba share. Same behavior. So I don't think that level is the issue here. Nov 17, 2010 at 3:25
  • Well, I'm stumped, then. Sorry.
    – user55325
    Nov 17, 2010 at 4:01
0

Both ftp and samba do not use compression. Use rysnc with --progress and -Z flags so that compression is used and progress is reported.

If large amount of data is not large number of files but few files with large size (>2GB) then issue could be related to sparse files.

Also check 'more /proc/mdstat' when speeds are slow to ensure that speeds are not slow due to re-syncing of md array.

1
  • I'm interfacing with the server usually from Windows workstations (so no rsync). The issue can also be observed when transferring a large amount of small files (the overall data volume seems to be important here). I checked mdstat during transfers; nothing changes in there. Nov 17, 2010 at 4:14
0

I still have no idea what the root cause of the issue was. In the end I suspected the CPU of the system to be too weak (high load average, high cpu load).

Today I upgraded the system to Ubuntu 10.04 and the issue seems to have resolved itself. The performance is still not as stable as I would like it, but at average it has improved by at least a factor of 10.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .