From owner-freebsd-questions@freebsd.org Mon Jul 15 15:35:16 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B8B0BBD0DC for ; Mon, 15 Jul 2019 15:35:16 +0000 (UTC) (envelope-from lee@adminart.net) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DD249971E8 for ; Mon, 15 Jul 2019 15:35:14 +0000 (UTC) (envelope-from lee@adminart.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1563204912; s=strato-dkim-0002; d=adminart.net; h=References:Message-ID:Date:In-Reply-To:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=7b1Mnvy+4zT7z72otLcTUDL7nz4v9+5yAs9/fILY+xI=; b=K/x/j9KMtZl+9+xiAqhinrdcKiPA/c4L/32t5dH+Nc/zZLGUdQpk4Q1QRsIVY/Oqej bUW4io0lRp6yFQ4ukuFEJIOVVjLW3EDoAFH481Moj81ID0deqpu3/efXuoA3gyDXyBBt syznRUh9JiHVdsoeKe9Xa6U8eL10AJFvrjh/4gr4GQj87f23ahW4p+gxst5oxhl2LAGz UKHMChMoNEQFnSbOln5/RQ/IubX8wl40/CYg4/0paAy9SDubrz7ZNEbc/2NgDF3U0z5O fd8Ot39yBDGTrSDqqo20G/yK+oJ3vdM2i86d3WaLNAqGM3GvgFwgXWv5qwieXASgji1n VKKg== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+ARdaXvxIDf7nlw=" X-RZG-CLASS-ID: mo00 Received: from himinbjorg.adminart.net by smtp.strato.de (RZmta 44.24 DYNA|AUTH) with ESMTPSA id e0059dv6FFZCVIu (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 15 Jul 2019 17:35:12 +0200 (CEST) Received: from toy.adminart.net ([192.168.3.55]) by himinbjorg.adminart.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hn30R-0001bF-Lp; Mon, 15 Jul 2019 17:35:11 +0200 Received: from lee by toy.adminart.net with local (Exim 4.92) (envelope-from ) id 1hn30R-00014b-HI; Mon, 15 Jul 2019 17:35:11 +0200 From: hw To: Steve O'Hara-Smith Cc: freebsd-questions@freebsd.org Subject: Re: What does it mean to use ports? In-Reply-To: <20190715060807.18d0301d925376ef3d078076@sohara.org> (Steve O'Hara-Smith's message of "Mon, 15 Jul 2019 06:08:07 +0100") Date: Mon, 15 Jul 2019 17:15:44 +0200 Organization: my virtual residence Message-ID: <87wogjjplr.fsf@toy.adminart.net> References: <87o91wqjl5.fsf@toy.adminart.net> <20190715021053.2f82c84c.freebsd@edvax.de> <23851.53207.561626.837532@jerusalem.litteratus.org> <877e8jq5zm.fsf@toy.adminart.net> <20190715060807.18d0301d925376ef3d078076@sohara.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: DD249971E8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=adminart.net header.s=strato-dkim-0002 header.b=K/x/j9KM X-Spamd-Result: default: False [-2.66 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[adminart.net:s=strato-dkim-0002]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[adminart.net]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[smtpin.rzone.de]; DKIM_TRACE(0.00)[adminart.net:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.82)[-0.821,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[hw@adminart.net,lee@adminart.net]; RCVD_IN_DNSWL_LOW(-0.10)[7.0.0.0.0.0.0.0.0.0.0.0.0.0.3.5.2.0.2.0.a.0.2.0.8.3.2.0.1.0.a.2.list.dnswl.org : 127.0.5.1]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6724, ipnet:2a01:238::/32, country:DE]; FROM_NEQ_ENVFROM(0.00)[hw@adminart.net,lee@adminart.net]; IP_SCORE(-0.73)[ipnet: 2a01:238::/32(-3.23), asn: 6724(-0.41), country: DE(-0.01)] 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, 15 Jul 2019 15:35:16 -0000 Steve O'Hara-Smith writes: > On Mon, 15 Jul 2019 06:25:17 +0200 > hw wrote: > >> Thanks for the warning --- Gentoo has something like that, too. >> >> Wouldn't I want everything to be optimized for the CPU it's running on? > > It is rarely worth the compile time (ie. the CPU time saving over > the lifetime of the system is less than the CPU time to perform the > compilation) to optimise to a particular CPU rather than using generic > binaries for the CPU family. Of course for some CPUs and some applications > there are big wins to be had, but not on average especially when most > software is IO bound not CPU bound. That's probably true. I never noticed a difference with Gentoo, and even for software that takes advantage of particular CPU features, there may be no gain when this software isn't used much. It's more about wanting everything to be as good as it can be. Compiling everything optimized for the CPU it's running on might do that --- if you get all the options right. > I generally only compile a port for one of two reasons, some cannot > be shipped as packages for licensing reasons and some are built with > different options to the ones I want (CPU optimisation is one I've not > needed but YMMV). > > When I do need to compile a port the first thing I do is make sure > my ports tree is up to date then I use make missing to get a list of > dependencies that aren't installed and use pkg to install them first so > that I am only compiling the one thing I need to compile rather than all > the dependencies. Finally I use pkg lock to prevent package updates > overwriting my customised version. Perhaps that is the intended usage. I'll take that as a recommendation.