Checking Unix Performance - Why is a process running slowly?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Checking Unix Performance - Why is a process running slowly?
# 1  
Old 08-04-2010
Checking Unix Performance - Why is a process running slowly?

Hi
Please can someone explain to me how they would go about monitoring the performance of a process in Unix. Lets say that a user is running a process in Unix but it seems to be taking a long time, whereas it completed a lot quicker yesterday. How would you go about investigating what is causing the process to run slower today in Unix?

The reason that I am confused is because there appears to be so many Unix commands that could be used when looking at performance issues. I am sure that you would use each Unix command for a specific reason but I want to know what you would do. Here are some commands that I know of:
Code:
ps -ef, top, du, ds, sar

Generally speaking, can you tell me what sequence of steps you would under take to understand why a process is running slowly and what Unix commands you would use to figure it out.

Many thanks
# 2  
Old 08-04-2010
Usually I only use top.
Top will display a chart that is updated frequently (every second by default on my machine).
It gives the CPU usage, % used by the user, % by the system, and % idle.

In the chat it will tell you what % of the cpu each process is using, and how much processor time it has consumed up until that point (that is the 4th column named time). It also gives information on memory usage, current state, PID, user, and such.
It is a very useful utility and should get you what you need to know.

One thing to note that I have found with multicore processors. The % cpu use on each process is a % of a single core. Thus with a quad core you can have two processes using 100% and still have the total cpu use read as 50%.

Hope this helps.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Md5sum is running very slowly

Hi, I am trying to get the hash values of md5 of a string. I am on Redhat Linux. using the 25-27 field in the file I need to generate the md5 and append it at the end of the record as a new field. I have tried the below code but its painfully slow. can you please suggest any alternatives or... (21 Replies)
Discussion started by: ahmedwaseem2000
21 Replies

2. Shell Programming and Scripting

Checking running process status using "grep" on multiple servers in load sharing system.

Suppose i have 3 different servers say x,y and z. Im running some process say ABC and 40 instances for the same is being created. In load sharing suppose on server x, 20 instances are running server y, 10 instances are running server z, 10 instances are running. While checking the... (1 Reply)
Discussion started by: ankitknit
1 Replies

3. Shell Programming and Scripting

Issue Running UNIX process from CRON !!

Experts, Not sure whether the problem described here is related with Unix or is it with Oracle Installation. Here is the description of the issue: A new Unix server is setup as a part of Unix and Oracle upgradation activity for one of the Application, I work on. One strange thing is... (2 Replies)
Discussion started by: Oracle_User
2 Replies

4. Shell Programming and Scripting

How to check for a specific process running or not in Unix

I have used ps -ef | grep <process name> to see if the process is still running or not. But, not being able to find anything in particular. Any clue on this... (4 Replies)
Discussion started by: Haimanti
4 Replies

5. Shell Programming and Scripting

Checking the cron process in unix

Hi Experts, Is there any command by which i can chk that the cron process is running fine? Say i have scheduled the cron to run at 10 o clock every monday,Do i need to wait for the time it runs and then chk using ps -ef? Please shed some light. Thanks Ashok. (2 Replies)
Discussion started by: Ashok_oct22
2 Replies

6. UNIX for Dummies Questions & Answers

perl scripting for checking if a process is running

Hi All, I am new to perl and have been trying to write a short script to check a process.Though i havent reached to the stage where i can match the output. I am trying to pass a variable x with value /opt/RGw/csbp-base/CSBP_BAT.01.00.05/csbp_BAT.01.00.05.jar and then pass another variable... (2 Replies)
Discussion started by: pistachio
2 Replies

7. UNIX and Linux Applications

How can i see if a unix Process Aplication i.e oracle is running in parallel

There is a unix process process in oracle running and i see running by typing ps -fea|grep GE_CLIENTES. The question is How can i see if this process is running in paralel. I dont know with a Unix command or specifically its a comand from Oracle. I kow a Parallel process ia a process that... (1 Reply)
Discussion started by: alexcol
1 Replies

8. Shell Programming and Scripting

how to get the list of process running in the server from the local machin n unix ?

how to get the list of process running in the server from the local machin n unix ? (3 Replies)
Discussion started by: guhas
3 Replies

9. Shell Programming and Scripting

checking for a running process from korn cron

cron starts a job every 10 minutes via a korn shell - I need to determine if the previous process is still running before I allow the new process to start - HELP I've tried ps -ef, etc but I have seen many situation where it says that the is running when it is not - any ideas on how to absolutely... (2 Replies)
Discussion started by: jph
2 Replies

10. Programming

Checking performance

Hi, I'm trying to check performance of processes running on my unix server. I have a system that is working at half the intended load right now and I want to know what to expect when I'll go to full load. I know I can use top but I'm not sure whether cpu usage is the right parameter to check... (1 Reply)
Discussion started by: hadarb
1 Replies
Login or Register to Ask a Question