From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 18 12:26:37 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 904A01065672; Thu, 18 Feb 2010 12:26:37 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-fx0-f219.google.com (mail-fx0-f219.google.com [209.85.220.219]) by mx1.freebsd.org (Postfix) with ESMTP id 4B87B8FC08; Thu, 18 Feb 2010 12:26:34 +0000 (UTC) Received: by fxm19 with SMTP id 19so1405924fxm.3 for ; Thu, 18 Feb 2010 04:26:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Uy7QNb0VlmIk0WNP+IKrQrTVXN5DDFCr5yF9u7LVtD8=; b=eEGfmDSFuqpxijXGgfbF3RLxc3CiA+jzXebRisBtg9e4SJCavs/bvYkDuHmRz/LapC nRdGaj0VYGRvG4wAX6H16I04PIP0COgnLbV4bsD6iuKJLTieiGOCueGem/FzA7hTKokD wFPX+xukyWHPVn0IYAR1P1xGB0Z5IDhPBxMtk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=A2re0YZ5UDn28XibAi8B0lyem150YdCgiKBD2/11dpKZvfgnJBcXN38Mb8rKlIpu3j BvMT8G/4+/SIN7R7IQLElwaJWrOAOu1zEJAPOQAf+jVGatN9DBWIdGg1xiHz1jVm7VoY W8eBwSW3kpSToNxdF2OnUZDmrjvguqqb0hJ4Y= MIME-Version: 1.0 Received: by 10.239.189.76 with SMTP id s12mr1006114hbh.111.1266495993844; Thu, 18 Feb 2010 04:26:33 -0800 (PST) In-Reply-To: References: <0AC6C93D50BE19A97047BAE3@HPQuadro64.dmpriest.net.uk> Date: Thu, 18 Feb 2010 12:26:33 +0000 Message-ID: From: krad To: pluknet X-Mailman-Approved-At: Thu, 18 Feb 2010 12:53:35 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, Ivan Voras Subject: Re: ZFS'inodes' (as reported by 'df -i') running out? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 12:26:37 -0000 On 18 February 2010 12:04, pluknet wrote: > On 18 February 2010 14:41, Ivan Voras wrote: > > Karl Pielorz wrote: > >> > >> Hi All, > >> > >> I originally posted this in freebsd-fs - but didn't get a reply... I > >> have a number of systems (mostly 7.2-S/amd64) running ZFS. Some of these > >> handle millions of files. > >> > >> I've noticed recently, according to "df -i" I'm starting to run out of > >> inodes on some of them (96% used). > >> > >> e.g. > >> > >> " > >> Filesystem iused ifree %iused Mounted on > >> vol/imap 1726396 69976 96% /vol/imap > >> " > >> > >> > >> I know ZFS doesn't have inodes (think they're znodes), and is capable of > >> handling more files than you can probably sensibly think about on a > >> filesystem - but is "df -i" just getting confused, or do I need to be > >> concerned? > > > > AFAIK ZFS allocates inodes when needed so df -i reports the previously > > allocated value. The number of available inodes should automatically > > grow as you add more files. > > Sorta jfyi. That's what I see on Solaris: > df: operation not applicable for FSType zfs > > > -- > wbr, > pluknet > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > Just wait until you start using dedup and get magically growing disks with df 8)) $ dd if=/dev/urandom of=/tmp/test bs=128k count=1 1+0 records in 1+0 records out 131072 bytes (131 kB) copied, 0.00317671 s, 41.3 MB/s $ zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT dedup 1016M 95.5K 1016M 0% 1.00x ONLINE - rpool 148G 103G 45.0G 69% 1.00x ONLINE - $ zfs set dedup=on dedup $ df -h /dedup Filesystem Size Used Avail Use% Mounted on dedup 984M 21K 984M 1% /dedup $ seq 1 1000| while read a ; do cp /tmp/test /dedup/test.$RANDOM; done $ df -h /dedup/ Filesystem Size Used Avail Use% Mounted on dedup 1.1G 116M 984M 11% /dedup $ zpool list dedup NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT dedup 1016M 360K 1016M 0% 921.00x ONLINE - Its only available on opensolaris dev at the moment so dont get to excited, but in a year or so i mat hit freebsd. You will need a beefy machine though with a ssd backed l2arc