Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2011 15:56:53 +0200
From:      Gleb Kurtsou <gleb.kurtsou@gmail.com>
To:        Bruce Cran <bruce@cran.org.uk>
Cc:        freebsd-fs@freebsd.org, freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: tmpfs is zero bytes (no free space), maybe a zfs bug?
Message-ID:  <20110211135652.GA22733@tops>
In-Reply-To: <20110210165630.00000ee8@unknown>
References:  <4D36A2CF.1080508@fsn.hu> <20110119084648.GA28278@icarus.home.lan> <4D36B85B.8070201@fsn.hu> <20110210165630.00000ee8@unknown>

next in thread | previous in thread | raw e-mail | index | archive | help
On (10/02/2011 16:56), Bruce Cran wrote:
> On Wed, 19 Jan 2011 11:09:31 +0100
> Attila Nagy <bra@fsn.hu> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110211135652.GA22733>