Return-Path: X-Original-To: apmail-mesos-dev-archive@www.apache.org Delivered-To: apmail-mesos-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C331B18E84 for ; Thu, 18 Feb 2016 19:00:19 +0000 (UTC) Received: (qmail 86597 invoked by uid 500); 18 Feb 2016 18:59:57 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 86509 invoked by uid 500); 18 Feb 2016 18:59:57 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 86496 invoked by uid 99); 18 Feb 2016 18:59:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 18:59:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A0DE8C307B for ; Thu, 18 Feb 2016 18:59:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id id4FbLAqXiIb for ; Thu, 18 Feb 2016 18:59:55 +0000 (UTC) Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com [209.85.213.47]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A48985F1E9 for ; Thu, 18 Feb 2016 18:59:54 +0000 (UTC) Received: by mail-vk0-f47.google.com with SMTP id e185so53449017vkb.1 for ; Thu, 18 Feb 2016 10:59:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PxHB9ihps5XtWvqO4Dvrx8wVrgL3v4h4FLUXdn9UWic=; b=nyLnlWlemvQi4xTamZ9EMJHs3VmpRFcWa9Dh5+ktTPaE4behafN08BITTTvcbGLx+x 3Ko5Dt0+N4L4Av/TRYkDQPsYmPuuwfhcVDK0oDr1buvFHTMO3K1+J0tK4hqX/vk/3j/L OY8cDO6dt58LN7XjNqiUYHL5a/NKP8zgQZzdMQlbok5TF/qcNAHEnJyST8fx3Y79mIYI mYXU6vLsqyJdF1Wg8OJOJ7lYKxHxUxSGLatqDtHHImNQDxyTDGbjoqW0vy6Q0nBDLnVZ +XN54F92dv33m160cZ00HpeHoKKIChyC0t1Xh3eMJbuoaRUNrDeufBSlW87F4pceXxEp kLRw== 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:date :message-id:subject:from:to:content-type; bh=PxHB9ihps5XtWvqO4Dvrx8wVrgL3v4h4FLUXdn9UWic=; b=G0LLU1qppowFKAjcSCoKwYJTbHcFCKoDilMKQJi/x/paATaEsQbt83ZzehZ0cbN9Gq 1j/To/2rMaZQzEFAcME5mOc77I44xXQcO/KGISd6hnQhOcPA8v2SMrZXl9Tb6wKHJ8Mu JO82ujmNcGmS7KcJc1Hvhu+d1xMNab4mtlXvt70POilL/7UsNDBsk6zNUKYJLYwn11vm 62KXWt2GQzyBdHSahSulpod3ft1wDT0Iqb5H6SlB0Nv+/+hNc6n7c3yE30QKcdWWeZ3N f52WgsOC6bfvHPT5+20Od7YNK2SVoa8E72+mZlledOb4xLHhB7lGnYDRFVtUXySzq8JW rBZA== X-Gm-Message-State: AG10YOS3U7D9J3l8+Th4rv6rNOXgTWNNaCEuexSmz/wy1uHTS7hr91Ye3oomJit7wb1GlA/9PgvmhZMxM/2s6A== MIME-Version: 1.0 X-Received: by 10.31.164.13 with SMTP id n13mr7338283vke.64.1455821993498; Thu, 18 Feb 2016 10:59:53 -0800 (PST) Received: by 10.176.3.195 with HTTP; Thu, 18 Feb 2016 10:59:53 -0800 (PST) In-Reply-To: References: Date: Thu, 18 Feb 2016 13:59:53 -0500 Message-ID: Subject: Re: Enable compiler optimization by default? From: Joris Van Remoortere To: dev@mesos.apache.org Content-Type: multipart/alternative; boundary=001a11416af8c75db3052c0ff887 --001a11416af8c75db3052c0ff887 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable +1 (binding) with the condition that we fix the flag mixing problem between CXXFLAGS and --enable-optimize --enable-debug, even if it is to disallow it for now. I want to avoid surprising behavior with implicit flags such as optimize: passing irrelevant CXXFLAGS magically turns it into a debug build. On Thu, Feb 18, 2016 at 1:27 PM, Neil Conway wrote: > Great! I created https://issues.apache.org/jira/browse/MESOS-4709 to > track this issue. > > Neil > > On Thu, Feb 18, 2016 at 12:43 AM, Jan Schlicht wrote: > > +1 > > > > On Thu, Feb 18, 2016 at 2:34 AM, Klaus Ma > wrote: > > > >> +1; > >> > >> So our CI will also update to use optimisation flags, right? We need = to > >> highlight this in upgrade document to our user; I used to meet so > strange > >> behaviour after changing -O level. > >> > >> On Thu, Feb 18, 2016 at 8:51 AM James DeFelice < > james.defelice@gmail.com> > >> wrote: > >> > >> > +1 > >> > On Feb 17, 2016 7:24 PM, "Neil Conway" wrote= : > >> > > >> > > Hi folks, > >> > > > >> > > At present, Mesos defaults to compiling with "-O0"; to enable > compiler > >> > > optimizations, the user needs to specify "--enable-optimize". > >> > > > >> > > I'd like to propose we change the default, for a few reasons: > >> > > > >> > > (1) The autoconf default for CFLAGS/CXXFLAGS is "-O2 -g". > Anecdotally, > >> > > I think most software packages compile with a reasonable level of > >> > > optimizations enabled by default. > >> > > > >> > > (2) I think we should make the default configure flags appropriate > for > >> > > end-users (rather than Mesos developers): developers will be > familiar > >> > > enough with Mesos to tune the configure flags according to their o= wn > >> > > preferences. > >> > > > >> > > (3) The performance consequences of not enabling compiler > >> > > optimizations can be pretty severe: 5x in a benchmark I just ran, > and > >> > > we've seen between 2x and 30x (!) performance differences for some > >> > > real-world workloads. > >> > > > >> > > Neil > >> > > > >> > > >> -- > >> > >> Regards, > >> ---- > >> Da (Klaus), Ma (=E9=A9=AC=E8=BE=BE), PMP=C2=AE | Advisory Software Eng= ineer > >> IBM Platform Development & Support, STG, IBM GCG > >> +86-10-8245 4084 | madaxa@cn.ibm.com | http://k82.me > >> > > > > > > > > -- > > *Jan Schlicht* > > Distributed Systems Engineer, Mesosphere > --001a11416af8c75db3052c0ff887--