From owner-freebsd-questions@freebsd.org Mon Mar 11 15:58:59 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 6DD6F15246D4 for ; Mon, 11 Mar 2019 15:58:59 +0000 (UTC) (envelope-from matthias@smormegpa.no) Received: from mailrelay2-1.pub.mailoutpod1-cph3.one.com (mailrelay2-1.pub.mailoutpod1-cph3.one.com [46.30.210.183]) (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 971066D4C7 for ; Mon, 11 Mar 2019 15:58:57 +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=0guAiayGgzT/+yiyiqzGCBYTGuL2QVEpRNb87eRJQ7w=; b=AaJaJE09OBH5/bm1jLVESb2GFbiN2wA3OCqKoUqWdGk6F1709VV7ZGI1mu3QQXoR9fB+uooKvrOB0 oJMGcBwLvVtn0mvSde/Q+WtX7FHJ9xMzr0qZeJrQOdqu5rKxVy3m7xnEbJF2gW6jcNGfNlom9CyzV/ 2UDWpgFJIebPxmYM= X-HalOne-Cookie: 4a2f7be22b1c1956ac61f3c2a17c03cc1c644592 X-HalOne-ID: 50a59a12-4414-11e9-b2e4-d0431ea8a290 Received: from picadelly.monsieur.mathieu (unknown [85.165.244.175]) by mailrelay2.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 50a59a12-4414-11e9-b2e4-d0431ea8a290; Mon, 11 Mar 2019 15:42:45 +0000 (UTC) Message-ID: Subject: Re: Re: Barebone kernel options request From: Matthias Oestreicher To: freebsd-questions@freebsd.org Date: Mon, 11 Mar 2019 16:42:45 +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: 971066D4C7 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=smormegpa.no header.s=20140924 header.b=AaJaJE09 X-Spamd-Result: default: False [3.30 / 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.98)[0.980,0]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(0.86)[0.862,0]; MX_GOOD(-0.01)[cached: mx1.pub.mailpod3-cph3.one.com]; DKIM_TRACE(0.00)[smormegpa.no:+]; RCVD_IN_DNSWL_NONE(0.00)[183.210.30.46.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_LONG(0.67)[0.670,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.60)[ipnet: 46.30.208.0/21(1.77), asn: 51468(1.28), 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: Mon, 11 Mar 2019 15:58:59 -0000 Am Montag, den 11.03.2019, 15:30 +0100 schrieb samir.otmane@numericable.fr: > Not really related about hardware, i just don't like being enforced features that i > don't need/want of, yet i understand that there will *might* not be noticeable > performance impact upon keeping/get rid of some features. > > > ---- Message d'origine ---- > De : "Carmel NY" > À : "FreeBSD" > Objet : Re: Barebone kernel options request > Date : 11/03/2019 14:54:48 CET > > On Mon, 11 Mar 2019 09:08:48 -0400, Robert Huff stated: > > > Polytropon writes: > > > > > You will then make a copy of the GENERIC kernel configuration file > > > and adjust it to your needs, i. e., remove all the entries you do > > > not need. > > > > Proceed with caution here. > > I do not know if it is currently true, but it has in the past > > been the case that (e.g.) option Q depends on device F which depends > > on device B; while the relationship between Q and F is documented in > > the config file, the one between F and B is not. > > The easy targets are disk(/RAID) drivers and network cards. > > After that? Stay alert; trust no-one; keep your un-delete key handy. > > > > > > Respectfully, > > > > > > Robert Huff > > Just out of some sort of morbid curiosity, I would be interested in > knowing exactly what problem the OP is trying to correct or alleviate > here. If his storage, memory or whatever resources are stretched to the > limit, he would be better served by purchasing a newer, more powerful > machine. "You can't make a silk purse out of a sow's ear." > Agree. There are only two reasons to build a kernel nowadays IMO: 1. to solve a real problem or 2. to learn about FreeBSD "Not really related about hardware, i just don't like being enforced features" I'd say, most of the kernel is hardware related. You can't really strip down the kernel, if you don't want to touch any of the drivers in the config. You have got several examples already. Now you just have to configure and build the kernel you want. You can't avoid reading the Handbook section you've been pointed to and the comments in GENERIC. There simply isn't THE ulitmate stripped down config that fits anyone and no one will or can do that job for you. Try it, then ask specific questions if you run into trouble building or booting you kernel. P.S. You make it hard for yourself to get help by first posting the same question 3 times and then top posting in addition. This thread is so torn apart that it's not fun to follow. Almost unreadable. No offense, Samir, but this could be something for you: http://www.catb.org/esr/faqs/smart-questions.html It's a good read and will help you post questions in a way that will actually help you get better help. Best Regards Matthias