All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andreas Mohr <andi@lisas.de>, Sriram V <vshrirama@gmail.com>,
	Pierre Ossman <drzeus-list@drzeus.cx>,
	linux-kernel@vger.kernel.org
Subject: Re: Power Management with rootfs on SDMMC.
Date: Sat, 3 Jan 2009 21:43:29 +0100	[thread overview]
Message-ID: <20090103204329.GD1666@elf.ucw.cz> (raw)
In-Reply-To: <alpine.LFD.2.00.0901031217261.3179@localhost.localdomain>

On Sat 2009-01-03 12:23:39, Linus Torvalds wrote:
> 
> 
> On Fri, 2 Jan 2009, Pavel Machek wrote:
> > 
> > > (or, slightly reworded: I think it's high time for some kernel God to buy a measly
> > > netbook or some such instead of 16-core mainframes to get a feeling for the
> > > amount of issues that one hits there)
> > 
> > I have one and yes, its full of problems; see my blog post about 'evil
> > little cards'.
> 
> Btw, why do people think that CONFIG_USB_PERSIST got removed, and is now 
> always on? Exactly because of this issue, and because one kernel God (me) 
> wanted to be able to suspend their netbook.
> 
> That said, right now most flash performance is so incredibly bad that I 
> can't reasonably be expected to use that thing for anything real. They may 
> say 15-20 MB/s, but that's best-case streaming performance. Real life 
> write performance is often in the tens of kB (yes, *kilo* bytes) per 
> second. I hope it will improve, and no, it's not just about ext3 journal 
> behavior, although that certainly makes some of the issues much much 
> worse.
> 
> So no, I don't use my netbook very much. But this _is_ largely fixed ont 
> he USB side, even if you may need to do
> 
> 	echo 1 >/sys/bus/usb/devices/.../power/persist
> 
> and I argued that we should default to it for any mounted device. It's 
> hard to do, since the device doesn't even know about whether it's mounted 
> or not.

Unfortunately, that corrupts filesystems by default on devices like
olympus c-750 digital camera:

* when USB is powered, olympus unmounts its filesystem, and goes into
mass storage mode.

* when USB is unpowered, olympus mounts it back.

So you have mounted filesystem on linux side and suspend. That powers
down the usb and camera mounts the filesystem automagically... then
linux resumes, and state of in-memory caches does not match real
filesystem state...

[Now, olympus uses VFAT and probably will not write to the filesystem
unless you take a picture... with mp3 player, I'd expect mtime to be
updated on the playlist files...]
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2009-01-03 20:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-02  6:35 Power Management with rootfs on SDMMC Sriram V
2009-01-02 10:21 ` Andreas Mohr
2009-01-02 11:21   ` Pierre Ossman
2009-01-02 12:21     ` Andreas Mohr
2009-01-02 17:24   ` Pavel Machek
2009-01-03 20:23     ` Linus Torvalds
2009-01-03 20:43       ` Pavel Machek [this message]
2009-01-03 20:45         ` Alan Cox
2009-01-03 21:16           ` Linus Torvalds
2009-01-03 23:10             ` Alan Cox
2009-01-04  2:59               ` Linus Torvalds
2009-01-04 12:04                 ` Alan Cox
2009-01-04 17:53                   ` Linus Torvalds
2009-03-29 16:26     ` Andreas Mohr
2009-04-05 18:45       ` Pierre Ossman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090103204329.GD1666@elf.ucw.cz \
    --to=pavel@suse.cz \
    --cc=andi@lisas.de \
    --cc=drzeus-list@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=vshrirama@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.