Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2014 14:05:04 -0800
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        "arch@freebsd.org" <arch@freebsd.org>
Subject:   Re: small kernel kernel option...
Message-ID:  <CA%2BhQ2%2BiEmvTfRd%2B7k3mZjWdDBgFqxBHnq4fj5M6=BwhaoP08Qg@mail.gmail.com>
In-Reply-To: <20140226214816.GB92037@funkthat.com>
References:  <20140226214816.GB92037@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, February 26, 2014, John-Mark Gurney <jmg@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@freebsd.org <javascript:;> mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org<javascript:;>
> "
>


-- 
-----------------------------------------+-------------------------------
 Prof. Luigi RIZZO, rizzo@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)
-----------------------------------------+-------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2BiEmvTfRd%2B7k3mZjWdDBgFqxBHnq4fj5M6=BwhaoP08Qg>