Hi all,
I have some problems with my freebsd box. I want to use it as a SAN, with a ZFS on root raidZ2 pool and istgt. Performances are very very poor, i can't copy a huge amount of files, the server freeze and the iscsi iniator lost the connection. In my dmesg, I have an kern.maxswzone error. I've tried to correct it with different values (equal or superior at the total swap space), but it continue to give me the error message at boot time, and the performance are not really improved (just a few).
If I restart istgt, the system seems more free and usable, that's why I think about a swap or a cache problem
I think I've make a lots of mistakes in my configuration, but I don't know where to investigate.
This is how my system (up to date) is configured:
Any help would be very appreciated. Thanks in advance for any help, and sorry for my bad English ;-)
I have some problems with my freebsd box. I want to use it as a SAN, with a ZFS on root raidZ2 pool and istgt. Performances are very very poor, i can't copy a huge amount of files, the server freeze and the iscsi iniator lost the connection. In my dmesg, I have an kern.maxswzone error. I've tried to correct it with different values (equal or superior at the total swap space), but it continue to give me the error message at boot time, and the performance are not really improved (just a few).
If I restart istgt, the system seems more free and usable, that's why I think about a swap or a cache problem
I think I've make a lots of mistakes in my configuration, but I don't know where to investigate.
This is how my system (up to date) is configured:
Code:
root@beastie:~ # uname -a
FreeBSD beastie 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Sat Jan 11 03:25:02 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
root@beastie:~ # grep memory /var/run/dmesg.boot
real memory = 17179869184 (16384 MB)
avail memory = 16489336832 (15725 MB)
root@beastie:~ # sysctl kern.maxswzone
kern.maxswzone: 402653184
root@beastie:~ # swapinfo
Device 1K-blocks Used Avail Capacity
/dev/gpt/swap0 67108864 0 67108864 0%
/dev/gpt/swap1 67108864 0 67108864 0%
/dev/gpt/swap2 67108864 0 67108864 0%
/dev/gpt/swap3 67108864 0 67108864 0%
/dev/gpt/swap4 67108864 0 67108864 0%
/dev/gpt/swap5 67108864 0 67108864 0%
Total 402653184 0 402653184 0%
root@beastie:~ # zpool status
pool: zroot
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gpt/disk0 ONLINE 0 0 0
gptid/458950a2-617e-11e3-9217-00151745b57c ONLINE 0 0 0
gptid/69a3f6e7-617e-11e3-9217-00151745b57c ONLINE 0 0 0
gptid/87078ae9-617e-11e3-9217-00151745b57c ONLINE 0 0 0
gptid/b021b357-617e-11e3-9217-00151745b57c ONLINE 0 0 0
gptid/c808b07a-617e-11e3-9217-00151745b57c ONLINE 0 0 0
errors: No known data errors
root@beastie:~ # more /etc/sysctl.conf
# $FreeBSD: release/9.2.0/etc/sysctl.conf 112200 2003-03-13 18:43:50Z mux $
#
# This file is read when going to multi-user and its contents piped thru
# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
#
kern.maxvnodes=250000
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
root@beastie:~ # more /boot/loader.conf
vfs.zfs.tgx.timeout="5"
kern.maxswzone="402653184"
zfs_load="YES"
vfs.root.mountfrom="zfs:zroot/ROOT/default"
Any help would be very appreciated. Thanks in advance for any help, and sorry for my bad English ;-)