Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751149AbWBLQ50 (ORCPT ); Sun, 12 Feb 2006 11:57:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751192AbWBLQ50 (ORCPT ); Sun, 12 Feb 2006 11:57:26 -0500 Received: from mx1.rowland.org ([192.131.102.7]:51976 "HELO mx1.rowland.org") by vger.kernel.org with SMTP id S1751149AbWBLQ50 (ORCPT ); Sun, 12 Feb 2006 11:57:26 -0500 Date: Sun, 12 Feb 2006 11:57:21 -0500 (EST) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Kyle Moffett , Alon Bar-Lev cc: Kernel development list Subject: Re: Flames over -- Re: Which is simpler? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1304 Lines: 28 Both of you are missing an important difference between Suspend-to-RAM and Suspend-to-Disk. Suspend-to-RAM is a true suspend operation, in that the hardware's state is maintained _in the hardware_. External buses like USB will retain suspend power, for instance (assuming the motherboard supports it; some don't). Suspend-to-Disk, by contrast, is _not_ a true suspend. It can more accurately be described as checkpoint-and-turn-off. Hardware state is not maintained. (Some systems may support a special ACPI state that does maintain suspend power to external buses during shutdown, I forget what it's called. And I down't know whether swsusp uses this state.) So for example, let's say you have a filesystem mounted on a USB flash or disk drive. With Suspend-to-RAM, there's a very good chance that the connection and filesystem will still be intact when you resume. With Suspend-to-Disk, the USB connection will terminate when the computer shuts down. When you resume, the device will be gone and your filesystem will be screwed. Alan Stern - 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/