Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mail.openembedded.org (Postfix) with ESMTP id B9975606D1 for ; Tue, 19 Jul 2016 09:16:14 +0000 (UTC) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP; 19 Jul 2016 02:16:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,388,1464678000"; d="scan'208";a="141756880" Received: from ssuppiah-mobl1.gar.corp.intel.com (HELO peggleto-mobl.ger.corp.intel.com) ([10.255.140.160]) by fmsmga004.fm.intel.com with ESMTP; 19 Jul 2016 02:16:13 -0700 From: Paul Eggleton To: Gary Thomas Date: Tue, 19 Jul 2016 21:16:11 +1200 Message-ID: <9795063.LvlJDZtIeJ@peggleto-mobl.ger.corp.intel.com> Organization: Intel Corporation User-Agent: KMail/4.14.10 (Linux/4.5.7-202.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <578DC9D2.1060607@mlbassoc.com> References: <578DC9D2.1060607@mlbassoc.com> MIME-Version: 1.0 Cc: bitbake-devel@lists.openembedded.org Subject: Re: New progress meters X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2016 09:16:16 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi Gary, On Tue, 19 Jul 2016 08:33:54 Gary Thomas wrote: > I quite like the new progress meters, but they seem to not be very > accurate. I was just rebuilding webkitgtk and got this: > > 0: webkitgtk-2.12.3-r0 do_compile (pid 30494) 96% > |####################################### | ETA: 0:02:58 > > Sadly, it sat there, waffling between 02:58 and 03:44 for about > 10 minutes... > > * How is this [estimate] calculated? > * Should I be concerned when it's not accurate (or even moving)? There are a few different types of progress handling for different types of tasks. To be specific in this example, for recipes that inherit cmake during do_compile we report the progress that the cmake-produced makefile prints out. The ETA, which is implemented in the python-progressbar code we are using is kind of a rolling average calculated based on recent progress, so it's possible it's inaccurate in this instance if there are places where it stalls. Python-progressbar has an alternative ETA mode which we could try, but to be honest when the progress value sent to it isn't evenly apportioned with respect to time and we don't have any weighting information, there's not a lot anyone can do to estimate time remaining accurately. If it's truly bothersome we could just turn off the ETA display I suppose. > n.b. I wasn't sure the best place for this question, the bitbake > list, generic Yocto or OE-core. Feel free to redirect as needed. Technically this is an OE question although I know that isn't obvious - there are parts of this that are implemented in BitBake and parts in OE, so asking here is fine. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre