Solved

Linux, dstat question

Posted on 2014-01-23
1
488 Views
Last Modified: 2014-01-23
My network utilizations scripts are not working properly on my SR-IOV cards, so I have to use dstat util I can figure out why.

In Linux, using dstat, I see the following

----total-cpu-usage---- -net/total- sda-
usr sys idl wai hiq siq| recv  send|util

 93   3   2   0   0   2|  31M   30M|   0
 95   3   0   0   0   2|  30M   30M|   0
 95   3   0   0   0   2|  32M   30M|0.04
 95   3   0   0   0   2|  31M   30M|   0
 95   3   0   0   0   2|  30M   30M|0.02

I am assuming that this means the NIC is btoh sending and receiving 30 M of BYTES, as opposed to bits.

Is this correct ?

Also, can I assume that this is roughly 2.5 percent utilization of a 10Gb NIC ?

Is the 2.5 percent util also correct ?

Open in new window


Thanks
0
Comment
Question by:Los Angeles1
1 Comment
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
Comment Utility
The changelog of dstat says for version 0.3:
Converted all values to bytes
See line 376 of this document which is Dag Wieers' "dstat" changelog:

https://github.com/dagwieers/dstat/blob/master/ChangeLog

The same changelog introduces a new  
--bits option to force bit-values on screen
for version 0.7.2svn, see line 5 of the document above.

So when M indicates Megabytes your assumption of ~ 2.5% utilization is - roughly - correct.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now