• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Command to test NIC performance/settings

Scheduled Pinned Locked Moved General pfSense Questions
10 Posts 3 Posters 846 Views
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.
  • J
    jsmiddleton4
    last edited by Dec 23, 2021, 5:44 PM

    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?

    J 1 Reply Last reply Dec 23, 2021, 6:15 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @jsmiddleton4
      last edited by Dec 23, 2021, 6:15 PM

      @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?

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      J 1 Reply Last reply Dec 23, 2021, 6:38 PM Reply Quote 1
      • J
        jsmiddleton4 @johnpoz
        last edited by Dec 23, 2021, 6:38 PM

        @johnpoz

        Thanks. Those kinds of things but also to see if my tweak for increasing tx/rx buffer size took.

        J 1 Reply Last reply Dec 23, 2021, 6:42 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @jsmiddleton4
          last edited by Dec 23, 2021, 6:42 PM

          @jsmiddleton4

          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.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          J 1 Reply Last reply Dec 23, 2021, 6:43 PM Reply Quote 1
          • J
            jsmiddleton4 @johnpoz
            last edited by Dec 23, 2021, 6:43 PM

            @johnpoz

            Yes. He's been incredibly helpful.

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Dec 23, 2021, 6:59 PM

              Yeah, everything else that can be read should be in the sysctl output.

              J 1 Reply Last reply Dec 23, 2021, 7:01 PM Reply Quote 1
              • J
                jsmiddleton4 @stephenw10
                last edited by Dec 23, 2021, 7:01 PM

                @stephenw10

                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

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Dec 23, 2021, 7:03 PM

                  You can just parse the full output but I'd expect to see everything for that NIC from: sysctl dev.igc.0

                  J 1 Reply Last reply Dec 23, 2021, 7:15 PM Reply Quote 1
                  • J
                    jsmiddleton4 @stephenw10
                    last edited by jsmiddleton4 Dec 23, 2021, 7:25 PM Dec 23, 2021, 7:15 PM

                    @stephenw10

                    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?

                    J 1 Reply Last reply Dec 23, 2021, 7:24 PM Reply Quote 0
                    • J
                      johnpoz LAYER 8 Global Moderator @jsmiddleton4
                      last edited by Dec 23, 2021, 7:24 PM

                      @jsmiddleton4 what exactly did you set?

                      you should be able to view what that is directly with sysctl whatever that is..

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      1 Reply Last reply Reply Quote 1
                      1 out of 10
                      • First post
                        1/10
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received