Re: syncing the disks when entering sleep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > Really? If so then it is misdesigned.
> > 
> > Before the "don't sync" proposal, it was okay to have multiple
> > power managers.
> > 
> > Actually I have three on zaurus. There's in-kernel suspend on battery
> > critical, then there's somehing userspace in desktop environment, and
> > then I'm triggering suspends by hand using echo.
> 
> To be precise, 1 and 3 are things that override the power manager.
> 
> And if you override the power manager, you're supposed to know what you're
> doing, aren't you?

I know what I'm doing, but I'd prefer traps not being set for me.

> > > 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?

I have 3 power managers. You called that broken before.

How is power manager expected to work on zaurus, which suspends from
kernel on battery critical? echo no > sync; sync; echo mem > state;
echo yes > sync?

Its still racy..

> Why don't we just assume that the user who sets the knob knows what he's doing?
>

Because better alternatives exist. Like 'echo mem:nosync > state'.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux