All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shannon Nelson <snelson@pensando.io>
To: Jacob Keller <jacob.e.keller@intel.com>, Jakub Kicinski <kubakici@wp.pl>
Cc: netdev@vger.kernel.org
Subject: Re: [iproute2-next v1] devlink: display elapsed time during flash update
Date: Wed, 30 Sep 2020 14:55:57 -0700	[thread overview]
Message-ID: <d2cf51a6-f09d-7507-e5f1-e6cd84819554@pensando.io> (raw)
In-Reply-To: <7a9ff898-bdae-9dab-12a9-30d825b6b67d@intel.com>

On 9/30/20 2:43 PM, Jacob Keller wrote:
> On 9/30/2020 2:36 PM, Jakub Kicinski wrote:
>> On Wed, 30 Sep 2020 14:20:43 -0700 Jacob Keller wrote:
>>>> Thanks, Jake.  In general this seems to work pretty well.  One thing,
>>>> tho'...
>>>>
>>>> Our fw download is slow (I won't go into the reasons here) so we're
>>>> clicking through the Download x% over maybe 100+ seconds.  Since we send
>>>> an update every 3% or so, we end up seeing the ( 0m 3s ) pop up and stay
>>>> there the whole time, looking a little odd:
>>>>
>>>>       ./iproute2-5.8.0/devlink/devlink dev flash pci/0000:b5:00.0 file
>>>> ionic/dsc_fw_1.15.0-150.tar
>>>>       Preparing to flash
>>>>       Downloading  37% ( 0m 3s )
>>>>     ...
>>>>       Downloading  59% ( 0m 3s )
>>>>     ...
>>>>       Downloading  83% ( 0m 3s )
>> I'm not sure how to interpret this - are you saying that the timer
>> doesn't tick up or that the FW happens to complete the operation right
>> around the 3sec mark?
>>
>
> The elapsed time is calculated from the last status message we receive.
> In Shannon's case, the done/total % status messages come approximately
> slow enough that the elapsed time message keeps popping up. Since it's
> measuring from the last time we got a status message, it looks weird
> because it resets to 3 seconds over and over and over.
>
>>>> And at the end we see:
>>>>
>>>>       Preparing to flash
>>>>       Downloading 100% ( 0m 3s )
>>>>       Installing ( 0m 43s : 25m 0s )
>>>>       Selecting ( 0m 5s : 0m 30s )
>>>>       Flash done
>>>>
>>>> I can have the driver do updates more often in order to stay under the 3
>>>> second limit and hide this, but it looks a bit funky, especially at the
>>>> end where I know that 100% took a lot longer than 3 seconds.
>>>>    
>>> I think we have two options here:
>>>
>>> 1) never display an elapsed time when we have done/total information
>>>
>>> or
>>>
>>> 2) treat elapsed time as a measure since the last status message
>>> changed, refactoring this so that it shows the total time spent on that
>>> status message.
>>>
>>> Thoughts on this? I think I'm leaning towards (2) at the moment myself.
>>> This might lead to displaying the timing info on many % calculations
>>> though... Hmm
>> Is the time information useful after stage is complete? I'd just wipe
>> it before moving on to the next message.
>>
> My point was about changing when we calculated elapsed time from to be
> "since the status message changed" rather than "since the last time the
> driver sent any status even if the message remains the same".

This would be better, and is a bit like what I was imagining early on, 
but at this point I'm wondering if the display of the elapsed time is 
actually useful, or simply making it messier.

>
> I think clearing the timing message is a good improvement either way, so
> I'll do that too.
Yes.

sln



  reply	other threads:[~2020-09-30 21:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-29 21:56 [iproute2-next v1] devlink: display elapsed time during flash update Jacob Keller
2020-09-29 22:44 ` Shannon Nelson
2020-09-30 21:20   ` Jacob Keller
2020-09-30 21:36     ` Jakub Kicinski
2020-09-30 21:43       ` Jacob Keller
2020-09-30 21:55         ` Shannon Nelson [this message]
2020-09-30 22:02           ` Jacob Keller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d2cf51a6-f09d-7507-e5f1-e6cd84819554@pensando.io \
    --to=snelson@pensando.io \
    --cc=jacob.e.keller@intel.com \
    --cc=kubakici@wp.pl \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.