From owner-freebsd-arm@freebsd.org Mon Mar 28 17:39:31 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9629EAE142F for ; Mon, 28 Mar 2016 17:39:31 +0000 (UTC) (envelope-from lifanov@mail.lifanov.com) Received: from mail.lifanov.com (mail.lifanov.com [206.125.175.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83EDC1951 for ; Mon, 28 Mar 2016 17:39:31 +0000 (UTC) (envelope-from lifanov@mail.lifanov.com) Received: by mail.lifanov.com (Postfix, from userid 58) id 669AA239E56; Mon, 28 Mar 2016 13:39:25 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.lifanov.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.1 Received: from [127.0.0.1] (vnat600.ejoco.com [166.108.32.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.lifanov.com (Postfix) with ESMTPSA id 2EAB6239E52; Mon, 28 Mar 2016 13:39:20 -0400 (EDT) Subject: Re: Official images without noatime To: =?UTF-8?B?Sm9zw6kgUMOpcmV6?= References: <4b23b28ffae59216b5dde8f28f665330@mail.lifanov.com> <813ba9c4a1474478daa86fe685acec21@mail.yourbox.net> Cc: freebsd-arm@freebsd.org From: Nikolai Lifanov Message-ID: <56F96C46.80705@mail.lifanov.com> Date: Mon, 28 Mar 2016 13:39:18 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <813ba9c4a1474478daa86fe685acec21@mail.yourbox.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2016 17:39:31 -0000 On 03/28/16 11:10, José Pérez wrote: > Hello Nikolai, > > El 2016-03-26 13:32, Nikolai Lifanov escribió: >> Since we also default to SU-no-J, power failure can be quite bad >> during, say, installworld. > > Why? I see no relationship between noatime and higer or lower chances to > loose files while writing them. > A simple case is during install /usr/bin/cmp is ran to compare two files, atime for /usr/bin/cmp is updated during a crash, and /usr/bin/cmp is gone on next boot. I then have to copy it out of /usr/obj and into place and run installworld again. It's the handful of utilities actually *used* by installworld that do this and mounting root with noatime stops this from happening. >> With / noatime, I had my RPI2 lose files like /usr/bin/cmp, /bin/ls, >> and /bin/cat during a power loss. > > Bad luck. But, again, what is the relation with having or not noatime? > >> Since it's not even possible to cleanly shut down this platform, I'm >> for enabling noatime for / on >> at least for RPI and RPI2 platforms. > > My RPI2 shutdown cleanly with shutdown(8) or reboot(8). > It doesn't stay down if the power cable is still connected. It boots back up immediately, so the only way to shut mine down is to pull power on it. > Based on my experience, the less operations you do with a flash > memory, the longer it lives. Don't forget that flash is a technology > meant to store large files (images or video) for a few times over the > lifespan of a card. Throwing a live filesystem at it is, to say the least, > daring. > > Enabling journaling on flash storage shall be prohibited by law. > I may have been superstitious about journaling (Ian corrected me earlier), but disabling atime really helps these binaries stay around. > Let's read again together mount(8) > noatime > Do not update the file access time when reading from a > file. [blablabla] > > So, when you mount / with noatime, you are: > - speeding up your system > - extending the life of your flash card. > > Same chances to loose files. > > Regards, > > --- > José Pérez