Kernel/Compiler bug

Ed Maste emaste at freebsd.org
Thu Oct 2 15:10:41 UTC 2014


On 2 October 2014 03:55, Konstantin Belousov <kostikbel at gmail.com> wrote:
>
> The cost of the increased size for kernel stack is significant, even
> on architectures with ample KVA.  This must not be done just because
> some non-default kernel settings cause stack overflow.  If somebody
> feels himself qualified enough to tune compiler options, it must
> understand the consequences and do other required adjustments,
> including kernel stack size tuning.

I wonder if we should have a comment in kern.pre.mk, even if it's just
an explicit notice that changing -O can have adverse effects. For
better or worse it's a fairly common desire to try changing the
kernel's -O.

Of course, kern.pre.mk is not intended to accommodate user-facing
changes. I suspect it's reasonably common for developers to grep '-O2'
in sys/conf and discover where it's getting set though.


More information about the freebsd-hackers mailing list