Solved

Linux profiler tools

Posted on 2010-08-28
3
626 Views
Last Modified: 2012-05-10
I would like to know if there are any good tools that can report file accesses on a linux OS such as ubuntu.

i need to know the files access along with file operations..  i would also like to know which files were accesses from the cache and which files are from disk. I need to be able to determine all the lower level operations.

thanks in advance.
0
Comment
Question by:myship
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
mcuk_storm earned 250 total points
ID: 33549426
you can use strace to attach onto a process to monitor activity:
strace -fF -p <pid> -e open

will attach onto a process and monitor it and anything it forks, and show file open activity.

0
 

Author Comment

by:myship
ID: 33604760
would i be able to monitor what files are being accessed?
what files are in the cache?
...
0
 
LVL 7

Assisted Solution

by:askb
askb earned 250 total points
ID: 33780958
If you want to use a separate program and get the syscall output, then strace as above should be good!

or

If you want to compile your program with a profiler:
http://www.cs.utah.edu/dept/old/texinfo/as/gprof.html
http://badgertronics.com/writings/gprof.html

or

If you want more details such as inode information with file cacheing or and diffirent on-disk strutures, you would find it out with debugfs.

Hope this helps!
 
0

Featured Post

What is a Denial of Service (DoS)?

A DoS is a malicious attempt to prevent the normal operation of a computer system. You may frequently see the terms 'DDoS' (Distributed Denial of Service) and 'DoS' used interchangeably, but there are some subtle differences.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Fine Tune your automatic Updates for Ubuntu / Debian
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

630 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