Re: question on flushing buffers and spinning down disk

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Thursday, September 27, 2007 - 2:16 pm

On Thu, 27 Sep 2007, Steve Calfee wrote:


Whether or not power saving should be implemented and under what 
conditions it should occur are indeed policy decisions.  However the 
decision to actually power-down a device (because the specified 
conditions have occurred) is not a policy decision -- it is an action 
to carry out a policy.


No.  You shouldn't expect users to run a program that would notice a 
particular disk drive hasn't been used in X minutes and then power it 
down.  (Although they could if they wanted to... except that there's no 
way for userspace to know when the drive was most recently used.)


The X server runs in userspace, yes.  However VT console blanking is 
part of the kernel.  So it works both ways.


I'm not sure what you mean here.  What I have described is the way
Windows works, for example.  You tell the system how long you want it
to wait before spinning down an idle drive and it takes care of
everything else; you don't have to tell it each time you want the drive
spun down.


If by "enables" you mean that userspace tells the system the value of 
n, then yes.  If you mean that userspace waits until the mouse/keyboard 
has been inactive for n seconds and tells the system to suspend it, 
then no.  (That wouldn't be an autosuspend anyway -- it would be a 
manual suspend.)


Yes.


There is such a mechanism, for USB at least.  (Not well documented yet;  
I'm working on it.)  If userspace wants to, it can disable autosuspend
and do everything manually.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: question on flushing buffers and spinning down disk, Oliver Neukum, (Mon Sep 24, 3:33 am)
Re: question on flushing buffers and spinning down disk, Oliver Neukum, (Mon Sep 24, 8:21 am)
Re: question on flushing buffers and spinning down disk, Oliver Neukum, (Mon Sep 24, 9:47 am)
Re: question on flushing buffers and spinning down disk, Oliver Neukum, (Thu Sep 27, 11:12 am)
Re: question on flushing buffers and spinning down disk, Alan Stern, (Thu Sep 27, 2:16 pm)
Re: question on flushing buffers and spinning down disk, Oliver Neukum, (Fri Sep 28, 2:47 pm)
Re: question on flushing buffers and spinning down disk, David Brownell, (Sat Sep 29, 2:03 pm)