From nobody Mon Jul 12 18:07:21 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AF14B1245665 for ; Mon, 12 Jul 2021 18:07:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GNsDT4V1Cz3Cqc for ; Mon, 12 Jul 2021 18:07:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 831A213823 for ; Mon, 12 Jul 2021 18:07:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 16CI7Lvt012837 for ; Mon, 12 Jul 2021 18:07:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16CI7LpJ012836 for bugs@FreeBSD.org; Mon, 12 Jul 2021 18:07:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 257141] make buildworld with time logging for each stage Date: Mon, 12 Jul 2021 18:07:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: wosch@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257141 Bug ID: 257141 Summary: make buildworld with time logging for each stage Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: wosch@FreeBSD.org The target "buildworld" does a lot of bootstrapping before we actually comp= ile our current source code. It would be nice if we can see how much time we sp= ent in each bootstrapping stage, and how much for the current code. Here is a simple patch which runs the make command together with the time(1) command. cd /usr/src && make buildworld egrep ' real | stage ' log.buildworld >>> stage 1.1: legacy release compatibility shims 0.18 real 0.11 user 0.11 sys >>> stage 1.2: bootstrap tools 51.61 real 957.71 user 26.57 sys >>> stage 2.1: cleaning up the object tree 5.25 real 76.18 user 30.59 sys 4.02 real 48.22 user 18.68 sys >>> stage 2.3: build tools 1.71 real 7.21 user 1.90 sys >>> stage 3: cross tools 699.53 real 17984.32 user 379.21 sys 0.08 real 0.03 user 0.04 sys >>> stage 3.1: recording build metadata 0.10 real 0.02 user 0.07 sys 0.04 real 0.02 user 0.01 sys >>> stage 4.1: building includes 4.23 real 62.01 user 13.27 sys >>> stage 4.2: building libraries 1165.88 real 33415.91 user 919.59 sys >>> stage 4.3: building lib32 shim libraries 0.23 real 0.34 user 0.50 sys 0.14 real 0.11 user 0.07 sys 1.16 real 6.80 user 1.73 sys 0.06 real 0.02 user 0.04 sys 0.18 real 0.34 user 0.16 sys 0.27 real 0.27 user 0.08 sys 0.10 real 0.50 user 0.23 sys 197.43 real 4766.05 user 401.80 sys >>> stage 4.4: building everything 273.69 real 6713.36 user 438.12 sys 2413.52 real 64045.82 user 2241.87 sys --=20 You are receiving this mail because: You are the assignee for the bug.=