XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Stats Network throughput (b)its not (B)ytes

    Scheduled Pinned Locked Moved Xen Orchestra
    3 Posts 3 Posters 413 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? Offline
      A Former User
      last edited by

      I noticed the Network throughput in Stats is in Bytes not bits. I am suggesting this be changed to be "more correct". A common misconception is that Bytes also applies to networking, it doesn't. In the context of networking speeds the factor is 1000 not 1024. Memory allocation or storage use a factor of 1024. In the context of networking a factor of 1000 is the industry standard.

      N 1 Reply Last reply Reply Quote 0
      • olivierlambertO Online
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi!

        Sadly, this is the number fetched from XAPI directly, not computed by Xen Orchestra…

        It would require an extra computation to change the number of the fly. It might be better to modify XAPI to use the right unit from the start.

        1 Reply Last reply Reply Quote 0
        • N Offline
          nackstein @Guest
          last edited by

          @noaks98 I agree that networking use bits per seconds and base 10 powers, the same for storage where the base 10 is the industry standard. Things change at the OS level, Linux stick with base 2 for almost anything, see df, memory pages etc.
          If you look at the sar utilities even the network is reported with base 2 kilobytes.

                        rxkB/s
                               Total number of kilobytes received per second.
          
                        txkB/s
                               Total number of kilobytes transmitted per second.
          

          looking at the code of sar (rndr_stats.c)

                          render(isdb, pre, PT_NOFLAG,
                                 "%s\ttxkB/s", NULL,
                                 cons(sv, sndc->interface, NULL),
                                 NOVAL,
                                 txkb / 1024,
                                 NULL);
          

          I suppose that the "Linux" standard prevails here.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post