This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

ZFS is not using RAM

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
kumuller
NewUser
NewUser
Posts: 5
Joined: 12 Jul 2012 22:22
Status: Offline

ZFS is not using RAM

Post by kumuller »

I have a Stripe Pool:

8 * 2TB WD 4k Sektors

8 GB Ram
2,5 GB Swap
Full Installation Rev. 358

When i copy NAS to PC Performance is about 100MB/s via SMB. (Testfile: 1 *.mkv with 5GB)

But when copy from PC to NAS the Performance is during the copy between 45 - 120MB/s and the WebGUI says that the System only use ca. 20% of the Ram.

With FTP the same.

With ZFSkernTune the same.

Here my loader.conf

kernel="kernel"
bootfile="kernel"
kernel_options=""
kern.hz="100"
hw.est.msr_info="0"
hw.hptrr.attach_generic="0"
kern.maxfiles="65536"
kern.maxfilesperproc="50000"
kern.cam.boot_delay="8000"
autoboot_delay="5"
isboot_load="YES"

# ZFS kernel tune
vm.kmem_size="6656M"
vfs.zfs.arc_min="5120M"
vfs.zfs.arc_max="5120M"
vfs.zfs.prefetch_disable="1"
vfs.zfs.zil_disable="0"
vfs.zfs.txg.timeout="5"
vfs.zfs.vdev.max_pending="10"
vfs.zfs.vdev.min_pending="4"
vfs.zfs.write_limit_override="0"


Why ZFS is not using more RAM? Or is the WebGui wrong by telling me using 20% Ram?

Regards
Jens
ASUS P5E WS Pro, 8GB DDR2 Kingston HyperX, 8*WD EARX, 4GB SSD IDE Full Installation, Vers. 358 (64Bit)

torf74
NewUser
NewUser
Posts: 9
Joined: 22 Oct 2012 05:48
Status: Offline

Re: ZFS is not using RAM

Post by torf74 »

You are using the 64-bit version right?

kumuller
NewUser
NewUser
Posts: 5
Joined: 12 Jul 2012 22:22
Status: Offline

Re: ZFS is not using RAM

Post by kumuller »

Yes. It is the 64Bit version.
ASUS P5E WS Pro, 8GB DDR2 Kingston HyperX, 8*WD EARX, 4GB SSD IDE Full Installation, Vers. 358 (64Bit)

User avatar
lux
Advanced User
Advanced User
Posts: 193
Joined: 23 Jun 2012 11:37
Location: Bielefeld, Germany
Contact:
Status: Offline

Re: ZFS is not using RAM

Post by lux »

try vfs.zfs.prefetch_disable="0"

don't disable prefetch with 8Gb RAM

my loader.conf

Code: Select all

#ZFS kernel tune
vm.kmem_size="7G"
vfs.zfs.arc_min="5G"
vfs.zfs.arc_max="6G"
vfs.zfs.prefetch_disable="0"
vfs.zfs.txg.synctime="2"
vfs.zfs.txg.timeout="6"
vfs.zfs.vdev.min_pending="1"
vfs.zfs.vdev.max_pending="1"
my RAM usage is 80-90% with this settings
Home:11.3.x.7538/emb@32GB USB|1270v2@X9SCA-F|ECC32GB|i340-T4[lagg@GS108Tv2&smb-mch]|M1015@IT|9HDD~40TB@3xRaidZ1+1HDD+2SSD i335&i520+1xi800P@ZIL|~44W idle@SS-400FL2|Nanoxia Deep Silence 6B|24/7
Services: CIFS, FTP, TFTP, SSH, NFS, Rsync, Syncthing, Webserver, BitTorrent, VirtualBox | Extensions: OBI, TheBrig[certbot, Asterisk] | Extensions via vBox: Pi-hole, Jellyfin & zigbee2mqtt @DebianVM's
Test:12.x/emb@16GB USB|X3 420e@M4A88TD-V|16GB|i350-T2|M1015@IT|8xHDD+3xSSD[different Size&Brand]RaidZ1+2|for TESTing only

davidb
Starter
Starter
Posts: 55
Joined: 05 Jul 2012 17:51
Status: Offline

Re: ZFS is not using RAM

Post by davidb »

I finally attempted to do some ZFS tuning now that i have updated to v431, since i have noticed that my memory usage never got above 48% or so. I loaded the module and changed it to 8GB for ram and set "disable prefetch" to false. After reboot and running some tests, although i am now using 80%+ RAM, speed has not increased overall.
I copied the "7G","5G", & "6G" settings from the post above, but left the txg.synctime,timeout,vdev.min/max_pending at the default values.
Could anyone point me in the right direction for tuning those parameters? i'd like to better understand what they do.

Any other tips for increasing speed?

Specs:
x64-full on Intel(R) Pentium(R) CPU G620 @ 2.60GHz
ASRock H77 Pro4/MVP Bios: P1.10 03/19/2012
8GB Kingston DDR3@1066MHz
Boot Drive: SSD 32G|CRUCIAL CT032V4SSD2
Storage: 4x WD Red 2TB drives in RaidZ1
Network: NIC INTEL|EXPI9402PTBLK DUAL GigaBit (lagg as LACP)

erezsolan
NewUser
NewUser
Posts: 5
Joined: 05 Nov 2012 22:55
Status: Offline

