Linux – tar operation taking extremely long time

iscsilinuxtar

Wonder if anyone can help with this issue, we running RHL 5 on HP Proliant DL580 G7 it has 2xCPU @1.87GHz 6XCORES each & 64GB RAM. lately backing up a directory (62GB) with tar
(tar -czvf filename.tgz /directory/to/backup) is taking up to 3 hours.

The directory being backed up is a LUN connect via iscsi at 1Gb/s NIC. So far i have tested the R/W to that LUN and i am getting 35MB/s to 40MB/s. viewing top tar is hitting 100% processor usage.

although i have my money on processor performance, i would like to hear some of your opnion on this. i need to uderstand why its taking 3-4 hours to complete the tar process.

any ideas?

thanks & regards.

Best Answer

You're compressing (gzip, even) 62 GB of data. At 40 MB/s, that transfer would take ~30 minutes on its own. However, gzip involves the CPU greatly. If you're pinning both cores at 100%, then there's your answer.