LinHES Forums
http://forums.linhes.org/

Analyze disk usage with iotop
http://forums.linhes.org/viewtopic.php?f=21&t=22733
Page 1 of 1

Author:  gwirth [ Sat Aug 25, 2012 12:03 pm ]
Post subject:  Analyze disk usage with iotop

My hard drive seems to be showing signs of excessive activity even when the system is idle. I would like to see what is causing all that activity. I have used iotop before on other systems for this analysis but the package doesn't appear in either the core or extra repositories for LinHES 7.4.

How would I go about installing iotop in a LinHES 7.4 system without risking damage to my installation by introducing some other repositories?

Gus

Author:  brfransen [ Sat Aug 25, 2012 2:07 pm ]
Post subject:  Re: Analyze disk usage with iotop

gwirth wrote:
How would I go about installing iotop in a LinHES 7.4 system without risking damage to my installation by introducing some other repositories?

Open a feature request: http://www.linhes.org/projects/linhes/issues/new

Author:  gwirth [ Sat Aug 25, 2012 3:24 pm ]
Post subject:  Re: Analyze disk usage with iotop

I guess I don't really need a package. iotop is a Python program that runs easily from a users directory. I got the tarball here:

http://guichaz.free.fr/iotop/

and just untarred and ran it from a directory off of my home directory.

Example, starting in the home directory:
Code:
$ mkdir -p src/iotop
$ cd src/iotop
$ wget http://guichaz.free.fr/iotop/files/iotop-0.4.4.tar.bz2
$ tar jxvf iotop-0.4.4.tar.bz2
$ cd iotop-0.4.4
$ sudo ./iotop.py -o


With that information I find that [kjournald] seems to be doing most of the I/O followed by "runsv mythbackend". Not sure what is going on with that one, either some kind of polling or logging. I might investigate later.

Author:  JerryF [ Tue Aug 28, 2012 8:24 pm ]
Post subject:  Re: Analyze disk usage with iotop

gwirth wrote:
My hard drive seems to be showing signs of excessive activity even when the system is idle.

I've noticed the same thing on my system. Haven't had a chance to try iotop yet to investigate (thanks for the instructions), but I can hear the hard drive head moving/seeking on a regular interval every 1-2 seconds. I'm pretty sure this was not happening on 7.0.x and started sometime around upgrading to 7.1 or 7.2. I wonder if it might be related to the new style/verbosity of LinHES logging?

Please post back if you find out anything else. I'd like to resolve it.

Author:  graysky [ Wed Aug 29, 2012 12:41 am ]
Post subject:  Re: Analyze disk usage with iotop

Well, for one, why not use the official Arch PKGBUILD for iotop and it installed properly? Does LinHES ship python2 as python?

To your question, look at the command that dictates mythfrontend's behavior. If this case it's the runit file for mythfrontend I think... if you're right, it very likely has a log file associated with mythfrontend (something like this, /usr/bin/mythfrontend -l /var/log/mythfrontend.log). You can either manually edit the service file and:

1) Remove the logfile
2) Find out where it is logging and make a symlink to tmpfs on the filesystem itself. For example if it is logging to /var/log/mythfrontend.log just stop the service, delete the logfile and issue this command before restarting it, `sudo ln -s /var/log/mythfrontend.log /dev/shm/mythfrontend.log`

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/