From owner-freebsd-arch@FreeBSD.ORG Wed Nov 19 06:14:40 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4237C341 for ; Wed, 19 Nov 2014 06:14:40 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1683BFA for ; Wed, 19 Nov 2014 06:14:39 +0000 (UTC) Received: from Julian-MBP3.local (50-196-156-133-static.hfc.comcastbusiness.net [50.196.156.133]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id sAJ6ETIV088770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 18 Nov 2014 22:14:32 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <546C3540.1080709@freebsd.org> Date: Wed, 19 Nov 2014 14:14:24 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-arch@freebsd.org Subject: Re: suspending threads before devices References: <201203202037.q2KKbNfK037014@svn.freebsd.org> <54676BA6.7000202@FreeBSD.org> <20141115180014.GK17068@kib.kiev.ua> <201411181721.56505.jhb@freebsd.org> <87FFDA99-ADDC-4F56-A3E8-56CCAA544542@bsdimp.com> In-Reply-To: <87FFDA99-ADDC-4F56-A3E8-56CCAA544542@bsdimp.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 06:14:40 -0000 On 11/19/14, 11:43 AM, Warner Losh wrote: > I’m almost certain you don’t want to “unmount” the filesystems. This > would invalidate all open file handles and would be mondo-bado, and > would only succeed if you forced this issue due to all the open > references. Perhaps you’re being imprecise. I think you want to > pause all the user land threads, sync the filesystems, which should > mark them as clean and allow for the battery to drain w/o too much > trouble. I believe that is what is meant.. Terry Lambert was always pushing for this, though what he wanted was for the file systems to mark themselves clean after a certain amount of idle time, even without suspend.