Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to reduce (disable) hdd writing (noise) all the time?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
hulk2nd
Guru
Guru


Joined: 25 Mar 2003
Posts: 512
Location: Freiburg, Germany

PostPosted: Mon Dec 01, 2003 5:10 am    Post subject: how to reduce (disable) hdd writing (noise) all the time? Reply with quote

hi there,
my notebook hard drive is going on my nerves!!! it is a 60gb hitachi disk and it is clicking nearly every 3 seconds. when i installed gentoo i decided to use reiserfs, cause i thought (one of) the advantage of a journaling filesystem is, that it doesn't write all the time like it does for example on ntfs (correct me when i'm wrong). and i'm really going mad if the notebook is next to me and is idleing but it always reads or writes something (or whatever) on the hdd and this sound comes every 3 or 5 seconds. i tried nearly every hdparm setting but i had no success until now :cry:

thanks and greets,
hulk
Back to top
View user's profile Send private message
jonash
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2003
Posts: 107

PostPosted: Mon Dec 01, 2003 5:48 am    Post subject: Reply with quote

Im using noatime option in /etc/fstab
Quote:

# noatime turns off atimes for increased performance (atimes normally aren't


Code:

jonash@centrino jonash $ cat /etc/fstab
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.13 2003/07/17 19:55:18 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
 
# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>
 
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda2               /boot           ext3            noauto,noatime          1 1
/dev/hda5               /               reiserfs        noatime                 0 0
/dev/hda3               none            swap            sw                      0 0
/dev/hda6               /home/          reiserfs        noatime                 0 0
/dev/hda7               /mnt/hda7       vfat            noauto,user,noatime,umask=0000  0 0
/dev/hda1               /mnt/hda1       vfat            noauto,user,noatime,umask=0000 0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         user,noauto,ro          0 0
 
# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0
 
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
 
none                    /dev/shm        tmpfs           defaults                0 0


and cpudyn to control power consumption via cpufreq and disk standby
You only need add or edit your /etc/init.d/cpudyn file with this lines:
Code:

TIMEOUT=60
DISKS=/dev/hda

Chose your device and you timeout
http://mnm.uib.es/~gallir/cpudyn/
After, add the cpudyn initscript to the boot runlevel
Code:

# rc-update add cpudyn boot

It works

Srry my english isnt perfect :D
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Mon Dec 01, 2003 10:42 am    Post subject: Reply with quote

i'm using noflushd (in portage) with reiserfs. the docs say, that it doesn't perform too well with journalling filesystems, from my experience it works quite well.
Back to top
View user's profile Send private message
h.u.n.t.e.r
n00b
n00b


Joined: 04 Jun 2003
Posts: 63
Location: Belgium

PostPosted: Fri Jan 16, 2004 9:39 am    Post subject: Reply with quote

I have a thinkpad R40 and I believe I also have a hitachi hd.
I'm experiencing the same problem: whenever my laptop is idle; the h d 'clicks' ; sometimes a 'hard click'.

It doesn't happens in windows xp.

I'm using ext3.


hulk2nd, did you allready found a solution?
Back to top
View user's profile Send private message
kgraehl
n00b
n00b


Joined: 13 Sep 2003
Posts: 54

PostPosted: Sun Jan 25, 2004 7:31 pm    Post subject: Reply with quote

I think I solved my laptop hard-drive always-spinning-up issue. A couple of tips:

Make sure your metalog is using buffering, because if not you will be writing to your drive every time something gets logged? (/etc/conf.d/metalog tells us to add the -a tag)

I'm not sure about this, but perhaps our cron daemon is being hit up to search some file somewhere and that spins up our disk. I turned my vixie-cron off and now my drive stays asleep.

Thirdly, things like browsing the web want to store cache on the disk? If only we could keep everything buffered!

I'm trying to get a program called noflushd that supposedly does just that, keep everything buffered. Note: the ebuild (ver 2.6.3) doesn't work with 2.6 kernels, you'll need to get it through cvs at sourceforge and get the noflushd 2.7. Hmm, perhaps I'll learn how to make an ebuild...

Does my vixie-cron really need to access the drive every so-and-so seconds or can it buffer its lovely jobs? Is there a better cron daemon in this regard?

