Re: syncing the disks when entering sleep

Pavel Machek
2010-02-11T14:49:58Z

Hi!

> ......
> > > > So really, I don't see anything wrong with a knob that will turn the
> > kernel
> > > > sync off entirely, because that basically means "my user space is
> > > > not broken".
> > >
> > > Because, very easily, parts of my users space may be broken.
> >
> > How exactly would they be broken?
> >
> > Why do you want to protect the users from themselves for what it's
> > worth?
> >
> > Why don't we just assume that the user who sets the knob knows what he's
> > doing?
>
> Exactly what I proposed -- if people who are root start playing with kernel settings, they'll get defined, documented behavior. If they don't like it,
> let them not play. I see no reason to idiot proof root.
>

And I see no reason to have bad interface when we can have good one.

You don't have to be idiot to do "echo disabled > sync; echo mem >
state" and then forget to undo the sync setting when it resumes
20hours later.

> The problem is if the disk is not spinning, the system is in laptop mode, and sleep is entered, it makes no sense to spin up the disk to sync it in
> embedded systems (i.e. the vendor controls all the software).
>

I agree that functionality would be nice. I don't agree with proposed interface.

--

(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html