From nobody Sun Jul 25 16:00:20 2021 X-Original-To: freebsd-ipfw@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0C11F12B1A46 for ; Sun, 25 Jul 2021 16:00:23 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GXnny6J2hz4tkZ; Sun, 25 Jul 2021 16:00:22 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.codepro.be", Issuer "R3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 9C63CBF0; Sun, 25 Jul 2021 16:00:22 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: by venus.codepro.be (Postfix, authenticated sender kp) id 25CED45137; Sun, 25 Jul 2021 18:00:21 +0200 (CEST) From: "Kristof Provost" To: "Michael Sierchio" Cc: freebsd-ipfw@freebsd.org Subject: Re: Dummynet in monolithic kernel broken on stable/12-n233319-c419c8231fb arm64 Date: Sun, 25 Jul 2021 18:00:20 +0200 X-Mailer: MailMate (1.13.2r5673) Message-ID: <71386648-8824-404A-87CB-D75A8B7E7F92@FreeBSD.org> In-Reply-To: References: List-Id: IPFW Technical Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ipfw List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ipfw@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ThisMailContainsUnwantedMimeParts: N Make sure you have 8f76eebce424de064f65fec5cdd105446a2de3bd (aae1a783dd444060f9a9ed9cf0fbb0c3ba7c6800 on stable/12). That’s almost certainly the fix you’re missing. Br, Kristof On 25 Jun 2021, at 3:05, Michael Sierchio wrote: > Addendum: > > This was working with > > stable/12-n233296-71efecb7eb1 arm64 > > > I don't know exactly when it broke, but it's broken with > > > stable/12-n233319-c419c8231fb arm64 > > > On Thu, Jun 24, 2021 at 5:55 PM Michael Sierchio > wrote: > >> >> For numerous reasons, I've been building security appliances with a >> monolithic kernel for a long time. A recent git pull on the >> stable/12 >> branch from github has borked dummynet. >> >> *root@graviton-1:/etc/ipfw 242#* ipfw pipe 1 config gred >> 0.01/12/36/0.75 >> noerror >> >> ipfw: net.inet.ip.dummynet.red_lookup_depth must be greater than zero >> >> *root@graviton-1:/etc/ipfw 243#* sysctl >> net.inet.ip.dummynet.red_lookup_depth=256 >> >> sysctl: oid 'net.inet.ip.dummynet.red_lookup_depth' is read only >> >> >> Interesting, but inconvenient. Just happened upon reboot. >> Attempting to >> set in /boot/loader.conf doesn't work. Any advice? >> >> >> Many (if not all) of the dummynet sysctls are borked >> >> >> *root@graviton-1:~ 201#* sysctl >> net.inet.ip.dummynet.red_max_pkt_size=1500 >> >> sysctl: oid 'net.inet.ip.dummynet.red_max_pkt_size' is read only >> >> >> >> *michael.sierchio@graviton-1:~ 201>* sysctl net.inet.ip.dummynet >> >> net.inet.ip.dummynet.io_pkt_drop: 0 >> >> net.inet.ip.dummynet.io_pkt_fast: 0 >> >> net.inet.ip.dummynet.io_pkt: 0 >> >> net.inet.ip.dummynet.queue_count: 0 >> >> net.inet.ip.dummynet.fsk_count: 0 >> >> net.inet.ip.dummynet.si_count: 0 >> >> net.inet.ip.dummynet.schk_count: 0 >> >> net.inet.ip.dummynet.expire_cycle: 0 >> >> net.inet.ip.dummynet.expire: 0 >> >> net.inet.ip.dummynet.tick_lost: 0 >> >> net.inet.ip.dummynet.tick_diff: 0 >> >> net.inet.ip.dummynet.tick_adjustment: 0 >> >> net.inet.ip.dummynet.tick_delta_sum: 0 >> >> net.inet.ip.dummynet.tick_delta: 0 >> >> net.inet.ip.dummynet.red_max_pkt_size: 0 >> >> net.inet.ip.dummynet.red_avg_pkt_size: 0 >> >> net.inet.ip.dummynet.red_lookup_depth: 0 >> >> net.inet.ip.dummynet.debug: 0 >> >> net.inet.ip.dummynet.io_fast: 0 >> >> net.inet.ip.dummynet.pipe_byte_limit: 1048576 >> >> net.inet.ip.dummynet.pipe_slot_limit: 100 >> >> net.inet.ip.dummynet.hash_size: 64 >> >> net.inet.ip.dummynet.fqpie.limit: 10240 >> >> net.inet.ip.dummynet.fqpie.flows: 1024 >> >> net.inet.ip.dummynet.fqpie.quantum: 1514 >> >> net.inet.ip.dummynet.fqpie.beta: 1250 >> >> net.inet.ip.dummynet.fqpie.alpha: 125 >> >> net.inet.ip.dummynet.fqpie.max_ecnth: 99 >> >> net.inet.ip.dummynet.fqpie.max_burst: 150000 >> >> net.inet.ip.dummynet.fqpie.tupdate: 15000 >> >> net.inet.ip.dummynet.fqpie.target: 15000 >> >> net.inet.ip.dummynet.fqcodel.limit: 10240 >> >> net.inet.ip.dummynet.fqcodel.flows: 1024 >> >> net.inet.ip.dummynet.fqcodel.quantum: 1514 >> >> net.inet.ip.dummynet.fqcodel.interval: 100000 >> >> net.inet.ip.dummynet.fqcodel.target: 5000 >> >> net.inet.ip.dummynet.pie.beta: 1250 >> >> net.inet.ip.dummynet.pie.alpha: 125 >> >> net.inet.ip.dummynet.pie.max_ecnth: 99 >> >> net.inet.ip.dummynet.pie.max_burst: 150000 >> >> net.inet.ip.dummynet.pie.tupdate: 15000 >> >> net.inet.ip.dummynet.pie.target: 15000 >> >> net.inet.ip.dummynet.codel.interval: 100000 >> >> net.inet.ip.dummynet.codel.target: 5000 >> -- >> >> "Well," Brahmā said, "even after ten thousand explanations, a fool >> is no >> wiser, but an intelligent person requires only two thousand five >> hundred." >> >> - The Mahābhārata >> > > > -- > > "Well," Brahmā said, "even after ten thousand explanations, a fool is > no > wiser, but an intelligent person requires only two thousand five > hundred." > > - The Mahābhārata