From owner-freebsd-questions@freebsd.org Sun Mar 10 22:21:52 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FF9D1544049 for ; Sun, 10 Mar 2019 22:21:52 +0000 (UTC) (envelope-from matthias@smormegpa.no) Received: from mailrelay3-1.pub.mailoutpod1-cph3.one.com (mailrelay3-1.pub.mailoutpod1-cph3.one.com [46.30.210.184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A1AA86A20A for ; Sun, 10 Mar 2019 22:21:50 +0000 (UTC) (envelope-from matthias@smormegpa.no) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smormegpa.no; s=20140924; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=+cq0ZiJ0KzQ/VthIqPieq63hs0cTJxQCc3GyC7VY2p4=; b=nWx8UqXVIv+2alSFmfS2CALbdtsOsyiDadr8TaHeAY0JbgbNlRQW0SEg5ne1e7bioK2SKSpsbVKIy ws1jFKcvZrTWVuMLdSwByqN1xo9D/r8Sg9CLs89HGoJnGt8ZbtF+9mHdRjlzwSWxKx34JjX3z0nQZM U1g4ZAm0SBJCYUmM= X-HalOne-Cookie: 70c4355bf4e90f6a827dcd9556bead846c1165fb X-HalOne-ID: a298b3cd-4380-11e9-9a3a-d0431ea8bb03 Received: from picadelly.monsieur.mathieu (unknown [85.165.244.175]) by mailrelay3.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id a298b3cd-4380-11e9-9a3a-d0431ea8bb03; Sun, 10 Mar 2019 22:05:37 +0000 (UTC) Message-ID: <4bd5b97f171389bb7b7f18ed2b2a50ba4d266907.camel@smormegpa.no> Subject: Re: Barebone kernel options request From: Matthias Oestreicher To: freebsd-questions@freebsd.org Date: Sun, 10 Mar 2019 23:05:37 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: A1AA86A20A X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=smormegpa.no header.s=20140924 header.b=nWx8UqXV X-Spamd-Result: default: False [3.58 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[smormegpa.no:s=20140924]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[smormegpa.no]; NEURAL_SPAM_MEDIUM(0.95)[0.954,0]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(0.94)[0.936,0]; DKIM_TRACE(0.00)[smormegpa.no:+]; MX_GOOD(-0.01)[mx1.pub.mailpod3-cph3.one.com,mx2.pub.mailpod3-cph3.one.com,mx3.pub.mailpod3-cph3.one.com]; RCVD_IN_DNSWL_NONE(0.00)[184.210.30.46.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_LONG(0.86)[0.864,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.64)[ipnet: 46.30.208.0/21(1.87), asn: 51468(1.34), country: DK(-0.04)]; ASN(0.00)[asn:51468, ipnet:46.30.208.0/21, country:DK]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Mar 2019 22:21:52 -0000 Am Sonntag, den 10.03.2019, 13:58 +0100 schrieb samir.otmane@numericable.fr: > Hello everyone, > > > For my purpose, i would like to get a very barebone FreeBSD kernel ( > For instance i don't want jaling, i'll want to get rid of unwanted > overhead ), but i don't know how to do so. > > > > IRC chatters told me that it would be very challenging to do so. > > > > I found that page ( > https://www.freebsd.org/cgi/man.cgi?query=src.conf ) but it only > disables user-land program building, not kernel-land code. > > > > I'm looking towards an answer for it > > > > thank you in advance > > > > Samir Hei Samir, I guess what you want is this https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html In /usr/src/sys//conf/MINIMAL you already have a very stripped down kernel configuration file. I haven't build this myself though. The kernel FreeBSD runs on by default is, what you would end up if you build the GENERIC kernel. Really, nowadays you must to be extremely low on recources to feel a differnce between GENERIC or something you stripped down. But if you want to try it, go on. If you got a bit of knowledge about hardware drivers, buses etc it will definetely help. Basically, edit GENERIC, strip out the masses of raid controller and network interfaces that you don't need and build it. That's a good start to learn. Read the comments on each line! Don't touch anything that has "bus" in it's device name or comment if your are unexperienced, e.g. scbus or miibus. The latter is listed with the network interface drivers, but it's a bus that many cheap network interfaces depend on. You may savely remove parallel port bus though 😉 In the end, you should clearly know what FreeBSD needs to run and what you need/want. That depends heavily on the hard- and software setup you are going to run. There is also a ../../conf/NOTES as mentioned in the header of GENERIC that has very exaustive comments. Though I find them more useful if you want a add something. The most important comments are in the GENERIC config file. Best Regards, Matthias > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" -- Med vennlig hilsen Matthias Oestreicher Industri- og produksjonsservice Oestreicher Solsletta 34 4658 Tveit t: (+47) 41 18 44 18 m: matthias@inpros.no w: www.inpros.no