How to use my NIC efficiently?

-1

I have a physical server with 120 CPU core 256 GB Memory and 10Gb NIC.

Output of cat /proc/meminfo:

MemTotal:       263848172 kB
MemFree:        259933660 kB
MemAvailable:   259816128 kB
Buffers:            2124 kB
Cached:           422456 kB
SwapCached:            0 kB
Active:           356024 kB
Inactive:         140352 kB
Active(anon):      72488 kB
Inactive(anon):    10136 kB
Active(file):     283536 kB
Inactive(file):   130216 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       4194300 kB
SwapFree:        4194300 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         71944 kB
Mapped:            27696 kB
Shmem:             10812 kB
Slab:             441236 kB
SReclaimable:     212224 kB
SUnreclaim:       229012 kB
KernelStack:       16976 kB
PageTables:         4200 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    136118384 kB
Committed_AS:     291508 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      773672 kB
VmallocChunk:   34157623292 kB
HardwareCorrupted:     0 kB
AnonHugePages:      8192 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      548736 kB
DirectMap2M:    10874880 kB
DirectMap1G:    258998272 kB

Output of ethtool:

Settings for ens8f1:
        Supported ports: [ FIBRE ]
        Supported link modes:   10000baseT/Full
        Supported pause frame use: Symmetric
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  10000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Port: FIBRE
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x00000007 (7)
                               drv probe link
        Link detected: yes 

And Output of lscpus:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                120
On-line CPU(s) list:   0-119
Thread(s) per core:    2
Core(s) per socket:    15
Socket(s):             4
NUMA node(s):          4
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 62
Model name:            Intel(R) Xeon(R) CPU E7-4870 v2 @ 2.30GHz
Stepping:              7
CPU MHz:               1260.198
CPU max MHz:           2900.0000
CPU min MHz:           1200.0000
BogoMIPS:              4588.95
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              30720K
NUMA node0 CPU(s):     0-14,60-74
NUMA node1 CPU(s):     15-29,75-89
NUMA node2 CPU(s):     30-44,90-104
NUMA node3 CPU(s):     45-59,105-119

I wrote a DDOS script for legitimate purposes. I have good resources but I never send grater than 50 Mbit/s traffic from this machine.

I think somehow the operating system is limiting me. For example, I am opening thread as much as the number of CPU cores. And I am giving "no buffer space available" error message. I increased vmmem_max value but I think this time, the buffer is filling again because my NIC cannot send packets fast enought.

Any idea ?

Best regards..

centos
nic
asked on Server Fault Mar 16, 2020 by Rasit aydin • edited Mar 16, 2020 by Rasit aydin

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0