datnus
Contributor
- Joined
- Jan 25, 2013
- Messages
- 102
Hi guy,
I have a freenas 8.0.4 box with
- 6 HDD 7200rpm
- ZFS raidz2 (1 spare)
- Quad core Xeon CPU
- 8 GB RAM
- 2 Gigabit NICs.
The box serves iSCSI for Vmware ESXi 5.
After a while (2-3 months), the freenas seems to be very slow on IO and ESXi will hang.
Any help on what the bottlenecks are and what I should upgrade?
top shows:
[root@data1] ~# top
last pid: 5118; load averages: 0.11, 0.06, 0.04 up 0+08:31:06 18:41:51
58 processes: 1 running, 57 sleeping
CPU: 0.2% user, 0.0% nice, 8.1% system, 0.3% interrupt, 91.4% idle
Mem: 7896K Active, 295M Inact, 7337M Wired, 133M Buf, 259M Free
Swap: 12G Total, 12G Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
1951 root 15 44 0 192M 30052K ucond 0 5:32 0.00% istgt
1998 root 7 44 0 66324K 6228K ucond 0 0:09 0.00% collectd
1879 root 6 44 0 154M 36816K uwait 1 0:02 0.00% python
4871 root 1 44 0 9916K 1148K nanslp 3 0:01 0.00% vmstat
2395 www 1 44 0 19328K 2292K kqread 1 0:01 0.00% lighttpd
1632 root 1 44 0 11780K 1876K select 1 0:01 0.00% ntpd
2483 root 1 76 0 64100K 4732K ttyin 0 0:00 0.00% python
2128 root 1 47 0 7832K 1208K nanslp 0 0:00 0.00% cron
4850 root 1 44 0 33304K 4428K select 0 0:00 0.00% sshd
1294 root 4 76 0 5684K 992K rpcsvc 1 0:00 0.00% nfsd
1140 root 1 44 0 6904K 1156K select 0 0:00 0.00% syslogd
5031 root 1 44 0 8936K 1176K nanslp 1 0:00 0.00% iostat
1271 root 1 44 0 7836K 1108K select 1 0:00 0.00% rpcbind
1326 root 1 76 0 7956K 1048K rpcsvc 1 0:00 0.00% rpc.lockd
1293 root 1 76 0 5684K 968K select 1 0:00 0.00% nfsd
4852 root 1 44 0 10172K 1764K pause 2 0:00 0.00% csh
1310 root 1 44 0 263M 992K select 1 0:00 0.00% rpc.statd
=> Low CPU%
---------------------------------------
vmstat shows:
procs memory page disks faults cpu
r b w avm fre flt re pi po fr sr da0 ad0 in sy cs us sy id
0 0 0 832M 259M 0 0 0 0 198 0 0 13 777 7484 12770 0 1 99
0 0 0 834M 258M 617 0 0 0 640 0 0 7 667 2021 4698 0 0 99
0 0 0 838M 256M 1770 0 0 25 1517 0 0 8 1393 3495 8154 0 1 99
0 0 0 838M 255M 64 0 0 0 38 0 0 25 549 2543 5671 0 0 100
0 0 0 830M 434M 187 0 0 0 29653 0 0 274 1733 2974 20264 0 14 85
0 0 0 830M 442M 0 0 0 0 7515 0 0 396 1955 106 23480 0 4 96
0 0 0 830M 442M 43 0 0 0 5560 0 0 421 2057 106 24983 0 5 95
0 0 0 822M 452M 124 0 0 0 3257 0 0 176 1214 787 14059 0 2 98
0 0 0 822M 451M 563 0 0 0 602 0 0 17 783 2850 6560 0 1 99
0 0 0 822M 451M 0 0 0 0 0 0 0 6 99 351 1219 0 0 100
0 0 0 822M 451M 2 0 0 0 33 0 0 7 159 515 1701 0 0 100
0 0 0 822M 449M 2 0 0 0 35 0 0 41 1127 3772 9724 0 1 99
0 0 0 828M 443M 1594 0 0 0 987 0 0 16 860 2076 5399 0 0 99
=> Most of memory is cached and free memory is slow.
----------------------
iostat shows
tty da0 ada0 ada1 cpu
tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id
0 39 0.00 0 0.00 2.00 13 0.03 3.82 17 0.06 3 0 1 0 96
0 117 0.00 0 0.00 2.19 10 0.02 2.24 8 0.02 0 0 0 0 100
0 39 0.00 0 0.00 2.00 6 0.01 2.00 7 0.01 0 0 0 0 100
0 39 0.00 0 0.00 2.00 10 0.02 2.00 7 0.01 0 0 0 0 100
0 39 0.00 0 0.00 7.56 78 0.58 9.30 62 0.57 0 0 1 0 99
0 39 0.00 0 0.00 9.21 21 0.19 7.77 21 0.16 0 0 0 0 100
0 39 0.00 0 0.00 2.00 2 0.00 2.00 3 0.01 0 0 0 0 100
0 39 0.00 0 0.00 2.00 0 0.00 2.00 1 0.00 0 0 0 0 100
0 39 0.00 0 0.00 6.92 43 0.29 7.40 40 0.29 0 0 1 0 99
0 39 0.00 0 0.00 2.00 4 0.01 2.00 4 0.01 1 0 1 0 98
0 39 0.00 0 0.00 2.00 2 0.00 2.00 2 0.00 0 0 0 0 100
=> Not much IO
---------------------
I have a freenas 8.0.4 box with
- 6 HDD 7200rpm
- ZFS raidz2 (1 spare)
- Quad core Xeon CPU
- 8 GB RAM
- 2 Gigabit NICs.
The box serves iSCSI for Vmware ESXi 5.
After a while (2-3 months), the freenas seems to be very slow on IO and ESXi will hang.
Any help on what the bottlenecks are and what I should upgrade?
top shows:
[root@data1] ~# top
last pid: 5118; load averages: 0.11, 0.06, 0.04 up 0+08:31:06 18:41:51
58 processes: 1 running, 57 sleeping
CPU: 0.2% user, 0.0% nice, 8.1% system, 0.3% interrupt, 91.4% idle
Mem: 7896K Active, 295M Inact, 7337M Wired, 133M Buf, 259M Free
Swap: 12G Total, 12G Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
1951 root 15 44 0 192M 30052K ucond 0 5:32 0.00% istgt
1998 root 7 44 0 66324K 6228K ucond 0 0:09 0.00% collectd
1879 root 6 44 0 154M 36816K uwait 1 0:02 0.00% python
4871 root 1 44 0 9916K 1148K nanslp 3 0:01 0.00% vmstat
2395 www 1 44 0 19328K 2292K kqread 1 0:01 0.00% lighttpd
1632 root 1 44 0 11780K 1876K select 1 0:01 0.00% ntpd
2483 root 1 76 0 64100K 4732K ttyin 0 0:00 0.00% python
2128 root 1 47 0 7832K 1208K nanslp 0 0:00 0.00% cron
4850 root 1 44 0 33304K 4428K select 0 0:00 0.00% sshd
1294 root 4 76 0 5684K 992K rpcsvc 1 0:00 0.00% nfsd
1140 root 1 44 0 6904K 1156K select 0 0:00 0.00% syslogd
5031 root 1 44 0 8936K 1176K nanslp 1 0:00 0.00% iostat
1271 root 1 44 0 7836K 1108K select 1 0:00 0.00% rpcbind
1326 root 1 76 0 7956K 1048K rpcsvc 1 0:00 0.00% rpc.lockd
1293 root 1 76 0 5684K 968K select 1 0:00 0.00% nfsd
4852 root 1 44 0 10172K 1764K pause 2 0:00 0.00% csh
1310 root 1 44 0 263M 992K select 1 0:00 0.00% rpc.statd
=> Low CPU%
---------------------------------------
vmstat shows:
procs memory page disks faults cpu
r b w avm fre flt re pi po fr sr da0 ad0 in sy cs us sy id
0 0 0 832M 259M 0 0 0 0 198 0 0 13 777 7484 12770 0 1 99
0 0 0 834M 258M 617 0 0 0 640 0 0 7 667 2021 4698 0 0 99
0 0 0 838M 256M 1770 0 0 25 1517 0 0 8 1393 3495 8154 0 1 99
0 0 0 838M 255M 64 0 0 0 38 0 0 25 549 2543 5671 0 0 100
0 0 0 830M 434M 187 0 0 0 29653 0 0 274 1733 2974 20264 0 14 85
0 0 0 830M 442M 0 0 0 0 7515 0 0 396 1955 106 23480 0 4 96
0 0 0 830M 442M 43 0 0 0 5560 0 0 421 2057 106 24983 0 5 95
0 0 0 822M 452M 124 0 0 0 3257 0 0 176 1214 787 14059 0 2 98
0 0 0 822M 451M 563 0 0 0 602 0 0 17 783 2850 6560 0 1 99
0 0 0 822M 451M 0 0 0 0 0 0 0 6 99 351 1219 0 0 100
0 0 0 822M 451M 2 0 0 0 33 0 0 7 159 515 1701 0 0 100
0 0 0 822M 449M 2 0 0 0 35 0 0 41 1127 3772 9724 0 1 99
0 0 0 828M 443M 1594 0 0 0 987 0 0 16 860 2076 5399 0 0 99
=> Most of memory is cached and free memory is slow.
----------------------
iostat shows
tty da0 ada0 ada1 cpu
tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id
0 39 0.00 0 0.00 2.00 13 0.03 3.82 17 0.06 3 0 1 0 96
0 117 0.00 0 0.00 2.19 10 0.02 2.24 8 0.02 0 0 0 0 100
0 39 0.00 0 0.00 2.00 6 0.01 2.00 7 0.01 0 0 0 0 100
0 39 0.00 0 0.00 2.00 10 0.02 2.00 7 0.01 0 0 0 0 100
0 39 0.00 0 0.00 7.56 78 0.58 9.30 62 0.57 0 0 1 0 99
0 39 0.00 0 0.00 9.21 21 0.19 7.77 21 0.16 0 0 0 0 100
0 39 0.00 0 0.00 2.00 2 0.00 2.00 3 0.01 0 0 0 0 100
0 39 0.00 0 0.00 2.00 0 0.00 2.00 1 0.00 0 0 0 0 100
0 39 0.00 0 0.00 6.92 43 0.29 7.40 40 0.29 0 0 1 0 99
0 39 0.00 0 0.00 2.00 4 0.01 2.00 4 0.01 1 0 1 0 98
0 39 0.00 0 0.00 2.00 2 0.00 2.00 2 0.00 0 0 0 0 100
=> Not much IO
---------------------