From owner-freebsd-arch@FreeBSD.ORG Wed Feb 26 22:02:41 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A1AAF6E for ; Wed, 26 Feb 2014 22:02:41 +0000 (UTC) Received: from mail-pb0-x233.google.com (mail-pb0-x233.google.com [IPv6:2607:f8b0:400e:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 768E411D0 for ; Wed, 26 Feb 2014 22:02:41 +0000 (UTC) Received: by mail-pb0-f51.google.com with SMTP id un15so1600475pbc.10 for ; Wed, 26 Feb 2014 14:02:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5zxdkEejge/I4I8AnnwmS+QDpwqw3R7lrw3RjWrkzZ8=; b=0dk6CPjXQyl43Ttmyxkak4VNB3zZt634q99Ul/zyJr021eLBg/sNjkB4+t77YCfoFc 3sdlPNcLkgOoCD5yGlTpnWv8wNc/KZ/P0PDyW/SIsJLGN6F4jgzM8hlW8ycqxIMl3YJt z+DtWEGy3FBQm0t8Y29MBmEB8asMrhc/zCnhs568uRODAAF7i8i/Ivg4uHdO0jkaqIvX 0HF2xtOEiwEF52ZKxn9Uv2XQ3MqkvaK12wgEg+LbN4NsUit/fflKcTh2Z5MU3nFvDtzw UZThA/+Fb+Q01fdbDldcleVD3KbW7NbgAaA9FFHUlsukJzi+GATO9Haw2bfq6oMZNv0c +A2Q== X-Received: by 10.66.41.106 with SMTP id e10mr11305165pal.109.1393452161078; Wed, 26 Feb 2014 14:02:41 -0800 (PST) Received: from [10.64.26.169] (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id pe3sm6694883pbc.23.2014.02.26.14.02.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 14:02:32 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: small kernel kernel option... From: Warner Losh In-Reply-To: <20140226214816.GB92037@funkthat.com> Date: Wed, 26 Feb 2014 14:02:08 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <5BA6FA29-0BBE-45C1-B734-29013C5A2D29@bsdimp.com> References: <20140226214816.GB92037@funkthat.com> To: John-Mark Gurney X-Mailer: Apple Mail (2.1874) Cc: arch@FreeBSD.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Feb 2014 22:02:41 -0000 On Feb 26, 2014, at 1:48 PM, John-Mark Gurney 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.. >=20 > 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=85 I=92d prefer something that=92s more like OPTIMIZE_SIZE or = OPTIMIZE_SPEED. > Or do we already have this option, but I just don't know about it? We don=92t 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=85 There=92s lots that can be done here, since most folks don=92t = bother with this=85 Warner > Comments? >=20 > --=20 > John-Mark Gurney Voice: +1 415 225 5579 >=20 > "All that I will do, has been done, All that I have, has not." > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to = "freebsd-arch-unsubscribe@freebsd.org"