From owner-freebsd-stable@freebsd.org Mon Aug 29 09:54:25 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4AA66B789D0 for ; Mon, 29 Aug 2016 09:54:25 +0000 (UTC) (envelope-from chrcoluk@gmail.com) Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0431D822 for ; Mon, 29 Aug 2016 09:54:24 +0000 (UTC) (envelope-from chrcoluk@gmail.com) Received: by mail-qk0-x22a.google.com with SMTP id v123so132373357qkh.2 for ; Mon, 29 Aug 2016 02:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=EYxWRZK0rxCAU68lnSI9btJRpVzG5yOUrDJ9pSgVp1A=; b=uN8jA/21sQPTqtzWclR+6itJrGEK2RKnt5fGM6bLyplMdV5PGuo2vjk93o6yG7aYbQ 8pBPJrSBk+TnkxChKliGAoNXbofg19Mu1Xs44fi3SFM6PVZt5FlZFDJhruTzM/t50NbP DTUwnWvg1ZknKTnK0iuaHS9ofaIHUby7TRQWgKO0/KDaEtHLLhKoe7jnmQ5SbNMkarjQ lLWf8HlxqUn6lDNaJS/KXrNRlW2te28j94o7Fm2cY18tAIWg7ZWzwufMxmz0MF4LRChv GmK/bdawflg4zIc5JcOmDjpRT1JPs87jJv0xK1fEW4Ao8scZXP6ZVjgk8BrpgOiS4Tfa atyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=EYxWRZK0rxCAU68lnSI9btJRpVzG5yOUrDJ9pSgVp1A=; b=X7/0f1yx7vM6LOX16NL0B5crBy2VuU7wSBx9GPqFYTgdWTuBMW0tGN4u0qJPDG9psh ggAl9YQUtUW0Snidf4C5AGBSHVQAwyovk1+jk/6HkV3RVMkG2ohtQCAxSupk6oH90gOW wD6kLXide+ptGYzOoRnIkZvIC8xZslte430+WheK+IyYbBarrrpS2C170najytABNIHz gmRnUUvdgRZ4yv96iFZcPenOkmbdOOhO++Gq7qTu7KNFG1LK4RKZA3Cl8pkerHQu0Gdj fo7yQo+7jC1dgekNdrN6rWdNYwm76OeljswwTIUQFcREVThNLz4NpnbSYKpT9YakZCP4 Wl5Q== X-Gm-Message-State: AE9vXwORUKN5VtfnMUgBQgzCMreRLy0svILSCidaDxHGdszWlLPTKqE12WjucNe9fhKd5alTgJ1y8iZhKFv2Xg== X-Received: by 10.55.102.75 with SMTP id a72mr9505879qkc.90.1472464463960; Mon, 29 Aug 2016 02:54:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.51.33 with HTTP; Mon, 29 Aug 2016 02:54:03 -0700 (PDT) In-Reply-To: References: <20160819073422.4292997b@X220.alogt.com> <20160821144505.27c0f55d@X220.alogt.com> <827183a944ee4052649c152d65204444@schema31.it> <20160822101423.GF18643@e-new.0x20.net> <79F32FFD-BBDF-4359-A4CB-C80A3FC59EAD@FreeBSD.org> <20160828183242.759bb6c2@freedom.alkumuna.eu> From: Chris Date: Mon, 29 Aug 2016 10:54:03 +0100 Message-ID: Subject: Re: Benchmarks results for FreeBSD 11 To: =?UTF-8?Q?Fernando_Herrero_Carr=C3=B3n?= Cc: freebsd-stable Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 09:54:25 -0000 On 29 August 2016 at 09:30, Fernando Herrero Carr=C3=B3n wrote: > 2016-08-29 3:04 GMT+02:00 K. Macy : > >> > I'm writing from my cellphone away from my computer, so take this with= a >> > grain of salt: >> > >> > -L/usr/local/llvm38/lib >> >> You're missing the point. If your webserver crashes every other day, >> the fact that you can run a batch job to restart it doesn't make it >> OK. >> >> > Fair enough, I misunderstood the point as "clang, even from ports, cannot > do omp at all [from a shell]". > > >> [...] Requiring additional tweaking to build on FreeBSD >> or requiring users to install gcc is kind of underwhelming. >> > > Isn't that precisely what the ports infrastructure is supposed to do? Wha= t > about compiler.mk? If it can provide an extra library-dirs argument to th= e > port's configure then we're not that bad. And still I agree, this is far > from an ideal situation, and we speaking about finding a library, we have > still not touched having clang use the LLVM linker... > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" I have not looked at the article yet. but yes if one compiles FreeBSD ports using a default make.conf (empty file) then the ports will not be built optimised. I dont go all out on optimisation like some people do but I consider basic optimisation to be a modern version of gcc combined with the cpu native flag. Which will auto detect the processor used and add the right flags correctly. I dont fiddle with -O2 -O3 etc. However there is a flipside to this on performance, ubuntu packages by default are now built with PIE, BIND_NOW, SMACK, RELRO etc. These will all slow down performance but are modern expected hardening. FreeBSD I think still does not do this by default? and as such ubuntu is managing to beat FreeBSD whilst also adding exploit mitigations which is impressive. It is a real shame the default ports compile and base has not been looked into but instead it all has been kept on conservative approach which is no exploit protection and to compile for the lowest denominator like a 486 cpu. Hardened bsd has done some good work on this but I see they were forced to fork away because their changes were rejected on the base system. As a final note I assumed clang no longer has a noticeable disadvantage vs gcc, if it does then that's bad news for the base files. If I Am wrong on the above please feel free to correct me. Chris