From nobody Fri Apr 25 22:56:41 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 4ZkpBM1vszz5tCSZ for ; Fri, 25 Apr 2025 22:56:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) (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 4ZkpBL5nJcz3pvg; Fri, 25 Apr 2025 22:56:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-30db1bc464dso28346921fa.0; Fri, 25 Apr 2025 15:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745621815; x=1746226615; 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=skRXzg2wCM5z9ZsudPTrCCrQ9zL9JS/8EPhV8eToB7Q=; b=IAislZj/x5KGEPEYYHXjJAgxO+uEbniQS2ZGkeDwmnRDPOBJTKuFXVt8cFn03tA8OQ LnRzMVDGZFeEVNAp6Yu/dDnS1o1LEugpymbkrHJ5LuCmUfaHdEAL4GBhnZGcODXcZ9T6 C48O5UKMwdTldTR2eJW+1op+kAGej15hzX8UTtrr75qCmzUE9/LFBX5+QDcgcIT6qfUw cKZW8FNDUeikoA3xZzbSjNbx61kPdFuxaB+ZxOjco79FMX76Bs9jUHcqiAzVWvZ4wfyX XsWdIRHetrFHQE1vURoxP47p+Kjm1q1JsFfElF3TVtBfPm8tMoXbuuqUC9S2qx3RAt9N H5Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745621815; x=1746226615; 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=skRXzg2wCM5z9ZsudPTrCCrQ9zL9JS/8EPhV8eToB7Q=; b=Hq/oOFs2a6Cmr4FsbgL3OwDybT3uutlkIEhfofcgVn7mXWgatSbnhfBFGibB8FWHHb T5wLnQMl1YfASRMxqzCzbKYUJO3MvPSFnidZfcytAkapuqSwFuYQVX3MMynziBdBAcA0 YIASfl1L9oX74AOCfarR3SCQ1Kw8Q56amQPIFOThVnWpv+yq3/PGRuUAbotye+JyDafB sZOvL6BNfHXFW8h/yDH5FW4JNQOIh7NXnDij1hmXeUZl1Sy+OyPHbG4cDxYQLJzDDN7O b3pLREJvIB0vu9RzKjqfYfDPisYo+rqy5O0NaWAYPgls9t7PA7ntqZJAUlJgeIUVFX83 W5Zg== X-Gm-Message-State: AOJu0Yy2U3eD5xYnj2hNYmRWr2kndP+jvvR8K/ojZwYrDfozAAP6fX2m PVqa0vT4Z7u9T95iq89qhKXS3sAjdXqkmh+RRQjhPspbTwAaQnq35tPSFjBBCd0aAJ22bpmmXZP HETl2k7/V1019uKE7+lKzqnsMtrVWfA== X-Gm-Gg: ASbGncu5oTYbp3Fmiuihcr7ZeYpRzvq/LNCNOeHUPLWijechlAa8IZ5LkeUpQ3SR3Vv 7ZbRQqv4gs21BsSZrj7x4aEKwjodTRi0c2144lIJRoZwOCALmIklDqIwtn0D/qROTmmsr7zqjP7 ldn7tiKN0+QTfyR2I5U62hroY= X-Google-Smtp-Source: AGHT+IGy5r/yJZwHtgkRNmCkHYu8T7kM7+gUjEWqkxSBCtDr8E8+EY935iXDy5OuwxTzPqw4+uUnrK+Lg63UdCja6Cw= X-Received: by 2002:a2e:beab:0:b0:30d:b366:d259 with SMTP id 38308e7fff4ca-31906247f6fmr12751291fa.10.1745621814691; Fri, 25 Apr 2025 15:56:54 -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:56:41 -0700 X-Gm-Features: ATxdqUE8VXrmkcwBPBEo7MhEhYsN97K_lMWuizrK8hfD4_oFeOCIQ8KC6RYXiWA 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="0000000000002d4dc30633a240b0" 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: 4ZkpBL5nJcz3pvg X-Spamd-Bar: ---- --0000000000002d4dc30633a240b0 Content-Type: text/plain; charset="UTF-8" Hm, Can you modify the kernel source for me? I'd like to see how big totlen is when it fails? edit sys/dev/rtwn/usb/usb_rtwn_rx.c ,around line 129. Change that device_printf() line to device_printf(sc->sc_dev, "%s: could not allocate RX mbuf (%d bytes)\n", __func__, totlen); I want to see how big 'totlen' is when it fails. The vmstat / netstat allocator output isn't showing any failures; so i have a feeling somewhere it's trying to allocate overly large mbufs in this path (which I think are what, 8?) -adrian --0000000000002d4dc30633a240b0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hm,

Can you modify the kernel source fo= r me? I'd like to see how big totlen is when it fails?

edit sys/dev/rtwn/usb/usb_rtwn_rx.c ,around line 129. Change that = device_printf() line to

device_printf(sc->sc_de= v, "%s: could not allocate RX mbuf (%d bytes)\n",
=C2= =A0 =C2=A0 __func__, totlen);

I want to see how bi= g 'totlen' is when it fails. The vmstat / netstat allocator output = isn't showing any failures; so i have a feeling somewhere it's tryi= ng to allocate overly large mbufs in this path (which I think are what, 8?)=



-adrian
<= br>
--0000000000002d4dc30633a240b0--