How to find out bottleneck if system is taking long time in gzip

Thread Tools Search this Thread
Operating Systems Solaris How to find out bottleneck if system is taking long time in gzip
# 1  
Old 10-02-2011
How to find out bottleneck if system is taking long time in gzip

Dear All,

OS = Solaris 5.10
Hardware Sun Fire T2000 with 1 Ghz quode core

We have oracle application 11i with 10g database. When ever i am trying to take cold backup of database with 55GB size its taking long time to finish. As the application is down nobody is using the server at all except the below command.

Here is the command

tar cEf - . | gzip -c > /u03/bkp/test.tar.gz

We have test application with same configuration on another intel i3 virtual machine with redhat linux, but the same command on this vm is taking only half the time of our sun server.

How can i find out the issue with the sun server and get a solution to solve the issue

# 2  
Old 10-02-2011
the issue is the cpu. single threaded processes just take a long time... if you need a sparc server to do the work, a M3000 would be nice to replace the T2000. maybe a new T4 is also a good replacement.
This User Gave Thanks to DukeNuke2 For This Post:
# 3  
Old 10-02-2011
Thanks Duke. Hope you can help me have better understanding.

              extended device statistics                    tty         cpu
device    r/s    w/s   kr/s   kw/s wait actv  svc_t  %w  %b  tin tout  us sy wt id
sd1       0.7    4.6  111.2  185.5  0.0  0.1   22.9   0   3    0   28   0  0  0 99
sd1       2.1    4.2 1955.2 1837.4  0.0  0.1   21.7   0   8    0    0   6  1  0 93
sd1       2.3    9.8 1998.4 1839.8  0.2  0.3   38.2   1   8    0   11   6  1  0 93
sd1       7.8    2.6 1774.5  363.9  0.0  0.1   11.6   0   6    0   11   6  0  0 93

The above output is from iostat when the gzip process was processing, through out the process i was getting id 93 but on the virtual machine i was getting 99. can you just clarify to have a better understanding. I am finding it very difficult to read and understand iostat output.
# 4  
Old 10-02-2011
# 5  
Old 10-02-2011
i understand id is idle, what my question here is through out the process the cpu is 93% idle so what my understanding was that increasing cpu speed is not going to solve the problem. can you just explain to me what are the elements you are looking at to recommend a server with higher cpu speed.

It will be very helpful if you could tell me what utilities i can use to compare the two servers.

pardon me if i am asking something that i am not supposed to be , i am newbie in system performance area
# 6  
Old 10-02-2011
the performance sector is realy a wide field... you should have a look at the output of "mpstat" on the T2000. the cpu in this server uses many cores/threads to manage the workload. but it just uses one thread to do a "single threaded" workload (like a tar operation). so the cpu might be seen mostly "idle" but it is working just one thread which is realy busy... "mpstat" should give you some hints...
# 7  
Old 10-04-2011

i got an advice on how to utilize our server to get it done faster. So I used pbzip2 and it was doing the work in just 75 minutes which used to be 300 minutes with gzip
This User Gave Thanks to yoojamu For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Rm -rf is taking very long, will it timeout?

I have so many (hundreds of thousands) files and directories within this one specific directory that my "rm -rf" command to delete them has been taking forever. I did this via the SSH, my question is: if my SSH connection times out before rm -rf finishes, will it continue to delete all of those... (5 Replies)
Discussion started by: phpchick
5 Replies

2. UNIX for Dummies Questions & Answers

ls is taking long time to list

Hi, All the data are kept on Netapp using NFS. some directories are so fast when doing ls but few of them are slow. After doing few times, it becomes fast. Then again after few minutes, it becomes slow again. Can you advise what's going on? This one directory I am very interested is giving... (3 Replies)
Discussion started by: samnyc
3 Replies

3. UNIX for Dummies Questions & Answers

Job is taking long time

Hi , We have 20 jobs are scheduled. In that one of our job is taking long time ,it's not completing. If we are not terminating it's running infinity time actually the job completion time is 5 minutes. The job is deleting some records from the table and two insert statements and one select... (7 Replies)
Discussion started by: ajaykumarkona
7 Replies

4. Shell Programming and Scripting

determine the active processes on the system which are running since long time

Hi , Please help me shell script to determine the active processes on the system which are running since long time (2 Replies)
Discussion started by: itian2010
2 Replies

5. UNIX for Dummies Questions & Answers

gref -f taking long time for big file

grep -f taking long time to compare for big files, any alternate for fast check I am using grep -f file1 file2 to check - to ckeck dups/common rows prsents. But my files contains file1 contains 5gb and file 2 contains 50 mb and its taking such a long time to compare the files. Do we have any... (10 Replies)
Discussion started by: gkskumar
10 Replies

6. Shell Programming and Scripting

<AIX>Problem in purge script, taking very very long time to complete 18.30hrs

Hi, I have here a script which is used to purge older files/directories based on defined purge period. The script consists of 45 find commands, where each command will need to traverse through more than a million directories. Therefore a single find command executes around 22-25 mins... (7 Replies)
Discussion started by: sravicha
7 Replies

7. Shell Programming and Scripting

For Loop Taking Too Long

I'm new from UNIX scripting. Please help. I have about 10,000 files from the $ROOTDIR/scp/inbox/string1 directory to compare with the 50 files from /$ROOTDIR/output/tma/pnt/bad/string1/ directory and it takes about 2 hours plus to complete the for loop. Is there a better way to re-write the... (5 Replies)
Discussion started by: hanie123
5 Replies

8. Red Hat

login process taking a long time

I'm having a bit of a login performance issue.. wondering if anyone has any ideas where I might look. Here's the scenario... Linux Red Hat ES 4 update 5 regardless of where I login from (ssh or on the text console) after providing the password the system seems to pause for between 30... (4 Replies)
Discussion started by: retlaw
4 Replies

9. UNIX for Dummies Questions & Answers

fetchmail taking long time to fetchmail...

Hi peeps, We are having around 60 users. The time set to retrieve the mail is 300 sec. But it's taking around 1 hour to deliver mails. I am using debian sarge 3.1. any clues? And how it will affect if I decrease the time? My machine has got 1 p4 3.0 GHZ processor and 1 GB ram. The home... (2 Replies)
Discussion started by: squid04
2 Replies
Login or Register to Ask a Question