×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to monitor and compare performance of same command on two servers

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

RE: How to monitor and compare performance of same command on two servers

Look at the clock speed of the processors. There are a lot of processes that are very CPU intensive, and have MUCH better performance by just putting them on a fast CPU, regardless of architecture (SPARC vs Intel vs ???).

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

(OP)
Thank you Sam. You are right its because of low processor speed. I found that there is pbzip2 for parallel zipping that will utilize every core of my CPU.

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

Just think about what it's doing. The "tar" command just puts a bunch of files into one file, so it's mostly just doing IO. Not a lot of "thinking" to do. The "gzip" command on the other hand has to compress the file, which requires a lot of "thinking" to decide how best to compress it, then a bunch of processing to actually do the compression.

The "time" command will show you how much CPU a command takes. I often do this...

CODE

time gzip -9v reallybig.tar
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close