From owner-freebsd-current@FreeBSD.ORG  Tue Mar 25 22:57:32 2014
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: freebsd-current@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 BD4FAB68
 for <freebsd-current@freebsd.org>; Tue, 25 Mar 2014 22:57:32 +0000 (UTC)
Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com
 [209.85.220.46])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 91368FD1
 for <freebsd-current@freebsd.org>; Tue, 25 Mar 2014 22:57:32 +0000 (UTC)
Received: by mail-pa0-f46.google.com with SMTP id kp14so1086103pab.19
 for <freebsd-current@freebsd.org>; Tue, 25 Mar 2014 15:57:31 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:subject:mime-version:content-type:from
 :in-reply-to:date:cc:content-transfer-encoding:message-id:references
 :to; bh=92EcNstUZF2JTKpbxJkOADyaabUoAK8uoFWLJN4/OCM=;
 b=IZ25eMt2p6KGXr6ZsYv4GDdscIX8OGoRLLiiIqUduE4MtsPT4zXAgpkE4q3tTYh5Im
 +fNauUS2fWgngFb+w/hwV6ykdTukOhUOa1+x4bnHKhkKg8czhfSJdIrcVIZcnFa5Z2id
 VFzvUSSfsw3aJU3SdRV8nYULCYYA9d52AG1W7rki7ycL4KxO47NHjUb7fSmXsGhtFS+9
 BF1twUIlOMzF+ApawdGTMWT/JBjC1McMTDumGWAM5AUgxMMS/jEHlYYoUxB9WvtPlMQw
 xXtNxZ02ORHc4lb2kuPzMbzpkNcJ9TPANgYuNtFcDYYm47sf1RZwz18DxCMZi54dT8l8
 SNKg==
X-Gm-Message-State: ALoCoQkweXqGGmHNEFh94d0UkS4O73z5U1ENLTx2inKmNDGR2B3X2k90rKsbkUnvDeWClSTgBQmr
X-Received: by 10.68.196.226 with SMTP id ip2mr81475550pbc.106.1395788251672; 
 Tue, 25 Mar 2014 15:57:31 -0700 (PDT)
Received: from [10.64.26.35] (dc1-prod.netflix.com. [69.53.236.251])
 by mx.google.com with ESMTPSA id tf10sm49661669pbc.70.2014.03.25.15.57.30
 for <multiple recipients>
 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
 Tue, 25 Mar 2014 15:57:30 -0700 (PDT)
Sender: Warner Losh <wlosh@bsdimp.com>
Subject: Re: is it Ok to strip kernel & modules?
Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\))
Content-Type: text/plain; charset=windows-1252
From: Warner Losh <imp@bsdimp.com>
X-Priority: 3 (Normal)
In-Reply-To: <8406480.20140326021403@serebryakov.spb.ru>
Date: Tue, 25 Mar 2014 16:57:28 -0600
Content-Transfer-Encoding: quoted-printable
Message-Id: <D0B25583-5003-4B7B-8AC7-F042C4EDC92B@gmail.com>
References: <8406480.20140326021403@serebryakov.spb.ru>
To: lev@FreeBSD.org
X-Mailer: Apple Mail (2.1874)
Cc: freebsd-current@freebsd.org
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 25 Mar 2014 22:57:32 -0000


On Mar 25, 2014, at 4:14 PM, Lev Serebryakov <lev@FreeBSD.org> wrote:

> Hello, Freebsd-current.
>=20
> Why our kernel, even built without DEBUG, is not stripped? It could =
sabe
> 1.5Mb out of 8Mb for "router-like" (network, wifi, some netgraph, UFS, =
NFS and
> USB) kernel...
>=20
> But maybe, here are some reasons not to strip it?

If you strip the kernel, then you won=92t be able to use anything that =
opens up
kernel memory to read answers out of it. I think this is all wrapped in =
ksyms, so
you could grep for it. Be thankful that ifconfig no longer is on this =
list :)

Warner