BuddyButterfly
Dabbler
- Joined
- Jun 18, 2014
- Messages
- 28
Hi,
yesterday I experienced system crash because of
I was able to recover from it but found the root cause of this problem.
Therefore I would like to set focus on fixing the issue with the ever increasing number of processes
(threads) which in fact are a thread leak (though systemically caused). Please see this discussion
http://forums.freenas.org/index.php?threads/number-of-processes-continuesly-rising.21852/
As the number of snapshots are continuesly increasing (normally), the number of threads reach hights of thousands of threads. As we all know that threads consume resources especially thread stack size, this also exhausts memory! If you see the chart in the discussion and see 5k threads and lets assume a default threads stack size of 1MB, you should know where the memory is going to. I do not know the backgrounds on how thread stack size in freebsd is handled but this discussion thread also gave some background
http://lists.freebsd.org/pipermail/freebsd-threads/2005-January/002793.html
So let's hope that this thread leak is solved in version 9.2.1.6 as stated in the forum discussion. If not
then please put the reduction of threads at high prio.
P.S. Please do not give any advices to increase RAM as this would not solve the systemic cause - it would only delay the problem!
yesterday I experienced system crash because of
Code:
kmem_malloc(1318912): kmem_map too small: 2208272384 total allocated
I was able to recover from it but found the root cause of this problem.
Therefore I would like to set focus on fixing the issue with the ever increasing number of processes
(threads) which in fact are a thread leak (though systemically caused). Please see this discussion
http://forums.freenas.org/index.php?threads/number-of-processes-continuesly-rising.21852/
As the number of snapshots are continuesly increasing (normally), the number of threads reach hights of thousands of threads. As we all know that threads consume resources especially thread stack size, this also exhausts memory! If you see the chart in the discussion and see 5k threads and lets assume a default threads stack size of 1MB, you should know where the memory is going to. I do not know the backgrounds on how thread stack size in freebsd is handled but this discussion thread also gave some background
http://lists.freebsd.org/pipermail/freebsd-threads/2005-January/002793.html
So let's hope that this thread leak is solved in version 9.2.1.6 as stated in the forum discussion. If not
then please put the reduction of threads at high prio.
P.S. Please do not give any advices to increase RAM as this would not solve the systemic cause - it would only delay the problem!