LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-31-2008, 02:01 PM   #1
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
My harddrive is grinding away, and I don't know why


Eversice I upgraded to the Ubuntu Hardy Beta - my harddrive is working constantly, I guessed it's the tracker search tool indexing, but it doesn't slow down when I need the resources, and it drags my pc to his knees. When I end tracker, it still keeps working. How can I find out what process is reading from my drive?
 
Old 03-31-2008, 02:22 PM   #2
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
Top will show you what is going on.

su to root and type top. The top process will be refreshed every 10 seconds.

edit to add:
you can also do a:
ps -ef
this will list all processes and their cpu times. You can get a very good idea of what all is going on on your system with this and top.

Last edited by DotHQ; 03-31-2008 at 02:24 PM.
 
Old 03-31-2008, 02:29 PM   #3
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Original Poster
Rep: Reputation: 49
Well kjournald is running, I knew that... but I didn't think this could possibly be it. This PC is up for 15 hours - it should have had plenty of time for every-day maintenance.
Isn't there a way to see what processes are reading/writing to the hdd?
 
Old 03-31-2008, 03:14 PM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
You can see every process that is accessing your disk using lsof:
Code:
lsof /dev/hda#
But it'll throw out a lot of processes! Otherwise, iostat will show input/output statistics (hence the name) for a particular disk/partition:
Code:
iostat -m -p /dev/hda
I haven't yet read enough of the manpage to figure out how to get iostat to show which processes are doing the most writing/reading; I'm pretty sure it's possible though.

This page lists a few alternatives that you might like to explore (read the comments at the bottom too): http://www.xaprb.com/blog/2006/06/08...d-on-gnulinux/
 
Old 04-01-2008, 05:09 AM   #5
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
Iostat is from the device level. It shows how busy the various disk drives are.
A major known bug with iostat is that the 1st set of numbers generated are from last boot time. In other words the 1st set is generally not what you are after. So do multiple iterations of iostat.
for example:
iostat 5 >> /tmp/iostat.out
will write to the iostat.out file every 5 seconds
iostat 5 5 >> /tmp/iostat.out
will write every 5 seconds to the iostat.out file, the 2nd 5 says do to this 5 times and then end.

If Kjournal is the main process running check the cpu time used. If the time is high, it is probably the culprit.
 
Old 04-01-2008, 05:21 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Go find iotop.py and run that.
Hardy has taskstats enabled in the kernel - this will show your I/O users just like top shows CPU/memory.
If you *really* want to know what's hitting what sector(s), go get blktrace. Bit more work to configure, and probably more than you need, but interesting for the detail.

BTW, I don't see the same issue as you on the Beta.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive grinding Penguin of Wonder Linux - Hardware 15 01-06-2007 05:37 PM
System grinding to a halt DiBosco Linux - General 2 03-29-2006 02:41 AM
Sony DRU-720A k3b grinding noise Potatopopper Slackware 2 12-08-2005 04:40 AM
hard drive grinding rhythmically ipstacks Linux - Hardware 4 01-06-2005 09:24 PM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:02 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
Open Source Consulting | Domain Registration