lkml.org 
[lkml]   [2004]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Suspend2 Merge: Driver model patches 0/2
From
Date
Hi.

On Thu, 2004-09-16 at 21:32, Pavel Machek wrote:
> > Sorry. Perhaps I wasn't clear enough. I do suspend these devices. But I
> > do it later:
> >
> > Suspend all other drivers.
> > Write pageset 2 (page cache).
> > Suspend used drivers.
> > Make atomic copy.
> > Resume used drivers.
> > Write pageset 1 (atomic copy)
> > Suspend used drivers.
> > Power down all.
>
> What is problem with:
>
> Write pageset 2
> Suspend all drivers (avoiding slow operations)
> Make atomic copy
> Resume all drivers (avoiding slow operations)
> Write pageset 1
> Suspend all drivers
> Power down all.

It's always interesting trying to remember your logic for doing
something after the fact :>. If I recall correctly, it goes like this:

Writing two pagesets forces me to account for memory usage much more
carefully. I need to ensure before I start to write the image that I
know exactly what the size is and have allocated enough memory to do the
write. If I get some driver coming along and grabbing memory for who
knows what (hotplug, anyone? :>), I may get stuck halfway through
writing the image with no memory to use. I also have to be paranoid
about how much memory is available because I save that too (some of it
may have become slab by the time I do the atomic copy).

Regards,

Nigel
--
Nigel Cunningham
Pastoral Worker
Christian Reformed Church of Tuggeranong
PO Box 1004, Tuggeranong, ACT 2901

Many today claim to be tolerant. True tolerance, however, can cope with others
being intolerant.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.131 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site