LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 05-01-2009, 12:35 PM   #1
di11rod
Member
 
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 207

Rep: Reputation: 32
hard drive thrashing while computer is idle


I'm running Ibex as a simple set-top box with Boxee installed. When the computer is sitting 'idle' the hard drive continues to thrash like mad. The single hard drive is tethered via USB2. The system is an AMD 3200XP with 1gb on the mobo. Checking the system monitor, everything looks normal. Swap is at 0%, memory is at 270mb. CPU is ~30% idle.

Otherwise performance appears normal. Is there any method of determining what process is reading or writing to the hard drive?

Appreciatively,

di11rod
 
Old 05-01-2009, 02:17 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,012

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
Quote:
Is there any method of determining what process is reading or writing to the hard drive?
top (in a terminal) ?
man top (in a terminal) will tell you more about how to use this useful utility.

If you are runing KDE 3.x.y then <CTRL><ESCAPE> will give you a GUI representation of what processes are running.

You have plenty of RAM so it should not be using swap which can be a cause of high HDD activity.

Most distros now come with a file-indexing thingy to enable you to find files fast.
This might be locate or slocate or something like beagle but there are others as well.

They'll all thrash your HDD whilst they try to index everything and build databases of what is located where to help give you almost instant answers to your "where is ...?" questions.

Mostly, they are set up to thrash the HDD only if you are not using it at the time. If you need access to your HDD, they (should) "back off" and let your requests to the HDD take priority, but the moment you have no need of access to the HDD, they'll be busy indexing things for you. Eventually the process will decide it has done its work, go back to sleep, and your PC will be peaceful again.
 
Old 05-02-2009, 12:47 PM   #3
di11rod
Member
 
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 207

Original Poster
Rep: Reputation: 32
found the bad guy

It was mythbackend. I used top and didn't see any single process consuming a lot of CPU or memory. But I saw a few that would bubble up to the top with frequency. kjournald was suspcious. I hadn't configured myth at all, so I didn't need that process running. After I killed it, the thrashing went away. I'm going to hold off on re-installing myth until I have a seperate hard drive for all the video recordings. Don't want it to beat the crap out of the drive supporting the OS.

For others who might come across this post, here are the steps I used:

Quote:

as root account

<top>

Watch for a while to see which process is behaving selfishly.

<q> to quit top

<ps -ef | grep mythbackend >

<kill # > where # is the process id of the mythbackend


Appreciatively,

di11rod
 
  


Reply


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
msec_find making system slow and thrashing hard drive once in a while k.king Mandriva 13 03-17-2009 04:10 PM
load Linux onto a hard drive on one computer then move the hard drive to another Ark9 Linux - Newbie 2 10-06-2008 06:56 PM
can I take a hard drive from one computer and implant it in another computer michaelbenton Linux - Hardware 5 09-26-2008 09:39 PM
Removed bad hard drive from computer, now flash drive won't mount. checkmate3001 Linux - Hardware 6 08-15-2008 12:03 AM
hard drive is thrashing after SUSE install mtdew3q Suse/Novell 4 02-13-2007 10:59 PM


All times are GMT -5. The time now is 09:05 PM.

Main Menu
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