Solved

Linux profiler tools

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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-…
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é.
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

920 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

15 Experts available now in Live!

Get 1:1 Help Now