From owner-freebsd-fs@FreeBSD.ORG Wed Nov 28 10:42:27 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D67D66BD; Wed, 28 Nov 2012 10:42:27 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 37CED8FC0C; Wed, 28 Nov 2012 10:42:26 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id 12so1419539wgh.31 for ; Wed, 28 Nov 2012 02:42:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=opHNldbHX/1HXuHeqEC7JGDL4PBvqcpBZeYGMXaEBTA=; b=d7Gv1IvrDOpvo4hEJXV4SpeMQRd2udMQqdXLCKIaKPr/5etqJ0jOG2R4onCV1fAy/u H8+1XZRMqX5xseG5CGf/uHC/kFLVzni/SkMFxo0qMVl51fGTYiFYiF4QC5QmIt0wN/iw IVCp69NKvCWGIIk7jQfNtn9ek4icIn7B2LlVuOK6pR+/h+m8rSOSNX9LzyP+Hwkg07AX DiNcU3UsOeW/pSBZTiFjIFcruhl7Yv02XAIFNAW7tYy0LuU/+I7b+e7LpFoIj7lJ7oHE +7+8ZGrdiM12cK63QWgrEE4ykMcEccAjJsVwIdfzOxbhFkI4wAd4PsuKBX5pMCd+lVh9 eMiQ== Received: by 10.180.86.70 with SMTP id n6mr28540205wiz.4.1354099345931; Wed, 28 Nov 2012 02:42:25 -0800 (PST) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPS id ey2sm7292412wib.9.2012.11.28.02.42.23 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Nov 2012 02:42:24 -0800 (PST) Date: Wed, 28 Nov 2012 11:42:18 +0100 From: Mateusz Guzik To: Boris Astardzhiev Subject: Re: NANDFS eats itself up Message-ID: <20121128104218.GA17871@dft-labs.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-fs@freebsd.org, gjb@semihalf.com, Grzegorz Bernacki , stanislav_galabov@smartcom.bg X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2012 10:42:27 -0000 On Wed, Nov 28, 2012 at 09:51:53AM +0200, Boris Astardzhiev wrote: > Hi, > > I've been playing with the NANDFS implementation in 10.0-CURRENT on a > SHEEVAPLUG device. So far i've noticed a strange problem having a simple > test on it. Firstly I have a partition that is 32MBs and it is mounted in > /mnt (ROOTFS is over NFS). > > I've made an repetitive scp transfer of a 2MB file to the /mnt on the > sheevaplug. After a delay of 100s the file is rm'ed from /mnt and this is > repeating for quite awhile now. It seems the FS is eating itself up. > It is unclear from your descripion: do you still scp and rm the file? If so, it may be just that the cleaner is not able to delete data fast enough. You can increase vfs.nandfs.cleaner_segments and decrease vfs.nandfs.cleaner_interval to get more cleaning. If you are not doing anything on the fs and used space is growing, can you reproduce that? Preferably on a md based device (just create a file with dd of the same size and mdconfig -f it). -- Mateusz Guzik