From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 22:02:47 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D4C1106564A for ; Mon, 5 Dec 2011 22:02:47 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id A4BC68FC24 for ; Mon, 5 Dec 2011 22:02:46 +0000 (UTC) Received: by bkat2 with SMTP id t2so8843223bka.13 for ; Mon, 05 Dec 2011 14:02:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=/HyqzNN8j+Qm8g6Necv4lwPxdVJ24uNzr/PmABG17CA=; b=Vw55PM2OcZ9IWUAqRQ03IuI6JhBAYxLpcM+CSuKEanE5b9VRKVZPHBUwbWTtIPNqEp Dfv9312W9dJipS8E87I66OTLXiFoJiJ7ImNGVtOTGI/SY9K2ttrB8B4CizPuQCIyeHSr bbaaED1oWylR9R73a/QVs93DCIuA7/fr2wo54= MIME-Version: 1.0 Received: by 10.180.104.35 with SMTP id gb3mr15057417wib.11.1323122565142; Mon, 05 Dec 2011 14:02:45 -0800 (PST) Received: by 10.180.94.2 with HTTP; Mon, 5 Dec 2011 14:02:45 -0800 (PST) Date: Mon, 5 Dec 2011 17:02:45 -0500 Message-ID: From: Arnaud Lacombe To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: "Jukka A. Ukkonen" Subject: msk0: initialization failed: no memory for Rx buffers X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 22:02:47 -0000 Hi folks, FWIW, if any developers cares, I'm getting the same problem as Jukka A. Ukkonen in [0], that is, an msk(4) interface stuck in: msk0: prefetch unit stuck? msk0: initialization failed: no memory for Rx buffers hardware involved here is: # dmesg [...] mskc0: port 0xbe00-0xbeff mem 0xfdefc000-0xfdefffff irq 16 at device 0.0 on pci1 msk0: on mskc0 msk0: Ethernet address: 00:03:2d:09:94:3a miibus0: on msk0 # pciconf -l [...] mskc0@pci0:1:0:0: class=0x020000 card=0x43401148 chip=0x436211ab rev=0x19 hdr=0x00 mskc1@pci0:2:0:0: class=0x020000 card=0x43401148 chip=0x436211ab rev=0x19 hdr=0x00 mskc2@pci0:3:0:0: class=0x020000 card=0x43401148 chip=0x436211ab rev=0x19 hdr=0x00 mskc3@pci0:4:0:0: class=0x020000 card=0x43401148 chip=0x436211ab rev=0x19 hdr=0x00 Memory on the system is fine: # vmstat procs memory page disk faults cpu r b w avm fre flt re pi po fr sr ad0 in sy cs us sy id 0 0 0 52844K 1957M 0 0 0 0 0 0 0 51 34 4044 0 0 100 # netstat -m 719/946/1665 mbufs in use (current/cache/total) 717/825/1542/262144 mbuf clusters in use (current/cache/total/max) 717/819 mbuf+clusters out of packet secondary zone in use (current/cache) 0/5/5/131072 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/65536 9k jumbo clusters in use (current/cache/total/max) 0/0/0/32768 16k jumbo clusters in use (current/cache/total/max) 1613K/1906K/3520K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/3/6656 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 0 calls to protocol drain routines Faulty code is from 8-STABLE, i386, locally built with FLOWTABLES and ROUTETABLES=8. Jukka's report seems to point out that -current is no better. Problem happened after a few minutes of not-so-heavy transfer. - Arnaud [0]: http://lists.freebsd.org/pipermail/freebsd-questions/2011-November/235646.html