From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753708AbXEGCww (ORCPT ); Sun, 6 May 2007 22:52:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753729AbXEGCww (ORCPT ); Sun, 6 May 2007 22:52:52 -0400 Received: from warden-p.diginsite.com ([208.29.163.248]:53938 "HELO warden.diginsite.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1753699AbXEGCwv (ORCPT ); Sun, 6 May 2007 22:52:51 -0400 Date: Sun, 6 May 2007 19:13:51 -0700 (PDT) From: David Lang X-X-Sender: dlang@dlang.diginsite.com To: Pavel Machek cc: Nigel Cunningham , "Rafael J. Wysocki" , Linus Torvalds , Pekka J Enberg , LKML Subject: Re: Back to the future. In-Reply-To: <20070503171843.GA4355@ucw.cz> Message-ID: References: <1177567481.5025.211.camel@nigel.suspend2.net> <200704280041.17617.rjw@sisk.pl> <200704280145.26253.rjw@sisk.pl> <1177718250.4737.222.camel@nigel.suspend2.net> <20070503171843.GA4355@ucw.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 May 2007, Pavel Machek wrote: > Hi! > >> nobody is suggesting that you leave peocesses running >> while you do the snapshot, what is being proposed is >> >> 1. pause userspace (prevent scheduling) >> 2. make snapshot image of memory >> 3. make mounted filesystems read-only (possibly with >> snapshot/checkpoint) >> 4. unpause >> 5. save image (with full userspace available, including >> network) > > Including network? Your tcp peers will be really confused, then, if > you ACK packets then claim you did not get them. No, you do not want > to start network. anyone who is doing a hibernate or suspend who expect all the network connections to be working afterwords is dreaming or smokeing something. this is just another way that the failure can show up. in fact, I would say that it would probalby be a nice thing to do for intervening firewalls and external servers if a suspend closed all external TCP connections rather then leaving them dangling (eating up resources until they time out) if you software can't tolorate the network connection going away on you it will have problems in normal operation anyway, let alone when you suspend/hibernate your machine. David Lang