From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 9 20:21:28 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C130EE28; Tue, 9 Apr 2013 20:21:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id 30478ABE; Tue, 9 Apr 2013 20:21:28 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id p43so5556859wea.38 for ; Tue, 09 Apr 2013 13:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ZqRuGYxpQggRxy02yYe7egzcr36n/CoeC4xLpNLNB80=; b=F7g/rt57lyQfwK3y1vrzdmFBX4X9ieWgy4si7caTpoavQRK5XBFNWxc76vTgUgCkTl cPt0aKsn9iWtSqKFWC6f4dt78XhnjvKK+sBOLD/6aemTjP0M9MCTwEADBlj/KN+3V5tm IRkzIu83e11BO/xHP1obT9K+PAs4Kp3GAhO6d3SPS0DgRZd/pVcDtku4j9SJfPghwD49 daVZXiYw95d5fBK/4fyK8ToqLjJFntlgHmueQs8Gpn3SJotuoEZCTfbfZgLu3JP7ptzA smU1xrIsWu88EtX2lslFOXig/riuFVz/Iw/QhpV/248DEGvSFnXUdWwIlloJOlOkPQ5/ xS0Q== MIME-Version: 1.0 X-Received: by 10.194.88.138 with SMTP id bg10mr41317120wjb.13.1365538887220; Tue, 09 Apr 2013 13:21:27 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.121.136 with HTTP; Tue, 9 Apr 2013 13:21:27 -0700 (PDT) In-Reply-To: <92799D4C-797C-4304-B299-DD1DBA49CFFC@FreeBSD.org> References: <516452C7.7040607@mu.org> <92799D4C-797C-4304-B299-DD1DBA49CFFC@FreeBSD.org> Date: Tue, 9 Apr 2013 13:21:27 -0700 X-Google-Sender-Auth: nWm8-7aygPy7Hb3A0WN8dEvyM_s Message-ID: Subject: Re: GSOC 2013 project " Kernel Size Reduction for Embedded System " From: Adrian Chadd To: =?ISO-8859-2?Q?Edward_Tomasz_Napiera=B3a?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Wojciech Puchar , Alfred Perlstein , FreeBSD Hackers , Amit Rawat X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2013 20:21:28 -0000 On 9 April 2013 11:47, Edward Tomasz Napiera=C5=82a wro= te: > In order to optimize - in this case for size - we need a way to measure > what should we focus on, and it looks like we don't have it yet. We have a good starting point. We can look at the code/data/bss from each .o file that's included in the build. You can build a bare-bones kernel and modules, and use that to see how big things are. You can group those by subsystem to get an idea of how big each subsystem is. Whether or not it's loaded is (mostly) irrelevant - if we compile out USB but then include it as a module, the underlying size is almost the same anyway. Thanks, Adrian