How to monitor and compare performance of same command on two servers
How to monitor and compare performance of same command on two servers
(OP)
Hardware : Sun T2000 Server with Sparc 1G
OS Solaris 10
I am trying to tar and gzip oracle database file with total size of 55 gb. The sun server takes almost 5 hours to finish this process. The server is not busy with anything else when i am running this command
tar cEf - . | gzip -c > /u03/bkp/test.tar.gz
I have migrated the same database to a Red Hat Linux 4 which is running on an VM with i5 processor(2.6G). if i issue same command on this Linux box which taking only half the time of sun server.
How can i compare these servers to find out what is making sun server to take such a long time. It would be very helping if anybody can point to me what tools and what methods i can use to find out the issue.
Regards,
Yoonus
OS Solaris 10
I am trying to tar and gzip oracle database file with total size of 55 gb. The sun server takes almost 5 hours to finish this process. The server is not busy with anything else when i am running this command
tar cEf - . | gzip -c > /u03/bkp/test.tar.gz
I have migrated the same database to a Red Hat Linux 4 which is running on an VM with i5 processor(2.6G). if i issue same command on this Linux box which taking only half the time of sun server.
How can i compare these servers to find out what is making sun server to take such a long time. It would be very helping if anybody can point to me what tools and what methods i can use to find out the issue.
Regards,
Yoonus
RE: How to monitor and compare performance of same command on two servers
The "tar" command will run faster or slower based on faster or slower drives and IO system. The "gzip" command is very CPU intensive and will run faster or slower based on CPU clock speed.
From your post, if I'm reading it correctly, it's 1Ghz on the Sun T2000, and 2.6GHz on the Linux box. I believe that's why it runs in half the time right there.
RE: How to monitor and compare performance of same command on two servers
I did download and installed on my server from this site http://compression.ca/pbzip2/
compressing with this util now takes only 75 minutes where it used to take 300 minutes with gzip.
With regards to your statement "The "gzip" command is very CPU intensive and will...." how do i know if a util is cpu intensive or io intensive
RE: How to monitor and compare performance of same command on two servers
The "time" command will show you how much CPU a command takes. I often do this...
CODE