
On Tue, 17 Apr 2012, Peter Ross wrote:
On Tue, 17 Apr 2012, Chris Samuel wrote:
On 16/04/12 20:12, Russell Coker wrote:
I was using ZFSonLinux (not the FUSE version) for backups (as well as two external USB drives with btrfs and ext4), but the last couple of times I ran the rsync ZFS OOM'd my machine with 8GB of RAM.. not impressed. :-(
Under FreeBSD I restrict ARC so it eats only part of the memory (I set it to 4GB when I had 8GB)
According to http://comments.gmane.org/gmane.linux.file-systems.zfs.user/2172 under Linux it has to be put in here:
# cat /etc/modprobe.d/zfs.conf options zfs zfs_arc_max=2147483648
That may have prevented your OOM.
Just remembered this one: vfs.zfs.prefetch_disable=1 (FreeBSD sysctl, I assume ZFSonLinux has the same option) It also eases the memory pressure. I had a problem with sending data over the wire (large scp) while I had a busy VirtualBox (zimbra, our mail server) on it, I had to tune the network as well: net.graph.maxdata=65536 I can imagine that you can have similar problems as well. I found indicators in netstat errors. Regards Peter