[Bug 187835] ngctl(8) strange behavior when adding more than 530 vlan through nethraph

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 20 11:30:01 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=187835

Aleksandr Fedorov <aleksandr.fedorov at itglobal.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aleksandr.fedorov at itglobal.
                   |                            |com

--- Comment #6 from Aleksandr Fedorov <aleksandr.fedorov at itglobal.com> ---
(In reply to Vladislav V. Prodan from comment #4)

> # ngctl list
> ngctl: send msg: No buffer space available

Socket limit exceeded here.

You can increase this limit using sysctls:
net.graph.recvspace=2048000
net.graph.maxdgram=2048000

But, it also can't exceed kern.ipc.maxsockbuf

Quick, example:

mk_ngeth.sh:
#!/bin/sh

for i in `jot 1000`
do
        ngctl mkpeer . eiface test ether
done

# sh mk_ngeth.sh
# ifconfig |grep ngeth|wc -l
    1000
# sysctl net.graph.recvspace
net.graph.recvspace: 20480
# sysctl net.graph.maxdgram
net.graph.maxdgram: 20480
# sysctl kern.ipc.maxsockbuf
kern.ipc.maxsockbuf: 2097152

# ngctl ls
ngctl: send msg: No buffer space available

# sysctl kern.ipc.maxsockbuf=32000000
kern.ipc.maxsockbuf: 2097152 -> 32000000
# sysctl net.graph.recvspace=24000000
net.graph.recvspace: 30000 -> 24000000

# ngctl ls | wc -l
    1002

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list