Can somebody give me a few tips on how I can look around in my /proc or someplace for information on what's accessing my harddrive?
Back to top
View user's profile Send private message
TopherC
n00b
n00b


Joined: 29 Oct 2003
Posts: 47
Location: Cornell University

PostPosted: Mon Jan 26, 2004 3:15 am    Post subject: Reply with quote

I don't have any advice that hasn't been suggested above, but just wanted co comiserate some. My Dell Inspiron 8200 laptop also begins clicking every few minutes (it's not so bad), and I'm thinking that this is an uncommon hard drive problem. The drive has been working fine for the last nearly 2 years, so I don't feel the need to replace it. But that sound is annoying. It's a "tick-a-tick-a-tick-a" sound at about 5 Hz. FWIW, I don't notice the sound in Linux nearly as much as Win XP. But to get rid of that completely I think you'll just need a new HD.
Back to top
View user's profile Send private message
xmit
Apprentice
Apprentice


Joined: 02 Apr 2003
Posts: 158
Location: Hamburg, Germany

PostPosted: Mon Jan 26, 2004 7:23 pm    Post subject: Reply with quote

I don't think that this is a hardware problem. Use 'procinfo -n1' (emerge procinfo) and you will see, that the ide irq increments with each click noise. A few seconds later the heads return to its parking position which makes another noise.

It must be some of the services started with the 'default' runlevel that, e.g. syslogd, samba, xdm, ntpd, etc. Remove them all (rc-update del samba default), or start into the 'nonetwork' runlevel instead and the irq count does no longer change and the noise is gone when the system is idle.

I think using the 'noflashcd' package is a quite good hint. Because I have reiserfs and kernel 2.6 here, I didn't have the heart to do so yet.
Back to top
View user's profile Send private message
jonson
n00b
n00b


Joined: 29 Dec 2003
Posts: 14
Location: vancouver

PostPosted: Wed Feb 04, 2004 8:49 pm    Post subject: Reply with quote

im having the same problem... i just put a new hitachi 40gb drive into my ibook only to have it click all the time!!

i tried that suggestion, 'procinfo -n1' and my ide irc keeps going up, even when i shut down everything (only kernel stuff running), the only other thing counting up too is the VIA-PMU irq.... everything else is idle....

oh ya i unloaded all the modules before i did that too...

any ideas?
Back to top
View user's profile Send private message
h.u.n.t.e.r
n00b
n00b


Joined: 04 Jun 2003
Posts: 63
Location: Belgium

PostPosted: Wed Feb 04, 2004 9:21 pm    Post subject: Reply with quote

what happens when you boot without kde?
Back to top
View user's profile Send private message
jonson
n00b
n00b


Joined: 29 Dec 2003
Posts: 14
Location: vancouver

PostPosted: Wed Feb 04, 2004 10:19 pm    Post subject: Reply with quote

same deal... i shut down all my services in /etc/init.d then kill everything else that's not essential and run procinfo from a console....

VIA-PMU is the power management stuff for my ibook, so i disabling that in the kernel isn't an option (can't be the prob b/c my old hd used to spin down fine)

i dont really know what else to do, anyone have any ideas?
thx
Back to top
View user's profile Send private message
drakos7
Apprentice
Apprentice


Joined: 21 Feb 2003
Posts: 294
Location: Rockville, MD, USA, Earth, Sol

PostPosted: Thu Feb 05, 2004 5:42 pm    Post subject: Reply with quote

This has been discussed elsewhere also. I have a sony GRX550. The clicking is really annoying anytime I am not in the server room (when all the fans drown out all noise).
All indications point to the HD heads parking. It is not as noisy when I am in Win2k so something is being done differently.
_________________
"People demand freedom of speech as a compensation for the freedom of thought which they seldom use." Soren Kierkegaard (1813 - 1855)
Back to top
View user's profile Send private message
xmit
Apprentice
Apprentice


Joined: 02 Apr 2003
Posts: 158
Location: Hamburg, Germany

PostPosted: Thu Feb 05, 2004 7:43 pm    Post subject: Reply with quote

I have a ibm/hitachi IC25N040ATCS05-0, 40GB. I solved this problem with noflushd. Please read the 'elsewhere' thread:https://forums.gentoo.org/viewtopic.php?t=125222&highlight=
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum