From owner-freebsd-mobile Wed Aug 30 8:50:23 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 24EAA37B422 for ; Wed, 30 Aug 2000 08:50:20 -0700 (PDT) Received: from billy-club.village.org (billy-club.village.org [10.0.0.3]) by rover.village.org (8.9.3/8.9.3) with ESMTP id JAA98332; Wed, 30 Aug 2000 09:50:18 -0600 (MDT) (envelope-from imp@billy-club.village.org) Received: from billy-club.village.org (localhost [127.0.0.1]) by billy-club.village.org (8.11.0/8.8.3) with ESMTP id e7UFoSG06876; Wed, 30 Aug 2000 09:50:28 -0600 (MDT) Message-Id: <200008301550.e7UFoSG06876@billy-club.village.org> To: Arun Sharma Subject: Re: Fwd: Suggestion for laptop suspension Cc: "Daniel O'Connor" , freebsd-mobile@FreeBSD.ORG In-reply-to: Your message of "Wed, 30 Aug 2000 08:27:12 PDT." <20000830082712.A31339@sharmas.dhs.org> References: <20000830082712.A31339@sharmas.dhs.org> <200008300753.BAA14369@harmony.village.org> Date: Wed, 30 Aug 2000 09:50:28 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <20000830082712.A31339@sharmas.dhs.org> Arun Sharma writes: : Yes, the discussion on linux-kernel suggested that there was some empirical : evidence about this. So zero'ing as much memory as possible could result : in faster suspend/resume. I seriously doubt that this is the case. In the past I've looked at these image files, and they are just images. No compression, just bits slammed to the disk. A suspend to disk on my Sony VAIO at least always takes the same amount of time, no matter if it was just booted, or had been running to the point of needing swap. I'd be extremely suspicious of any attempts to optimize this as being a waste of time. However, you are free to write a driver that will, when it gets the suspend request, goes through the buffer cache, invalidating everything and bzeroing it. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message