From owner-freebsd-stable Thu Jun 17 9:38:40 1999 Delivered-To: freebsd-stable@freebsd.org Received: from freeway.dcfinc.com (cx74889-a.phnx3.az.home.com [24.1.193.157]) by hub.freebsd.org (Postfix) with ESMTP id C42E81506E for ; Thu, 17 Jun 1999 09:38:38 -0700 (PDT) (envelope-from chad@freeway.dcfinc.com) Received: (from chad@localhost) by freeway.dcfinc.com (8.8.8/8.8.8) id JAA29029; Thu, 17 Jun 1999 09:37:59 -0700 (MST) (envelope-from chad) From: "Chad R. Larson" Message-Id: <199906171637.JAA29029@freeway.dcfinc.com> Subject: Re: / not properly unmounted ? In-Reply-To: from "Chris D. Faulhaber" at "Jun 17, 99 11:39:52 am" To: jedgar@fxp.org (Chris D. Faulhaber) Date: Thu, 17 Jun 1999 09:37:58 -0700 (MST) Cc: mike@smith.net.au, sec@42.org, des@flood.ping.uio.no, freebsd-stable@FreeBSD.ORG Reply-To: chad@DCFinc.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Thu, 17 Jun 1999, Mike Smith wrote: >>> I added a sysctl variable (machdep.powerdown_delay) to allow the >>> disk cache to flush by itself before APM powering the system off. >>> After applying the attached patch (tested on 3.2-STABLE) and >>> installing a new kernel, just use 'sysctl -w >>> machdep.powerdown_delay=5' for a 5 second delay. >>> >>> I don't know if this is appropriate for actual inclusion into the >>> kernel...if so, I can see about merging it into -CURRENT and/or >>> changing to a more appropriate sysctl level (i.e. kern, hw). >> >> dingo:~>sysctl -a |grep delay >> kern.shutdown.poweroff_delay: 0 >> ... >> Guys, this seems like the wrong solution to the original problem. The first complaint was that the power-down was catching disk stuff still in cache. Setting an arbitrary delay on the way down seems inefficient at best, and possibly not sufficient. How about instead just making sure all buffers are flushed before the power-down is allowed to to occur, however long that takes? -crl -- Chad R. Larson (CRL15) 602-953-1392 Brother, can you paradigm? chad@dcfinc.com chad@larsons.org chad@anasazi.com larson1@home.net DCF, Inc. - 14623 North 49th Place, Scottsdale, Arizona 85254-2207 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message