Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Linux profiler tools

Posted on 2010-08-28
3
Medium Priority
?
634 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 1000 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 1000 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

705 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