rolandriegel / nload

Real-time network traffic monitor
GNU General Public License v2.0
305 stars 35 forks source link

add -I option for watch peak traffic, add --phy option for RDMA #11

Open kirbyzhou opened 3 years ago

kirbyzhou commented 3 years ago

add -I option, show traffic stats of each interval instead of one second. Which is useful for watch peak traffic.

add --phy option, show traffic stats of phy(nic) rx/tx bytes instead of rx/tx bytes. Which is useful for RDMA card.

llamafilm commented 1 year ago

Thank you for adding this! I was looking for a way to monitor RDMA traffic and this is working well. I'm using Mellanox NIC on Rocky 9.1 with inbox driver. I hope cockpit adds support for this too.

kirbyzhou commented 1 year ago

Can you share your ib/net device name? I want to verify some problem.

llamafilm commented 1 year ago

Sure, it's called mlx5_0 according to ibv_devinfo. Is that what you meant? Or enp197s0f0np0 in ip.

kirbyzhou commented 1 year ago

Sure, it's called mlx5_0 according to ibv_devinfo. Is that what you meant? Or enp197s0f0np0 in ip.

Thanks. And can you try --list-props with your ib device to list all your property names?

llamafilm commented 1 year ago

Sorry, I don’t know what command you’re talking about.

kirbyzhou commented 1 year ago

Just run the foll

nload --list-props

Elliott Balsley @.***> 于2023年4月11日周二 22:14写道:

Sorry, I don’t know what command you’re talking about.

— Reply to this email directly, view it on GitHub https://github.com/rolandriegel/nload/pull/11#issuecomment-1503441366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZ6PHRQ4S7GGLKUSW73NDTXAVRMTANCNFSM4VXJ3NWQ . You are receiving this because you authored the thread.Message ID: @.***>

llamafilm commented 1 year ago

Ah ok here ya go. This is a dual-port Mellanox plus onboard NICs. nload-props.txt

Low-power commented 11 months ago

Interesting to see this, because I have a similar implementation (for infiniband) that I did years ago in version 0.7.4. I recently applied the changes into git and pushed it here in a separated branch for references: https://github.com/Low-power/nload/tree/rivoreo-fork-infiniband