Page 1 of 1

High RAM consumption - ZFS ?

Posted: 28 Feb 2015 20:39
by drnicolas
I see, that my RAM consumption increases a few minutes after reboot to 82-83% and stays there.
I see this now for about 36h.

Who eats up my RAM? I have 12GB of ECC-RAM and newest build 1349

I am asking this, because I see reproducable Crashs/reboots by doing backups Jobs to a ZFS volume.

Re: High RAM consumption - ZFS ?

Posted: 28 Feb 2015 23:03
by b0ssman
what are your loader.conf settings.

Re: High RAM consumption - ZFS ?

Posted: 28 Feb 2015 23:08
by drnicolas
System/Advanced/loader.conf

does not show ANYthing !!

Re: High RAM consumption - ZFS ?

Posted: 28 Feb 2015 23:20
by b0ssman
check /cf/boot/loader.conf

Re: High RAM consumption - ZFS ?

Posted: 28 Feb 2015 23:32
by b0ssman
also please respond to the posts in threads you create.

viewtopic.php?f=66&t=8339&p=50610#p50610

do no create new threads for the same problem.

Re: High RAM consumption - ZFS ?

Posted: 01 Mar 2015 07:32
by drnicolas
Okay. This is the content of /cf/boot/loder.conf:

Code: Select all

mfsroot_load="NO"
mfsroot_type="mfs_root"
mfsroot_name="/mfsroot"
hw.est.msr_info="0"
hw.hptrr.attach_generic="0"
kern.maxfiles="65536"
kern.maxfilesperproc="60000"
kern.cam.boot_delay="8000"
autoboot_delay="3"
isboot_load="YES"
zfs_load="YES"
xmfsroot_load="YES"
xmfsroot_type="xmd_root"
xmfsroot_name="/mfsroot.uzip"
geom_xmd_load="YES"
# ZFS kernel tune
vm.kmem_size="10752M"
vfs.zfs.arc_min="9216M"
vfs.zfs.arc_max="9216M"
vfs.zfs.prefetch_disable="1"
vfs.zfs.txg.timeout="5"
vfs.zfs.vdev.max_pending="10"
vfs.zfs.vdev.min_pending="4"
vfs.zfs.write_limit_override="0"
vfs.zfs.no_write_throttle="0"
In another posting there was a hint that - at least for 32bit - wrong values for some zfs-parameters can cause crashs.
At first, I thought that my problem has gone after changing the values according t the suggestions of ZFS Kernel tune. But this seems not to be true.

The crashs did not stop

Re: High RAM consumption - ZFS ?

Posted: 01 Mar 2015 07:43
by drnicolas
I just see that my ZFS volume has "synchronisation" set to disabled.
Can this cause my crashs ?

Re: High RAM consumption - ZFS ?

Posted: 01 Mar 2015 07:47
by drnicolas
Maybe the settings for vm.kmemsize and vfs.zfs.arc_min is the solution arc_min / kmem_size is about 0,85 which is close to the 82% mentioned.

Re: High RAM consumption - ZFS ?

Posted: 01 Mar 2015 08:54
by b0ssman
have you done the suggested work form the other thread?

Re: High RAM consumption - ZFS ?

Posted: 01 Mar 2015 13:25
by drnicolas
I think, I have done the homework, if you think of tweaking the Settings:

Code: Select all

login as: root
root@hp-nas's password:
Last login: Sun Mar  1 12:21:36 2015
Welcome to NAS4Free!
hp-nas: ~ #  sysctl vm.kmem_size vfs.zfs.arc_min vfs.zfs.arc_max
vm.kmem_size: 11274289152
vfs.zfs.arc_min: 9663676416
vfs.zfs.arc_max: 9663676416

High RAM consumption - ZFS ?

Posted: 02 Mar 2015 09:00
by b0ssman
But you have not removed the 4gb memory stick.


Sent from my iPhone using Tapatalk

Re: High RAM consumption - ZFS ?

Posted: 05 Mar 2015 21:43
by drnicolas
Yes, I hav a 4GB Stick. But I think NAS4Free is installed there and the stick is needed for boot

Re: High RAM consumption - ZFS ?

Posted: 06 Mar 2015 09:09
by b0ssman
memory as in ram

do you even read the posts in your other threads

viewtopic.php?f=66&t=8339&p=50610#p50615