From owner-freebsd-stable@FreeBSD.ORG Sat Feb 12 01:20:07 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDFA0106564A; Sat, 12 Feb 2011 01:20:07 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 324A28FC0C; Sat, 12 Feb 2011 01:20:06 +0000 (UTC) Received: by fxm16 with SMTP id 16so3600751fxm.13 for ; Fri, 11 Feb 2011 17:20:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=Fb8bH16kHkNThhn/Pr61q+0DAtrvIRJcx4eVF4dKyV8=; b=miVZIngBdZHSCNzlYoOmTIu+a6vU3K4Gh/2dL0lPK6lFvGbLyyecFdt20HQLXEo8km DgpOpWv8BJlI4qplEbojzKUk5yglNd6qIWktpwVFH/vhJi77fqi89LWejM+XWQggPVn9 rPH8WGDJRG8ZizgR/2ZZXBv6IBu9DGkYFVyH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=tMskGD0IkDWShS5DD6axoN4DFPD9EKoqUkCSaiPjlT0hVQF3l4dwMoADAqG6TFx0yP 1GydLfGknmN3IF1oK/zHmKPr4i/a9mgDjM0fqST+N5hkdlOfDSKw9qVt5BZhoQ1gAB8h iR9yf6Sg6NV5up27zTTcR2c4dPnTzKq7hn+s8= Received: by 10.223.98.200 with SMTP id r8mr514485fan.30.1297432640381; Fri, 11 Feb 2011 05:57:20 -0800 (PST) Received: from localhost ([91.187.13.237]) by mx.google.com with ESMTPS id n15sm370428fam.12.2011.02.11.05.57.18 (version=SSLv3 cipher=OTHER); Fri, 11 Feb 2011 05:57:19 -0800 (PST) Date: Fri, 11 Feb 2011 15:56:53 +0200 From: Gleb Kurtsou To: Bruce Cran Message-ID: <20110211135652.GA22733@tops> References: <4D36A2CF.1080508@fsn.hu> <20110119084648.GA28278@icarus.home.lan> <4D36B85B.8070201@fsn.hu> <20110210165630.00000ee8@unknown> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20110210165630.00000ee8@unknown> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@freebsd.org, freebsd-stable Subject: Re: tmpfs is zero bytes (no free space), maybe a zfs bug? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2011 01:20:07 -0000 On (10/02/2011 16:56), Bruce Cran wrote: > On Wed, 19 Jan 2011 11:09:31 +0100 > Attila Nagy wrote: > > I hope somebody can find the time to look into this, it's pretty > > annoying... > > It's also listed as a bug on OpenSolaris: > http://bugs.opensolaris.org/bugdatabase/view_bug.do;?bug_id=6804661 Could you try my patch I've mentioned above in the thread: http://marc.info/?l=freebsd-fs&m=129735686129438&w=2 I've reproduce test scenario in OpenSolaris bug report and it worked as expected for me. System: amd64, 4GB RAM, ~5GB swap /boot/loader.conf: vm.kmem_size="6G" vfs.zfs.prefetch_disable="1" vfs.zfs.txg.timeout="5" # mount -t tmpfs -o size=$((5*1024*1024*1024)) none /mnt # dd if=/dev/zero of=test bs=1m count=$((3*1024)) # dd if=test of=/dev/zero bs=1m # dd if=test of=/dev/zero bs=1m # dd if=test of=/dev/zero bs=1m top statistics: Mem: 429M Active, 272M Inact, 2889M Wired, 96K Cache, 1328K Buf, 196M Free Swap: 5120M Total, 5120M Free ZFS seems to consume most of RAM # cp test /mnt top statistics: Mem: 2808M Active, 247M Inact, 623M Wired, 104M Cache, 1328K Buf, 5052K Free Swap: 5120M Total, 619M Used, 4501M Free, 12% Inuse ZFS cache has shrinked, swap increased, most of tmpfs remains in memory # df -h /mnt Filesystem Size Used Avail Capacity Mounted on tmpfs 5.0G 3.0G 2.0G 60% /mnt Thanks, Gleb. > > -- > Bruce Cran > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"