From owner-freebsd-arm@freebsd.org Mon Nov 25 20:20:46 2019 Return-Path: Delivered-To: freebsd-arm@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 6A6501B8EBC for ; Mon, 25 Nov 2019 20:20:46 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47MJM064NXz3PXt for ; Mon, 25 Nov 2019 20:20:44 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.110.112]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZKqA-0005oP-Rx; Mon, 25 Nov 2019 21:20:41 +0100 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-arm@freebsd.org, "bob prohaska" Subject: Re: Rpi3 smsc0: warning: failed to create new mbuf References: <20191125200512.GA24578@www.zefox.net> Date: Mon, 25 Nov 2019 21:20:14 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <20191125200512.GA24578@www.zefox.net> User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: -- X-Spam-Score: -2.9 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED, BAYES_00 autolearn=disabled version=3.4.2 X-Scan-Signature: ba572e8a3bde05b4b19613c12a9e49fc X-Rspamd-Queue-Id: 47MJM064NXz3PXt X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-2.55 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[klop.ws]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[88.28.190.195.list.dnswl.org : 127.0.10.0]; IP_SCORE(-0.75)[ip: (-0.86), ipnet: 195.190.28.0/24(-0.32), asn: 47172(-2.59), country: NL(0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2019 20:20:46 -0000 Check sysctl kern.ipc.nmbclusters and netstat -m | grep "mbuf clusters". The default is pretty low on rpi3. I run this script every hour from cron which is a 'poor man's' autotune. Works for me though. [root@rpi3 ~]# cat bin/nmbclustercheck.sh #! /bin/sh LINE=$( netstat -m | grep "mbuf clusters" | cut -d ' ' -f 1 ) CURRENT=$( echo $LINE | cut -d '/' -f 1 ) MAX=$( echo $LINE | cut -d '/' -f 4 ) if test $CURRENT -gt $(( $MAX / 2 )) then NEW_MAX=$(( $MAX * 2 )) echo Increase kern.upc.nmbclusters from $MAX to $NEW_MAX sysctl kern.ipc.nmbclusters=$NEW_MAX fi Regards, Ronald. On Mon, 25 Nov 2019 21:05:13 +0100, bob prohaska wrote: > An RPI3 running 13.0-CURRENT #0 r355024 stalled with a flood of > smsc0: warning: failed to create new mbuf > on the console. It was compiling www/chromium. > > The debugger started without difficulty, but unfortunately > I neglected to capture a backtrace. The machine rebooted > without difficulty and has resumed the build of www/chromium. > > Is a backtrace worth collecting if it happens again? > > Thanks for reading, > > bob prohaska > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"