From owner-freebsd-net@freebsd.org Thu Feb 20 11:30:01 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6B8C425D119 for ; Thu, 20 Feb 2020 11:30:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48NXST09tzz3P6T for ; Thu, 20 Feb 2020 11:30:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id E00B725D118; Thu, 20 Feb 2020 11:30:00 +0000 (UTC) Delivered-To: net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DE4B225D117 for ; Thu, 20 Feb 2020 11:30:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48NXSR6VHMz3P5X for ; Thu, 20 Feb 2020 11:29:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D88A620F00 for ; Thu, 20 Feb 2020 11:29:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 01KBTxWu073189 for ; Thu, 20 Feb 2020 11:29:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01KBTxVs073188 for net@FreeBSD.org; Thu, 20 Feb 2020 11:29:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 187835] ngctl(8) strange behavior when adding more than 530 vlan through nethraph Date: Thu, 20 Feb 2020 11:29:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: aleksandr.fedorov@itglobal.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2020 11:30:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D187835 Aleksandr Fedorov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aleksandr.fedorov@itglobal. | |com --- Comment #6 from Aleksandr Fedorov --- (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=3D2048000 net.graph.maxdgram=3D2048000 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=3D32000000 kern.ipc.maxsockbuf: 2097152 -> 32000000 # sysctl net.graph.recvspace=3D24000000 net.graph.recvspace: 30000 -> 24000000 # ngctl ls | wc -l 1002 --=20 You are receiving this mail because: You are the assignee for the bug.=