Solved

Linux profiler tools

Posted on 2010-08-28
3
565 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
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

708 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

12 Experts available now in Live!

Get 1:1 Help Now