Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2020 21:16:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 187835] ngctl(8) strange behavior when adding more than 530 vlan through nethraph
Message-ID:  <bug-187835-7501-2L0rTCI7Tp@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-187835-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-187835-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D187835

--- Comment #4 from Vladislav V. Prodan <admin@support.od.ua> ---
In FreeBSD 12.1, after adding 300 vlans, the memory runs out to display the
`ngctl list`.

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

# netstat -m
4220/1100/5320 mbufs in use (current/cache/total)
4103/504/4607/62482 mbuf clusters in use (current/cache/total/max)
10/496 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/62482 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/18513 9k jumbo clusters in use (current/cache/total/max)
0/0/0/10413 16k jumbo clusters in use (current/cache/total/max)
18522K/2566K/21088K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for mbufs delayed (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters delayed (4k/9k/16k)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0 sendfile syscalls
0 sendfile syscalls completed without I/O request
0 requests for I/O initiated by sendfile
0 pages read by sendfile as part of a request
0 pages were valid at time of a sendfile request
0 pages were valid and substituted to bogus page
0 pages were requested for read ahead by applications
0 pages were read ahead by sendfile
0 times sendfile encountered an already busy page
0 requests for sfbufs denied
0 requests for sfbufs delayed

# sysctl net.graph.recvspace net.graph.maxdgram kern.ipc.nmbclusters
net.graph.recvspace: 20480
net.graph.maxdgram: 20480
kern.ipc.nmbclusters: 62482

# ngctl msg em2:lower gettable
...
 { hook=3D"vlan386" vlan=3D386 vid=3D386 } { hook=3D"vlan387" vlan=3D387 vi=
d=3D387 } {
hook=3D"vlan388" vlan=3D388 vid=3D388 } { hook=3D"vlan389" vlan=3D389 vid=
=3D389 } {
hook=3D"vlan390" vlan=3D390 vid=3D390 } { hook=3D"vlan391" vlan=3D391 vid=
=3D391 } {
hook=3D"vlan392" vlan=3D392 vid=3D392 } { hook=3D"vlan393" vlan=3D393 vid=
=3D393 } {
hook=3D"vlan394" vlan=3D394 vid=3D394 } { hook=3D"vlan395" vlan=3D395 vid=
=3D395 } {
hook=3D"vlan396" vlan=3D396 vid=3D396 } { hook=3D"vlan397" vlan=3D397 vid=
=3D397 } {
hook=3D"vlan398" vlan=3D398 vid=3D398 } { hook=3D"vlan399" vlan=3D399 vid=
=3D399 } ] }

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-187835-7501-2L0rTCI7Tp>