Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running Redhat 8.0 on a 1.3 GHz Celeron with 512MB RAM. When I boot from my hard drive, the drive gets accessed continuously and it never stops (even after several hours). This causes everything to run slowly. There is lots of available memory, swap file looks ok, and there is no process hogging CPU.
Can anyone suggest how I can figure out which process is accessing the HDD? Or, does anyone know what else I need to do to solve this issue?
Note: if I boot from a floppy boot disk everything works just fine (but I don't want to do that forever!).
I know what the problem is... you're running Redhat!!!!!
No seriously, with distros like Redhat and Mandrake you can have some insanely unnecessary services running. That will eat up some RAM. Try turning off services you know you don't need. It never hurts to turn off things like Kudzu and anything with *drake in it.
Well, if you boot from a floppy and it does not do this but if you boot from the hard drive it does, that tells you its something that is either loaded at startup possibly the kernel that you have on your system from the one you might be booting from on the floppy.
The boot floppy, is this the one you created during installation ?
Have you changed anything on your system at all, maybe recompiled your kernel, startup scripts, etc ?
And how long has it done this, from first install or after the fact ?
This problem has existed right from first install. I almost gave up on Redhat right away, but I stumbled on booting from the floppy.
I just checked /var/log/messages. There are a lot of entries during boot and shutdown, but writing to this file essentially ends after login. I suppose I could compare entries to this file during floppy boot and during HDD boot.
Below are the entries from my last login. It started 15 minutes ago and HDD is still running. Actually the HDD runs even at the logon screen without any sessions running.
Mar 5 17:11:19 pbrai modprobe: modprobe: Can't locate module sound-slot-1
Mar 5 17:11:19 pbrai modprobe: modprobe: Can't locate module sound-service-1-0
Mar 5 17:11:19 pbrai modprobe: modprobe: Can't locate module sound-slot-1
Mar 5 17:11:19 pbrai modprobe: modprobe: Can't locate module sound-service-1-0
Mar 5 17:11:32 pbrai gconfd (root-1596): starting (version 1.2.1), pid 1596 user 'root'
Mar 5 17:11:32 pbrai gconfd (root-1596): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only config source at position 0
Mar 5 17:11:32 pbrai gconfd (root-1596): Resolved address "xml:readwrite:/root/.gconf" to a writable config source at position 1
Mar 5 17:11:32 pbrai gconfd (root-1596): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only config source at position 2
It was I who suggested running crontab. As root do this:
#crontab -l
If you have events scheduled as root, this will tell you.
Second, are you booting to GNOME or KDE or someother Xwindow manager?
If you are, boot to level 3 instead.
Post the output to df. As root do
#df
Finally, if you are running the graphical interface, like GNOME, on the menu from the toolbar, find the services applet, and turn off the services you do not need.
The HDD running continuously is NOT normal for Redhat or any other distro unless under some unusual load. I have run 8.0 on k6-2 500 machines while slow, they don't run the HDD excessively. My top looks like this on a XP 2100+ running RH 8.0 and only 256 MB ram. It is not running as a server or anything so processes are like a typical desktop running KDE.
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
run the following:
Code:
lsof | less
lsof lists open files, and the processes accessing those files,
which will tell you which processes are accessing your hard
drive. Unfortunately, it's not dynamic.
Read the man page (man lsof).
Nothing at all to do with linux. Hardware. Argghh. I realized this when I started comparing exactly what was happening during the floppy boot and the HDD boot. The problem seemed to start immediately after the machine chose HDD boot -- before even loading the OS.
I had HDD (master) and CD drive (slave) on IDE1. I moved CD to IDE2 and everything now works perfectly.
Sorry to put you all through that. I do appreciate your help and since I am new to Linux I learned a lot (if that's any consolation).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.