Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jun 1999 09:37:58 -0700 (MST)
From:      "Chad R. Larson" <chad@DCFinc.com>
To:        jedgar@fxp.org (Chris D. Faulhaber)
Cc:        mike@smith.net.au, sec@42.org, des@flood.ping.uio.no, freebsd-stable@FreeBSD.ORG
Subject:   Re: / not properly unmounted ?
Message-ID:  <199906171637.JAA29029@freeway.dcfinc.com>
In-Reply-To: <Pine.BSF.4.10.9906171138210.59294-100000@pawn.primelocation.net> from "Chris D. Faulhaber" at "Jun 17, 99 11:39:52 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906171637.JAA29029>