Solved

linux performance - identifying highly resource consumptive programs

Posted on 2009-07-07
5
268 Views
Last Modified: 2012-05-07
Hello Experts,
I am trying to analyze the performance of a linux system, focusing on I/O.  I see some mechanisms to determine which processes are using the most I/O, however is there a way to track what program a given process is running at a point in time?  Thanks
0
Comment
Question by:markdolar
  • 2
  • 2
5 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 24798533
strace will give you lots of information on the system calls a particular process is using.

0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 75 total points
ID: 24798542
For example, if the PID of the process you want to examine is 1234, you do

strace -p 1234
0
 
LVL 12

Expert Comment

by:Let_Me_Be
ID: 24801113
Install iotop. It works like top, but for I/O.

If that is not what you are looking for, please explain what you mean by: "however is there a way to track what program a given process is running at a point in time"
0
 

Author Comment

by:markdolar
ID: 24809304
iotop *does* look like it will give me what I'm looking for.  I think you understand what I'm looking for.

However, I don't get to install anything on the system being evaluated until it's been tested/retested/verified/processed/change managed/scheduled and approved.  Turns out strace isn't available on the machine.   Guess it wasn't in the kernel build?

For the moment, I will pursue the non-trival task of getting iotop running on the machine.  In the meantime any other suggestions welcome.
0
 
LVL 12

Accepted Solution

by:
Let_Me_Be earned 425 total points
ID: 24809379
strace doesn't require any kernel components, its basically a system call monitor (it hooks between the program you want to monitor and the kernel and shows you system calls). Similar to strace is ltrace (which works for library calls instead of system calls). I don't think you could use either for performance monitoring, however you might be able to use them to see what kind of actions is a certain process doing.

strace, ltrace and iotop should be available in current distributions (if not in main repository, then definitely in some that is very well supported).
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now