Command to test NIC performance/settings
-
I'm trying to find the commands I can run via Command tab to check if my tweaks are actually being written, status of the NIC's, etc.
Seems like a simple thing, a list of commands one can enter for diagnostics.
Dang me if I can find it. I've found everything else including if I want to, how to compile my own versions of stuff.
Feel like I'm trying to get a sip of water out of a fire hydrant.
Is there a list somewhere that shows me the commands I can use to see the status of my NIC's?
-
@jsmiddleton4 said in Command to test NIC performance/settings:
status of my NIC's?
Like what exactly?
ifconfig would give you a bunch of info
igb2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 description: WLAN options=e120bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER,RXCSUM_IPV6,TXCSUM_IPV6> ether 00:08:a2:0c:e6:20 inet6 fe80::208:a2ff:fe0c:e620%igb2 prefixlen 64 scopeid 0x3 inet 192.168.2.253 netmask 0xffffff00 broadcast 192.168.2.255 media: Ethernet autoselect (1000baseT <full-duplex>) status: active nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pciconf -lv
Would give you info about the actual nic
igb2@pci0:0:20:0: class=0x020000 card=0x1f418086 chip=0x1f418086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Ethernet Connection I354' class = network subclass = ethernet
What sort of specific info are you looking for?
-
Thanks. Those kinds of things but also to see if my tweak for increasing tx/rx buffer size took.
-
Hum on the buffer, I have not played with that sort of stuff in years. But I do believe you can set a debug or something with sysctl and then viewing the log to make sure they were set, etc.
The hardware guru around here would be @stephenw10 - lets see if he notices my flag to him and then chimes in.. If I had such a question, he would be first person I would think of to know the answer.
-
Yes. He's been incredibly helpful.
-
Yeah, everything else that can be read should be in the sysctl output.
-
So just run it all by itself? Any parameters?
I found some information in Syslog under OS.
I'm searching now for what this means:
igc0: Using 4 RX queues 4 TX queues
igc0: Using 1024 TX descriptors and 1024 RX descriptors -
You can just parse the full output but I'd expect to see everything for that NIC from:
sysctl dev.igc.0
-
I think its the parameters I'm looking for more than the command. Thanks.
I appreciate highly the Intel 2.5gbe driver being part of 2.5.2. Someone left it named as if the Intel 1gb card though. Funny......
Lots of numbers and parameter names. Nothing I could look at and say "There's my rx/tx buffer tweak from loader.conf.local" though.
dmesg | grep igc0
netmap queues/slots: TX 4/1024, RX 4/1024
I set the buffers to 4096 in loader.conf.local. Is this telling me its still 1024 or is this telling me 4x1024? Or is this not relevant and I need to stop doing this and watch Jerry Springer?
-
@jsmiddleton4 what exactly did you set?
you should be able to view what that is directly with sysctl whatever that is..