From nobody Fri Apr 25 22:40:38 2025 X-Original-To: freebsd-wireless@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 4Zknqq72dKz5tBG9 for ; Fri, 25 Apr 2025 22:40:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Zknqq2mW6z3cl8; Fri, 25 Apr 2025 22:40:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-54af20849bbso3095147e87.0; Fri, 25 Apr 2025 15:40:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745620852; x=1746225652; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AIPqCp19D57MXpb8E1gP2vxXRoaOQIbRZbnzx7JSWQE=; b=PFMexRGn5HXnnS7Co5Eq8Ic0x8MYVNNTObqJaQ/8ihug0oL14BCAnIrKZc9LXyjrdm y+FOFfzrl1NBz63pKnEYWb8s9Zrue3LElXxLZwbRXl/LAu1JyZbX7ZdriJmsEqbkawom 5AKtwOyR9F4fV3bwvmEUVBpnx+b0Fr7RuA1y9GEjLLbCgQvI4q/j8Y4v+KuPpYkQ9GXW oqB3Faai5reljcZdNN3erUA19V5K6xZ41yf9RvAiRQw0k2urmIEhQJMdyQtQmBwnK1Ah gKv1TNFXaa6lSHjM60Oi5W2/jOQFLRVc+Qyqn49izGBuewYeqfHnpZpMwECNvXl8GK68 7VIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745620852; x=1746225652; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AIPqCp19D57MXpb8E1gP2vxXRoaOQIbRZbnzx7JSWQE=; b=L+X3yPTKuM6y44/rcbG5Y4yxL7X6hyvFjYI4v9aYM993DZjB8dQ4Z0KKeKysmWmYDK 2VZMebrQD3gfyM42QJ+3t6Zcitt31kuMcFlEnR8mkNSndHEs8nfZeSYsxAjv1pQMrlum wi8Lo12RUPgAdA9Zn+7GKNhEQEgpwfBCxSKCSi3nanJuwSwpa1Vu9eS0ioY26LPGbLXF eESJsx6wCPBPr61WyezEAeZ76DXuTvYlYtHoYpAA3UgAXGACSj9FrgpT0TtZeOjuiYmv jzkrYaaoK4mswVeDBXiVXlW0NK6cx5YWBuPJDXn3yaGroexKxJ8XxQcHhPCb5avn9ayB LUpQ== X-Gm-Message-State: AOJu0Yz64zd1Pp5r49wsC0jMvFOQie/WOEdkLGf/hdldVPG3B98X9ytC UilTddWjSRxOaLIsDjSUtzxADbJGkXoxP5+xeJyU5fyaPa7no/BjzLtX+wJXMkWqOdfn3Vn9gKz A9M9zgUbEqCNKxoDWhZ5Q2v+U3T+e/g== X-Gm-Gg: ASbGncun2looyiOT/68NIJLF+e1tosbAplna86DPXmYewI8xdwmRIngyCC68ic5ljlt ODrJ2yw3CDnIP2KaDbDVrpAIxnZJhj3W9wDDKvtkLSkZejr6njlCwj0DUnN2JRJem7TE0ugK05j 0MgJcTKn2N5FJrcaKovN3ReDBkiM71NVpTDA== X-Google-Smtp-Source: AGHT+IHt5ynEnuED7QVszDPs/XdmEDrOhcN6wjsCxNcy0a9jTTmwjhHE6ednpxSHn5jv6FYh/8vZ8LJahKwcaIB1lYY= X-Received: by 2002:ac2:5d47:0:b0:545:8a1:5379 with SMTP id 2adb3069b0e04-54e90001400mr249916e87.43.1745620852082; Fri, 25 Apr 2025 15:40:52 -0700 (PDT) List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-wireless@freebsd.org Sender: owner-freebsd-wireless@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Fri, 25 Apr 2025 15:40:38 -0700 X-Gm-Features: ATxdqUE0KKysTMNAIXyIoCcKgjNdnY8tmDBS9VumtQPO_LImS51j7_5cjJn8K5A Message-ID: Subject: Re: rtwn0: rtwn_rx_copy_to_mbuf: could not allocate RX mbuf To: Nuno Teixeira Cc: freebsd-wireless@freebsd.org Content-Type: multipart/alternative; boundary="000000000000cd116e0633a2063b" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4Zknqq2mW6z3cl8 X-Spamd-Bar: ---- --000000000000cd116e0633a2063b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Did you see more mbuf alloc failures in between these calls? -adrian On Fri, 25 Apr 2025 at 15:37, Nuno Teixeira wrote: > Before iperf3: > > netstat -mb > 27/8103/8130 mbufs in use (current/cache/total) > 1/5333/5334/1009905 mbuf clusters in use (current/cache/total/max) > 0/4318 mbuf+clusters out of packet secondary zone in use (current/cache) > 0/3810/3810/504952 4k (page size) jumbo clusters in use > (current/cache/total/max) > 0/0/0/149615 9k jumbo clusters in use (current/cache/total/max) > 0/0/0/84158 16k jumbo clusters in use (current/cache/total/max) > 9K/27931K/27940K 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 > > After iperf3 (trigger) > > % netstat -mb > 26/8104/8130 mbufs in use (current/cache/total) > 1/5333/5334/1009905 mbuf clusters in use (current/cache/total/max) > 0/4318 mbuf+clusters out of packet secondary zone in use (current/cache) > 0/3810/3810/504952 4k (page size) jumbo clusters in use > (current/cache/total/max) > 0/0/0/149615 9k jumbo clusters in use (current/cache/total/max) > 0/0/0/84158 16k jumbo clusters in use (current/cache/total/max) > 8K/27932K/27940K 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 > > Adrian Chadd escreveu (sexta, 25/04/2025 =C3=A0(= s) > 23:33): > > > > there's nothing odd in the stats output. > > > > Try netstat -mb before and after. This error really feels like it's > somewhere else in the kernel. > > > > > > > > -adrian > > > > > -- > Nuno Teixeira > FreeBSD UNIX: Web: https://FreeBSD.org > --000000000000cd116e0633a2063b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Did you see more mbuf alloc failures in between these call= s?