Re: ZFS is not using RAM

Post by erezsolan »

just a follow up question; when using the webgui module, it claims no config file is found (i guess loader.conf?).

Even if I create it under /boot/ it disappears after a reboot.

I'm using a LiveUSB latest build (431), booting from a DoK and saving config on another DoK.

malouja
NewUser
NewUser
Posts: 1
Joined: 06 Jan 2013 09:13
Status: Offline

Re: ZFS is not using RAM

Post by malouja »

To load your loader.conf, you should unmount the /cf mounting point from your USB key. Let's check by running the command mount.
Remount it with this command : mount /dev/da0a /cf
and change the /cf/boot/loader.conf
Reboot.
That's all.

ku-gew
Advanced User
Advanced User
Posts: 172
Joined: 29 Nov 2012 09:02
Location: Den Haag, The Netherlands
Status: Offline

Re: ZFS is not using RAM

Post by ku-gew »

ZFS doesn't use cache for streaming loads. If you copy a file and then copy it back, it'a streaming usage and cache is useless (or almost useless). My server is the same, 4 GB but only 60% used.
If you have a lot of random reads, then cache goes up, as it should.
HP Microserver N40L, 8 GB ECC, 2x 3TB WD Red, 2x 4TB WD Red
XigmaNAS stable branch, always latest version
SMB, rsync

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: ZFS is not using RAM

Post by raulfg3 »

erezsolan wrote:Even if I create it under /boot/ it disappears after a reboot.

I'm using a LiveUSB latest build (431), booting from a DoK and saving config on another DoK.

normal under liveUSB or embeded , you need full install to make changes persistent, or install zfskerntune and do changes using webgui
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Buhu
Starter
Starter
Posts: 45
Joined: 02 Jul 2012 10:16
Status: Offline

Re: ZFS is not using RAM

Post by Buhu »

I think using the integrated file editor will be correct to edit the file. I did this some days before !

This is my tuning for ZFS. 8GB are installed and the usage is still 88%


vm.kmem_size="7G"
vfs.zfs.arc_max="5632M"
vfs.zfs.arc_min="3584M"
vfs.zfs.txg.timeout="5"
vfs.zfs.txg.synctime="1"
vfs.zfs.txg.write_limit_override="805306368"
vfs.zfs.vdev.min_pending="2"
vfs.zfs.vdev.max_pending="10"
vfs.zfs.prefetch_disable="0"
The new one : 9.1.0.1 - Sandstorm (revision 847) on USB 8GB Verbatin, ASRock A75M-HVS and A4-3300 CPU, BeQuiet 350 Watt , 8 GB DDR3 Ram. 4 x 2TB HD204UI RaidZ1, 1x WDRED 3TB UFS Singlestore. HP Procurve Switch 1810 G8 - 8-Port. That's all about 11 TB of pure fun.

Buhu
Starter
Starter
Posts: 45
Joined: 02 Jul 2012 10:16
Status: Offline

Re: ZFS is not using RAM

Post by Buhu »

I had a little bit of testing on my 8GB RAM ....that's the outcome. Still 92% of 7543MiB and good speed.

vm.kmem_size="7568M"
vfs.zfs.arc_min="6144M"
vfs.zfs.arc_max="6144M"
vfs.zfs.prefetch_disable="0"
vfs.zfs.zil_disable="0"
vfs.zfs.txg.timeout="5"
vfs.zfs.vdev.max_pending="10"
vfs.zfs.vdev.min_pending="4"
vfs.zfs.write_limit_override="0"
The new one : 9.1.0.1 - Sandstorm (revision 847) on USB 8GB Verbatin, ASRock A75M-HVS and A4-3300 CPU, BeQuiet 350 Watt , 8 GB DDR3 Ram. 4 x 2TB HD204UI RaidZ1, 1x WDRED 3TB UFS Singlestore. HP Procurve Switch 1810 G8 - 8-Port. That's all about 11 TB of pure fun.

User avatar
kkd
Forum Moderator
Forum Moderator
Posts: 306
Joined: 08 May 2013 21:47
Location: Budapest, Hungary
Contact:
Status: Offline

Re: ZFS is not using RAM

Post by kkd »

dont forget that using is not the same as allocating.
arc min only allocates ur ram. not all the 6144M is in use. only about the 20%.
XigmaNAS x64-embedded | INTEL Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz | 9216MiB RAM | X x YTB WD Red ZFS mirror compressed

Buhu
Starter
Starter
Posts: 45
Joined: 02 Jul 2012 10:16
Status: Offline

Re: ZFS is not using RAM

Post by Buhu »

On my RaidZ1 (signature ) with the old HD204UI disks i have nearly 90MB/s Read and 70 MB/s in write, tested by Crystal DiskMark. On the single ufs 3TB WDRED , 90MB/s Read and 103 MB/s write.... It's ok for me.
The new one : 9.1.0.1 - Sandstorm (revision 847) on USB 8GB Verbatin, ASRock A75M-HVS and A4-3300 CPU, BeQuiet 350 Watt , 8 GB DDR3 Ram. 4 x 2TB HD204UI RaidZ1, 1x WDRED 3TB UFS Singlestore. HP Procurve Switch 1810 G8 - 8-Port. That's all about 11 TB of pure fun.

Post Reply

Return to “ZFS (only!)”