small kernel kernel option...

Luigi Rizzo rizzo at iet.unipi.it
Wed Feb 26 22:05:07 UTC 2014


On Wednesday, February 26, 2014, 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...
>
> Or do we already have this option, but I just don't know about it?
>
> I know 8k isn't much, but, a billion here and a billion there and pretty
> soon you're talking about real money.. :)


> Comments?
>
>
It is very nice that you care about this.
 I am just not really sure that for such small numbers the extra data size
matters much. The downside, as you can imagine, is now having to make sure
that lint kernels do not trip on some "unused" warning.

Cheers
Luigi

--
>   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 <javascript:;> mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe at freebsd.org<javascript:;>
> "
>


-- 
-----------------------------------------+-------------------------------
 Prof. Luigi RIZZO, rizzo at iet.unipi.it  . Dip. di Ing. dell'Informazione
 http://www.iet.unipi.it/~luigi/        . Universita` di Pisa
 TEL      +39-050-2211611               . via Diotisalvi 2
 Mobile   +39-338-6809875               . 56122 PISA (Italy)
-----------------------------------------+-------------------------------


More information about the freebsd-arch mailing list