On 10/31/07, Brian Visel <[EMAIL PROTECTED]> wrote: > > If I ran it every 2 seconds, the clicking stopped altogether. > > The clicking would stop in that case due to the hard disk never reaching > a state of inactivity that was long enough to cause a park. The same > thing would occur if you had a script touch a file every 2 seconds, most > likely.
I understand this, but the disk wasn't parking. I run hdparm -B 255 /dev/sda on every boot, and never hibernate or suspend. I also log the Load_Cycle_Count, and it's constant, only increasing when I reboot: Wed Oct 31 17:06:23 CET 2007 193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 15337 Wed Oct 31 17:07:24 CET 2007 193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 15337 Wed Oct 31 17:08:25 CET 2007 193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 15337 What do you think the click is? The head parking or unparking? > You touch the disk every two seconds: The disk never parks. > You touch the disk every three seconds: The disk parks, then immediately > unparks. After touching the disk, it takes 6 seconds before I hear the click. If I wait 3 seconds from the last click before touching the disk, I get 9 seconds without any click. I don't think this fits your prediction. > Now, assume you have a script that touches the disk every nine seconds, > which would mean the disk would unpark when touched, stay unparked for > about three seconds, and then park for about six seconds, at which point > your script would touch the HD again. The clicking happens in single user mode, where no scripts are running. It also happens in grub, where even less is running. > I'm curious if this is a swap issue. Assuming your laptop has enough > memory, have you tried turning off swap? I'll try it next time the clicking starts, but it was over a month between the 2 times it's happened on this hard drive. It used to happen quite a lot on the predecessor, but I left that one clicking overnight one night and it died the next day. The laptop has 2GB RAM and 1GB swap, but I've never seen the RAM full, so I doubt it's swap related. I often see a tiny amount of swap used, but the current situation is typical: $ free total used free shared buffers cached Mem: 2075752 1335600 740152 0 140656 578264 -/+ buffers/cache: 616680 1459072 Swap: 996020 0 996020 > {{{sudo swapoff -a}}} > After that, see if it still parks/unparks often (without your script > that touches the disk, obviously :-)). If it's the issue, or part of > the issue, it should decrease the number of parks/unparks, I.e., your > system should just park, and then sit there for a while. The thing is, I didn't do anything unusual today. I was compiling the same code I always compile, running the same browser I always run, listening to the same audio stream, etc, etc, but the laptop started clicking. I had gone away from it for 10 minutes, and when I came back it was ticking. It's not that I was accessing the disk more or less than usual, it does just seem to be random behaviour. Is my webcache playing up or has bug 59695 been censored? The newest comment on it now is from 2007-10-13. -- Hard drive spindown should be configurable https://bugs.launchpad.net/bugs/17216 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs