From owner-freebsd-questions@freebsd.org Mon Jul 15 05:08:14 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 84507B0C68 for ; Mon, 15 Jul 2019 05:08:14 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AE9B976A5C for ; Mon, 15 Jul 2019 05:08:13 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1563167294; x=1565759294; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:to:from:date:x-thread-info; bh=b50oP51TffB9tCvEKt9wgLUuTtjqu1cril36TZj0aRY=; b=FCTBX6eYFMQeVCyKsbIkK8F+Ps6b54soQ2zIqAJnb5fVu7DSIwIkZtTZ+gOLJKQkBDdIabSBfZm9mA9k8xdR1W4CDvvhb4yLwZlY7P++T/BNohRY6hEBX6VfcYZRMmm99RX7O4SS+o+U43fo7iD3R9f3q7waX6LVYZQubNaOLN0= X-Thread-Info: NDI1MC4xMi4xYjUwMDAwMDI3YmM3NWEuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r6.us-west-2a.aws.in.socketlabs.com (r6.us-west-2a.aws.in.socketlabs.com [52.40.216.92]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Mon, 15 Jul 2019 01:08:10 -0400 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r6.us-west-2a.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Mon, 15 Jul 2019 01:08:09 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1hmtDb-000IL0-KX for freebsd-questions@freebsd.org; Mon, 15 Jul 2019 06:08:07 +0100 Date: Mon, 15 Jul 2019 06:08:07 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: What does it mean to use ports? Message-Id: <20190715060807.18d0301d925376ef3d078076@sohara.org> In-Reply-To: <877e8jq5zm.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> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: AE9B976A5C X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=FCTBX6eY; spf=pass (mx1.freebsd.org: domain of 4250.10.freebsd-questions=freebsd.org@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.10.freebsd-questions=freebsd.org@email-od.com X-Spamd-Result: default: False [-0.97 / 15.00]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MV_CASE(0.50)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[email-od.com:+]; MX_GOOD(-0.01)[cached: mxbh.socketlabs.com]; FORGED_SENDER(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; RCVD_TLS_LAST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.10.freebsd-questions=freebsd.org@email-od.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.89)[-0.893,0]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.991,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sohara.org]; FORGED_SENDER_VERP_SRS(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-0.21)[ip: (-0.55), ipnet: 142.0.176.0/22(-0.25), asn: 7381(-0.18), country: US(-0.06)]; NEURAL_SPAM_SHORT(0.13)[0.134,0]; RCVD_IN_DNSWL_NONE(0.00)[198.176.0.142.list.dnswl.org : 127.0.15.0]; ENVFROM_VERP(0.00)[] 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 05:08:14 -0000 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. 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. -- Steve O'Hara-Smith