Kr1s77 / Kr1s77.github.io

Good as water, light as chrysanthemum.
https://kr1s77.github.io/
Other
8 stars 3 forks source link

linux network #3

Open Kr1s77 opened 3 years ago

Kr1s77 commented 3 years ago

$ iftop -i eth0

                                      191Mb                                  381Mb                                  572Mb                                  763Mb                             954Mb
└─────────────────────────────────────┴──────────────────────────────────────┴──────────────────────────────────────┴──────────────────────────────────────┴──────────────────────────────────────
k8s-master                                                                          => xxx.xxx.xxx.xxx                                                                     1.49Mb  5.94Mb  4.66Mb
                                                                                    <=                                                                                     24.8Kb  52.1Kb  47.2Kb
k8s-master                                                                          => xxx.xxx.xxx.xxx                                                                     33.8Kb  81.5Kb  74.7Kb
                                                                                    <=                                                                                     11.1Kb  15.6Kb  14.8Kb
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
TX:             cum:   8.57MB   peak:   11.9Mb                                                                                                                    rates:   1.82Mb  6.19Mb  4.89Mb
RX:                     354KB            257Kb                                                                                                                              169Kb   203Kb   203Kb
TOTAL:                 8.91MB           12.2Mb                                                                                                                             1.98Mb  6.39Mb  5.09Mb

$ nethogs eth0

NetHogs version 0.8.5

    PID USER     PROGRAM                                                                                                                                      DEV        SENT      RECEIVED       
   2021 root     /usr/local/python3.7/bin/python3.7                                                                                                           eth0        0.952       5.062 KB/sec