small kernel kernel option...

Warner Losh bsdimp at gmail.com
Wed Feb 26 22:02:41 UTC 2014


On Feb 26, 2014, at 1:48 PM, John-Mark Gurney <jmg at funkthat.com> wrote:

> I'm about to commit a change to sha256 to speed it up, but the cost
> of that speed up is an increase in code/data size from just under 1k
> to almost 9k (as measured on amd64)...  this increase is from unrolling
> a loop..
> 
> Maybe we should have a global kernel option, SMALL_KERNEL, or something
> similar that can be used to shrink code size for those that are trying
> to build small embedded devices…

I’d prefer something that’s more like OPTIMIZE_SIZE or OPTIMIZE_SPEED.

> Or do we already have this option, but I just don't know about it?

We don’t have it. We have a billion tiny knobs.

> I know 8k isn't much, but, a billion here and a billion there and pretty
> soon you're talking about real money.. :)

yea… There’s lots that can be done here, since most folks don’t bother with this…

Warner

> Comments?
> 
> -- 
>  John-Mark Gurney				Voice: +1 415 225 5579
> 
>     "All that I will do, has been done, All that I have, has not."
> _______________________________________________
> freebsd-arch at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe at freebsd.org"



More information about the freebsd-arch mailing list