From owner-freebsd-mobile Wed Aug 30 0:54:15 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 DF0D237B43F for ; Wed, 30 Aug 2000 00:54:09 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id BAA96731; Wed, 30 Aug 2000 01:54:08 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id BAA14369; Wed, 30 Aug 2000 01:53:48 -0600 (MDT) Message-Id: <200008300753.BAA14369@harmony.village.org> To: adsharma@sharmas.dhs.org (Arun Sharma) Subject: Re: Fwd: Suggestion for laptop suspension Cc: freebsd-mobile@FreeBSD.ORG In-reply-to: Your message of "Mon, 28 Aug 2000 23:05:05 PDT." <200008290605.XAA28354@sharmas.dhs.org> References: <200008290605.XAA28354@sharmas.dhs.org> Date: Wed, 30 Aug 2000 01:53:48 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <200008290605.XAA28354@sharmas.dhs.org> Arun Sharma writes: : On my laptop, suspending to disk is slow. It takes a whole minute, and : another minute to unsuspend--if all of core is in use. But it is much : faster when I do it not too long after the system was booted, when it has : not yet managed to use up most of core. : : This suggests that it could be nice to make the kernel empty its caches, and : mark all that core "unused", when a suspend is about to happen. I don't : know the details of how suspension works, so I am not sure this is possible, : but I think there are hooks for doing something in the kernel before a : suspend. no. that's not how things work. suspend is in the bios and has no clue about what is or isn't used, so it always does the whole thing. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message