From owner-freebsd-stable@freebsd.org Tue Oct 3 10:51:55 2017 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 D7BB8E38461 for ; Tue, 3 Oct 2017 10:51:55 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: from mail-wr0-x235.google.com (mail-wr0-x235.google.com [IPv6:2a00:1450:400c:c0c::235]) (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 6A24D6EB02; Tue, 3 Oct 2017 10:51:55 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: by mail-wr0-x235.google.com with SMTP id k62so5988866wrc.9; Tue, 03 Oct 2017 03:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/Ar1iPk4apoevZFJwC9PvJZZH7WNgAAc7XE6hM2v6HY=; b=ZJO0LLf/SpO7o0DLTvF3VZColCZF92WEV6dfwbEVfnUZBlYimow7kfLe7cEVVlNdH3 HNvbHULC54GelrKHE40OERSmU0cVQxnputQlTjbeogLNnftQHwhntwDGNoXBxwnvyXNP KodHGYQn5+fjSzcfW2zU2Rv/bzBbWpKmqHu0M14ZskZ6Eh7jNOW09jzDdv2gQla+WeWN 0Su9fDQ6Tc8XZ/MpYzbXfZpe6v7EPnSllOJ47lBF4hwFGdBwQmWzwU0Sc4SXuB2nGdLT 9lAIiZA7EKn0+vQF0gH+9o+D3gYqUfMNFbvGbq3J/tFgcEkT6n1afwX7/z9FPq/zXG9O 6v9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=/Ar1iPk4apoevZFJwC9PvJZZH7WNgAAc7XE6hM2v6HY=; b=JxZP+CweHu+tkzgjeoMimxkzF/LT6f4TziPGLO/7abHi9fD0LrEiUt+v4kO2JnC35i 4FnEUnG/kJsM0FNOBkBAoQv6uUgWrTnY4TUBM43i9+49lqfuGC9dYw+PI96E08zlG4N5 JODm8DPHWS+F/T1PWfTjFVN640SivWa1piu+IFhxBFZZEbxdz5HxzYI9WO2zkx+ngpO0 rS7JMb+rOU4Z5gMWwXq5cZuM3jHeeEcBnEbd9uBVSobHztcqZP4H7uwPHbYNtynNnQRg ARNY4hlS+beIXqPVOSExgfFHoDVo6GhPDO7o7T5q2P3cxLgf45zqPdmWJhaUmptYIolk MIKg== X-Gm-Message-State: AHPjjUjOc9DfHGOJ0X0rcpK/sOzXky3hHxmA6561pEM7WngxGI6cEfBf 4JQVhTv7YZpY31BSdrSUYLsXMiV6b/c= X-Google-Smtp-Source: AOwi7QBXdcyuk3msRAe1MqHYqyQ0exvAvPHQ6QugsAHEnEdgma5OEsSIB0RsGZ01FeVL9iP725dHFA== X-Received: by 10.223.199.196 with SMTP id y4mr18558905wrg.181.1507027912811; Tue, 03 Oct 2017 03:51:52 -0700 (PDT) Received: from gmail.com (tao.xtaz.uk. [2001:8b0:fe33::10]) by smtp.gmail.com with ESMTPSA id y13sm10988624wrc.81.2017.10.03.03.51.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Oct 2017 03:51:52 -0700 (PDT) Date: Tue, 3 Oct 2017 11:51:50 +0100 From: Matt Smith To: Andriy Gapon Cc: Dan Mack , freebsd-stable@FreeBSD.org Subject: Re: my build time impact of clang 5.0 Message-ID: <20171003105150.GE48518@gmail.com> Mail-Followup-To: Matt Smith , Andriy Gapon , Dan Mack , freebsd-stable@FreeBSD.org References: <9b295409-dc65-fe03-9fd1-1464b8d991c9@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <9b295409-dc65-fe03-9fd1-1464b8d991c9@FreeBSD.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2017 10:51:56 -0000 On Oct 03 09:46, Andriy Gapon wrote: >On 02/10/2017 21:34, Dan Mack wrote: >> >> Another significant change in build times this week - not complaining, >> just my observations on build times; same server doing buildworld during >> the various phases of compiler changes over the last year or so FWIW: >> >> |--------------+--------------+---------------+----------+-----------| >> | Ver (svn-id) | World (mins) | Kernel (mins) | Relative | Comment | >> |--------------+--------------+---------------+----------+-----------| >> | 292733 | 90 | 16 | 0.5 | | >> | 299948 | 89 | 16 | 0.5 | | >> | 322724 | 174 | 21 | 1.0 | clang 4.x | >> | 323310 | 175 | 21 | 1.0 | clang 4.x | >> | 323984 | 175 | 21 | 1.0 | clang 4.x | >> | 324130 | 285 | 21 | 1.6 | clang 5.x | >> | 324204 | 280 | 21 | 1.6 | clang 5.x | >> |--------------+--------------+---------------+----------+-----------| > >It shocked me to a realize that I can build several platforms that do not have >clang support yet (like powerpc) one after another in a fraction of time >required to build just amd64. > It is insane now how long it takes on lesser powered hardware. When we had gcc as the system compiler I could do a full buildworld/kernel in around 3 hours. With the first version of clang that we had imported I think it increased to around 6 hours. Clang4 made it around 8 hours. And now clang5 it took 12 hours! This is on an Intel Atom D525 with amd64. And I have a few things disabled too like lib32 and profiled libraries. -- Matt