-adrian<= /div>


On Fri, 25 Apr 2025 at 15:37, Nun= o Teixeira <eduardo@freebsd.org> wrote:
Be= fore iperf3:

netstat -mb
27/8103/8130 mbufs in use (current/cache/total)
1/5333/5334/1009905 mbuf clusters in use (current/cache/total/max)
0/4318 mbuf+clusters out of packet secondary zone in use (current/cache) 0/3810/3810/504952 4k (page size) jumbo clusters in use
(current/cache/total/max)
0/0/0/149615 9k jumbo clusters in use (current/cache/total/max)
0/0/0/84158 16k jumbo clusters in use (current/cache/total/max)
9K/27931K/27940K 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

After iperf3 (trigger)

% netstat -mb
26/8104/8130 mbufs in use (current/cache/total)
1/5333/5334/1009905 mbuf clusters in use (current/cache/total/max)
0/4318 mbuf+clusters out of packet secondary zone in use (current/cache) 0/3810/3810/504952 4k (page size) jumbo clusters in use
(current/cache/total/max)
0/0/0/149615 9k jumbo clusters in use (current/cache/total/max)
0/0/0/84158 16k jumbo clusters in use (current/cache/total/max)
8K/27932K/27940K 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

Adrian Chadd <
adrian.chadd@gmail.com> escreveu (sexta, 25/04/2025 =C3=A0(s) 23:3= 3):
>
> there's nothing odd in the stats output.
>
> Try netstat -mb before and after. This error really feels like it'= s somewhere else in the kernel.
>
>
>
> -adrian
>


--
Nuno Teixeira
FreeBSD UNIX:=C2=A0 <eduardo@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 https://Fr= eeBSD.org
--000000000000cd116e0633a2063b--