LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-13-2009, 10:59 PM   #1
lucidology
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
Question How to tell which programs are accessing the disc a lot?


I've got a web server and the host's control panel says that I'm hitting the disk a lot. I'm not sure why this would be and want to see if it's because of apache or mysql or something else.

How can I get a count of how many times each program hits the disk?
 
Old 08-14-2009, 01:12 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Maybe sar http://linux.die.net/man/1/sar or iostat http://linux.die.net/man/1/iostat
 
Old 08-15-2009, 01:22 AM   #3
lucidology
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
It looks like atop does the trick
 
Old 08-15-2009, 03:18 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,499

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
If you have a kernel with taskstats turned on iotop might best. Python, and looks like top. No kernel patching, and identifies the individual tasks unlike iostat and sar. Recent sysstat have pidstat - might be more useful for you.
For infrequent I/O (a few a second or less), you might need blktrace - needed a bit of setting up when I looked at it a year or so ago.
 
  


Reply

Tags
disk usage


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I deleted my /etc/alternatives directory. Now a lot of programs do not work. Help? tpsomers Linux - Newbie 3 06-05-2008 10:43 AM
Problem with accessing NTFS disc cold Red Hat 1 10-29-2005 06:50 PM
accessing programs in a multiuser environment hari78 Linux - Newbie 6 04-15-2005 11:25 AM
HELP-Installing and Accessing Programs jcskid85 Linux - Software 1 09-14-2004 03:42 AM
can't install programs from disc sparkz Linux - General 3 07-07-2003 05:36 AM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration