public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Keeping track of spin-down/spin-up and causes of spin-up?
@ 2008-07-08  7:25 Stefan Monnier
  2008-07-08  7:48 ` Tino Keitel
  2008-07-08  8:07 ` Elias Oltmanns
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Monnier @ 2008-07-08  7:25 UTC (permalink / raw)
  To: linux-kernel

I clearly remember seeing a reference to some system that allowed to
keep track of causes of disk spin-up, but Google seems to say
I'm deluded.  [ Or maybe my memory confused it for the facility used by
powertop to keep track of causes of CPU wake-ups? ]

In any case, I have a machine here whose disk keeps spinning back up
on a regular basis, and I can't seem to find any correlated event.
Is there a tool that can help me track down the reason why the disk
is accessed?


        Stefan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Keeping track of spin-down/spin-up and causes of spin-up?
  2008-07-08  7:25 Keeping track of spin-down/spin-up and causes of spin-up? Stefan Monnier
@ 2008-07-08  7:48 ` Tino Keitel
  2008-07-08  8:07 ` Elias Oltmanns
  1 sibling, 0 replies; 3+ messages in thread
From: Tino Keitel @ 2008-07-08  7:48 UTC (permalink / raw)
  To: linux-kernel

On Tue, Jul 08, 2008 at 03:25:18 -0400, Stefan Monnier wrote:
> I clearly remember seeing a reference to some system that allowed to
> keep track of causes of disk spin-up, but Google seems to say
> I'm deluded.  [ Or maybe my memory confused it for the facility used by
> powertop to keep track of causes of CPU wake-ups? ]
> 
> In any case, I have a machine here whose disk keeps spinning back up
> on a regular basis, and I can't seem to find any correlated event.
> Is there a tool that can help me track down the reason why the disk
> is accessed?

See Documentation/laptops/laptop-mode.txt, the notes regarding
block_dump.

Regards,
Tino

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Keeping track of spin-down/spin-up and causes of spin-up?
  2008-07-08  7:25 Keeping track of spin-down/spin-up and causes of spin-up? Stefan Monnier
  2008-07-08  7:48 ` Tino Keitel
@ 2008-07-08  8:07 ` Elias Oltmanns
  1 sibling, 0 replies; 3+ messages in thread
From: Elias Oltmanns @ 2008-07-08  8:07 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: linux-kernel

With reference to the subject, are you a physicist by any chance? ;-)

Stefan Monnier <monnier@iro.umontreal.ca> wrote:
[...]
> In any case, I have a machine here whose disk keeps spinning back up
> on a regular basis, and I can't seem to find any correlated event.
> Is there a tool that can help me track down the reason why the disk
> is accessed?

You can do

# echo 1 > /proc/sys/vm/block_dump

temporarily, so all disk accesses will be logged in dmesg. You should
seriously consider stopping klogd first because your log files will be
swamped otherwise.

That reminds me that syslog could well be the reason for your disk to
spin up frequently. But then you might have thought of that already.

Regards,

Elias

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-08  8:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08  7:25 Keeping track of spin-down/spin-up and causes of spin-up? Stefan Monnier
2008-07-08  7:48 ` Tino Keitel
2008-07-08  8:07 ` Elias Oltmanns

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox