From owner-freebsd-embedded@FreeBSD.ORG Mon Apr 6 14:21:53 2009 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FA60106570D; Mon, 6 Apr 2009 14:21:53 +0000 (UTC) (envelope-from aragon@phat.za.net) Received: from mail.geek.sh (decoder.geek.sh [196.36.198.81]) by mx1.freebsd.org (Postfix) with ESMTP id CDACF8FC0C; Mon, 6 Apr 2009 14:21:52 +0000 (UTC) (envelope-from aragon@phat.za.net) Received: from igor.geek.sh (unknown [196.209.244.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.geek.sh (Postfix) with ESMTPSA id F2C973C14D; Mon, 6 Apr 2009 16:04:11 +0200 (SAST) Message-ID: <49DA0BD6.5080303@phat.za.net> Date: Mon, 06 Apr 2009 16:04:06 +0200 From: Aragon Gouveia User-Agent: Thunderbird 2.0.0.21 (X11/20090331) MIME-Version: 1.0 To: Andrew Turner References: <20090405175014.6aef7016@fubar.geek.nz> <20090406122410.daab24b3.stas@FreeBSD.org> <20090406232508.776d57e6@fubar.geek.nz> In-Reply-To: <20090406232508.776d57e6@fubar.geek.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org, freebsd-geom@freebsd.org Subject: Re: FreeBSD NAND flash driver X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2009 14:21:54 -0000 Hi, Andrew Turner wrote: > Yes, this is intentional as NAND flash is split up to blocks. The > blocks are then split into pages. You have to erase the entire block at > a time but can write pages as required. A file system that knows about > this difference will be able to talk to nand(8) directly. What I know about file systems and UFS is pretty limited, so forgive me if what follows are silly questions. Are there any defragmentation routines in UFS that could/should be disabled when using it on a flash device? I know a file system can be optimized for space or time with tunefs(8). I imagine optimizing for space would be best for a flash device? Is there anything else other than that and your work that can improve flash support? Thanks, Aragon