Re: freeze vs freezer



On Nov 27, 2007, at 17:49:18, Jeremy Fitzhardinge wrote:
Rafael J. Wysocki wrote:
Well, this is more-or-less how we all imagine that should be done eventually.

The main problem is how to implement it without causing too much breakage. Also, there are some dirty details that need to be taken into consideration.

For Xen suspend/resume, I'd like to use the freezer to get all threads into a known consistent state (where, specifically, they don't have any outstanding pagetable updates pending). In other words, the freezer as it currently stands is what I want, modulo some of these issues where it gets caught up unexpectedly. If threads end up getting frozen anywhere preempt isn't explicitly disabled, it wouldn't work for me.

The problem with "one freezer" is that "known consistent state" means something completely different to every single driver and subsystem. Xen wants it to mean "No pending page table updates and no more updates from this point forward". A network driver wants it to mean "All pending network packets DMAed out or in and the device shut down with all remaining packets queued. A SATA controller wants it to mean "All DMA quiesced and no more commands", etc.

The only way to have that work is to put minimal definitions of what state you care about in the drivers themselves. For Xen this means that you need to have an appropriately-timed suspend handler which hooks into Xen code very precisely to create and preserve the "No pending page table updates" state that you care about. It will be more work in the short term but it's the only maintainable solution in the long term IMO.

Cheers,
Kyle Moffett

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



Relevant Pages

  • netdev-2.6 queue updated
    ... Make Atmel driver use SET_NETDEV_DEV ... Robert Olsson's fix and refinement ... o Orinoco driver updates - PCMCIA initialization cleanups ...
    (Linux-Kernel)
  • netdev-2.6, wireless-2.6 queues updated
    ... I'm too slack to post a patch tonight. ... Robert Olsson's fix and refinement ... Driver version, white space, other stuff ... o Orinoco driver updates - update version and changelog ...
    (Linux-Kernel)
  • RE: Master/Detail Transactions
    ... If any of the updates fails, ... pending parent and child rows within the scope of a transaction, ... cascade newly retrieved parent identity values down to pending child rows ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: Freezing on startup
    ... are 4 updates listed for the BIOS on the HP site, ... the media card driver, which has got rid of the third missing driver ... event viewer, please one from each kind, meaning if the error repeated we ... the laptop does not get hot - I frequently sit with it for hours on my ...
    (microsoft.public.windowsxp.accessibility)
  • Re: 2008 SBS no longer boots
    ... Les Connor [SBS MVP] ... updates were installed, server restarted fine then. ... indicated, I think it is a driver issue, which is hardware related. ... Online backups for off-site is certainly admirable. ...
    (microsoft.public.windows.server.sbs)