Problem solved.
http://forums.freebsd.org/showpost.php?p=181397&postcount=52
-------------------------------------------------------------------------------
Hi.
I'm using FreeBSD 9 64bit with ZFS as a backup server, only NFS service is running, however it keeps crashing every 3 days after.
The server hardware is Intel Core I3-2100, 4GB Ram and 4 X 2TB Seagate HDD. The server was running fine previously with ESXI 5.0 for more than three months without a single crash.
I suspected the problem is due to insufficient memory for arc so I have reduced the arc_max to 2GB only, reserved another 2GB for others.
Below is my memory status captured every one minute. I notice that the server crashed after my free memory fell below 32MB.
May I know whether increasing kmem_size will help to avoid server down due to memory exhaustion? Below is my current setting.
I would like to increase it to 6GB and try again.
Any comment?
http://forums.freebsd.org/showpost.php?p=181397&postcount=52
-------------------------------------------------------------------------------
Hi.
I'm using FreeBSD 9 64bit with ZFS as a backup server, only NFS service is running, however it keeps crashing every 3 days after.
The server hardware is Intel Core I3-2100, 4GB Ram and 4 X 2TB Seagate HDD. The server was running fine previously with ESXI 5.0 for more than three months without a single crash.
I suspected the problem is due to insufficient memory for arc so I have reduced the arc_max to 2GB only, reserved another 2GB for others.
Code:
vfs.zfs.arc_max="2G"
Below is my memory status captured every one minute. I notice that the server crashed after my free memory fell below 32MB.
Code:
Thu Feb 23 00:28:01 2012 Mem: 3768K Active, 448K Inact, 3730M Wired, 10M Cache, 92M Free
Thu Feb 23 00:28:01 2012 Swap: 4096M Total, 27M Used, 4069M Free
Thu Feb 23 00:29:03 2012 Mem: 5388K Active, 140K Inact, 3744M Wired, 9284K Cache, 78M Free
Thu Feb 23 00:29:03 2012 Swap: 4096M Total, 27M Used, 4069M Free
Thu Feb 23 00:30:03 2012 Mem: 3432K Active, 584K Inact, 3745M Wired, 10M Cache, 77M Free
Thu Feb 23 00:30:03 2012 Swap: 4096M Total, 27M Used, 4068M Free
Thu Feb 23 00:31:06 2012 Mem: 5060K Active, 708K Inact, 3744M Wired, 9276K Cache, 78M Free
Thu Feb 23 00:31:06 2012 Swap: 4096M Total, 27M Used, 4069M Free
Thu Feb 23 00:32:01 2012 Mem: 6376K Active, 584K Inact, 3753M Wired, 8188K Cache, 68M Free
Thu Feb 23 00:32:01 2012 Swap: 4096M Total, 27M Used, 4069M Free
Thu Feb 23 00:33:01 2012 Mem: 3356K Active, 80K Inact, 3754M Wired, 11M Cache, 68M Free
Thu Feb 23 00:33:01 2012 Swap: 4096M Total, 28M Used, 4068M Free
Thu Feb 23 00:34:00 2012 Mem: 3692K Active, 712K Inact, 3739M Wired, 10M Cache, 83M Free
Thu Feb 23 00:34:00 2012 Swap: 4096M Total, 27M Used, 4069M Free
Thu Feb 23 00:35:01 2012 Mem: 4140K Active, 216K Inact, 3767M Wired, 10M Cache, 55M Free
Thu Feb 23 00:35:01 2012 Swap: 4096M Total, 27M Used, 4069M Free
Thu Feb 23 00:36:01 2012 Mem: 2312K Active, 156K Inact, 3768M Wired, 7180K Cache, 59M Free
Thu Feb 23 00:36:01 2012 Swap: 4096M Total, 27M Used, 4069M Free
Thu Feb 23 00:37:00 2012 Mem: 3096K Active, 72K Inact, 3749M Wired, 7484K Cache, 77M Free
Thu Feb 23 00:37:00 2012 Swap: 4096M Total, 28M Used, 4068M Free
Thu Feb 23 00:38:00 2012 Mem: 2816K Active, 508K Inact, 3762M Wired, 6948K Cache, 64M Free
Thu Feb 23 00:38:00 2012 Swap: 4096M Total, 28M Used, 4068M Free
Thu Feb 23 00:39:01 2012 Mem: 4044K Active, 220K Inact, 3750M Wired, 6380K Cache, 76M Free
Thu Feb 23 00:39:01 2012 Swap: 4096M Total, 27M Used, 4069M Free
Thu Feb 23 00:40:04 2012 Mem: 3416K Active, 224K Inact, 3756M Wired, 7004K Cache, 70M Free
Thu Feb 23 00:40:04 2012 Swap: 4096M Total, 28M Used, 4068M Free
Thu Feb 23 00:41:03 2012 Mem: 5084K Active, 332K Inact, 3758M Wired, 5740K Cache, 67M Free
Thu Feb 23 00:41:03 2012 Swap: 4096M Total, 27M Used, 4069M Free
Thu Feb 23 00:42:01 2012 Mem: 3904K Active, 184K Inact, 3772M Wired, 6724K Cache, 54M Free
Thu Feb 23 00:42:01 2012 Swap: 4096M Total, 27M Used, 4069M Free
Thu Feb 23 00:43:01 2012 Mem: 3696K Active, 140K Inact, 3761M Wired, 6968K Cache, 65M Free
Thu Feb 23 00:43:01 2012 Swap: 4096M Total, 27M Used, 4068M Free
Thu Feb 23 00:44:01 2012 Mem: 4084K Active, 572K Inact, 3777M Wired, 5268K Cache, 49M Free
Thu Feb 23 00:44:01 2012 Swap: 4096M Total, 27M Used, 4068M Free
Thu Feb 23 00:45:05 2012 Mem: 5332K Active, 408K Inact, 3792M Wired, 2368K Cache, 36M Free
Thu Feb 23 00:45:05 2012 Swap: 4096M Total, 27M Used, 4069M Free
Thu Feb 23 00:46:11 2012 Mem: 5108K Active, 692K Inact, 3797M Wired, 1876K Cache, 32M Free
Thu Feb 23 00:46:11 2012 Swap: 4096M Total, 26M Used, 4070M Free
May I know whether increasing kmem_size will help to avoid server down due to memory exhaustion? Below is my current setting.
Code:
vm.kmem_size: 4023611392
I would like to increase it to 6GB and try again.
Any comment?