Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jan 2016 03:12:29 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Chagin Dmitry <dchagin@freebsd.org>, freebsd-net@freebsd.org
Subject:   Re: long network segment call stack can fail
Message-ID:  <568D752D.8090304@grosbein.net>
In-Reply-To: <20160106180008.GA1363@chd.heemeyer.club>

index | next in thread | previous in thread | raw e-mail

07.01.2016 1:00, Chagin Dmitry пишет:
> Hi, all.
>
> Here's a panic that occurs during the massive network loads,
> as far as I can see network segment has eaten the whole stack, so
> only 0xeb0 bytes left for interrupt hanlder.

For stable/10, sys/amd64/include/param.h defines KSTACK_PAGES=4 as default
and GENERIC does not redefine it but NOTES gives example of increase upto 5.

You could increase kernel thread size that way or switch to
sysctl net.isr.dispatch=deferred so that input path just enqueues new frame
and returns, freeing stack. Netisr kernel thread will take care of it later.

Eugene Grosbein




home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?568D752D.8090304>