From owner-freebsd-questions@freebsd.org Mon Mar 11 09:36:27 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 7A6581539F0D for ; Mon, 11 Mar 2019 09:36:27 +0000 (UTC) (envelope-from samir.otmane@numericable.fr) Received: from smtp7.tech.numericable.fr (smtp7.tech.numericable.fr [82.216.111.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DEF6E8D5DB for ; Mon, 11 Mar 2019 09:36:25 +0000 (UTC) (envelope-from samir.otmane@numericable.fr) Received: from mowmail-nc1.nc.sdv.fr (mowmail-nc1.tech.numericable.fr [82.216.111.101]) by smtp7.tech.numericable.fr (Postfix) with SMTP id 8752E62DE2; Mon, 11 Mar 2019 10:36:17 +0100 (CET) Received: from [87.231.4.183] by webmail.numericable.fr with http webmail; Mon, 11 Mar 2019 10:36:17 +0100 (CET) X-EA-Auth: iaExmoOrROw9Bt8TFKS63s6mBbLmkmycodYIWgKTT9bnHX6RUg77xSBUNpS UIe4tZJO66JTsfamNyzKa5CtnySutnxWU1qbN From: samir.otmane@numericable.fr To: "Kevin P. Neal" Cc: freebsd-questions@freebsd.org Date: Mon, 11 Mar 2019 10:36:17 +0100 (CET) Subject: Re: Re: Barebone kernel options request X-Priority: 3 MIME-Version: 1.0 X-Mailer: COMS/EA14.11/r20171018 Message-ID: In-Reply-To: <20190311023130.GA3936@neutralgood.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrgeeigddthecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfpfgfogfftkfevteeunffgpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvfffurfggoffkjggtgfesthhqtddtredtudenucfhrhhomhepshgrmhhirhdrohhtmhgrnhgvsehnuhhmvghrihgtrggslhgvrdhfrhenucffohhmrghinhepfhhrvggvsghsugdrohhrghenucfkphepkeejrddvfedurdegrddukeefnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtnecuvehluhhsthgvrhfuihiivgeptd X-Rspamd-Queue-Id: DEF6E8D5DB X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.41 / 15.00]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-0.00)[country: FR(-0.01)]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.81)[0.814,0]; NEURAL_HAM_LONG(-0.03)[-0.027,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[numericable.fr]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.84)[0.838,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mta.numericable.fr]; RCPT_COUNT_TWO(0.00)[2]; FROM_NO_DN(0.00)[]; HAS_X_PRIO_THREE(0.00)[3]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[43.111.216.82.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21502, ipnet:82.216.0.0/17, country:FR]; RCVD_TLS_LAST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[183.4.231.87.zen.spamhaus.org : 127.0.0.10] 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: Mon, 11 Mar 2019 09:36:27 -0000 Hi Kevin, Thanks for the answer. Actually my ISP webmail is kinda buggy, i apologize for multiple mail send= ing. I'm already aware of kernel compilation options through NOTES file, and ye= ah i'm using amd64 arch. As peoples told me and as i'm actually thinking of it is i might be a litt= le exaggerating about overhead stuff, but yet i'd like to choose what i wan= t to. Samir. ---- Message d'origine ---- De : "Kevin P. Neal" =C0 : samir.otmane@numericable.fr Objet : Re: Barebone kernel options request Date : 11/03/2019 03:31:30 CET Copie =E0 : freebsd-questions@freebsd.org On Sun, Mar 10, 2019 at 02:09:37PM +0100, samir.otmane@numericable.fr wrot= e: > Hello everyone, >=20 > 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. >=20 > IRC chatters told me that it would be very challenging to do so. >=20 > I found that page ( https://www.freebsd.org/cgi/man.cgi?query=3Dsrc.conf= ) but it only disables user-land program building, not kernel-land code. Three emails to the same list is two email too many. Just one email would be sufficient, and if you get no response another single email a reasonabl= e period of time later. I don't know if this community has a definition of "reasonable period of time", though. The LLVM community's is roughly "a week or so". Anyway. On to business: What you want is to build a custom kernel. The GENERIC kernel config file is, for the 64-bit amd64 host, located at: /usr/src/sys/amd64/conf/GENERIC You didn't say what host, but the other hosts are at guessable locations based on that path, and the filename to look for is "GENERIC". You'll need to copy that file and edit out the stuff you don't want. This will probably take some research and trial and error. Note that this may not be granular enough. I don't know if you can remove jailing, for example. But I don't know that jailing actually increases the overhead in a measureable way if you aren't using it. So it may not be worth your time to bother with it. This goes double if it requires special patches to the kernel that you have to maintain forever and incur the cost forever. You'll need to do the cost/benefit analysis yourself. I don't know the current correct method of building custom kernels. It's no doubt docuemented, and maybe someone will chime in here. --=20 "A method for inducing cats to exercise consists of directing a beam of invisible light produced by a hand-held laser apparatus onto the floor ... in the vicinity of the cat, then moving the laser ... in an irregular way fascinating to cats,..." -- US patent 5443036, "Method of exercising a cat= " _______________________________________________ freebsd-questions@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.or= g"