From nobody@FreeBSD.org  Thu Nov  7 15:13:54 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id B0E04D50
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Nov 2013 15:13:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 9CBCD26E3
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Nov 2013 15:13:54 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rA7FDrnD026774
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 7 Nov 2013 15:13:53 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rA7FDrnS026739;
	Thu, 7 Nov 2013 15:13:53 GMT
	(envelope-from nobody)
Message-Id: <201311071513.rA7FDrnS026739@oldred.freebsd.org>
Date: Thu, 7 Nov 2013 15:13:53 GMT
From: Ralf Wenk <iz-rpi03@hs-karlsruhe.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Regression since r255138: network is slow, kernel: failed to create new mbuf
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         183753
>Category:       kern
>Synopsis:       Regression since r255138: network is slow, kernel: failed to create new mbuf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 07 15:20:00 UTC 2013
>Closed-Date:    Wed Dec 25 03:27:36 UTC 2013
>Last-Modified:  Wed Dec 25 03:27:36 UTC 2013
>Originator:     Ralf Wenk
>Release:        FreeBSD 10.0-CURRENT arm
>Organization:
Hochschule Karlsruhe, University of Applied Sciences
>Environment:
FreeBSD raspberry-pi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r255138: Wed Nov  6 08:42:26 CET 2013     root@IZ-FreeBSD1:/usr/obj/arm.armv6/root/rpi/255138/sys/RPI-Bsc  arm
>Description:
While rsync(1)-ing an 1 GB file the RPi gets almost unresponsible after a
while and on the serial console there are lots of

  smsc0: warning: failed to create new mbuf

kernel messages. Occasionaly dotted with the

  [zone: mbuf_cluster] kern.ipc.nmbclusters limit reached

kernel message.

rsync shows a transfer speed of 27.40kB/s (over DSL) even if the files are
already in sync and only the timestamps differ.

Increasing the value of kern.ipc.nmbclusters by the factor of 2 just delayed
the moment the problem happens.

The first release which shows this is r25518. r255166 and older do not.

rsync shows a transfer speed of 535.46kB/s (over DSL) on r255166 and older
releases.
>How-To-Repeat:
Use a 1GB file as transfer file.
If already transfered touch(1) transfer file at the source host.

rsync -trv --modify-window=1 --compress --progress --stats --inplace --delete transfer_file user@target.host:/path/to/

Await problem around 10% of the file is transfered.
>Fix:
Undo r255138.

>Release-Note:
>Audit-Trail:

From: Oliver Pinter <oliver.pntr@gmail.com>
To: Ralf Wenk <iz-rpi03@hs-karlsruhe.de>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/183753: Regression since r255138: network is slow, kernel:
 failed to create new mbuf
Date: Thu, 7 Nov 2013 23:51:56 +0100

 On 11/7/13, Ralf Wenk <iz-rpi03@hs-karlsruhe.de> wrote:
 >
 >>Number:         183753
 >>Category:       kern
 >>Synopsis:       Regression since r255138: network is slow, kernel: failed
 >> to create new mbuf
 >>Confidential:   no
 >>Severity:       non-critical
 >>Priority:       low
 >>Responsible:    freebsd-bugs
 >>State:          open
 >>Quarter:
 >>Keywords:
 >>Date-Required:
 >>Class:          sw-bug
 >>Submitter-Id:   current-users
 >>Arrival-Date:   Thu Nov 07 15:20:00 UTC 2013
 >>Closed-Date:
 >>Last-Modified:
 >>Originator:     Ralf Wenk
 >>Release:        FreeBSD 10.0-CURRENT arm
 >>Organization:
 > Hochschule Karlsruhe, University of Applied Sciences
 >>Environment:
 > FreeBSD raspberry-pi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r255138: Wed Nov
 > 6 08:42:26 CET 2013
 > root@IZ-FreeBSD1:/usr/obj/arm.armv6/root/rpi/255138/sys/RPI-Bsc  arm
 >>Description:
 > While rsync(1)-ing an 1 GB file the RPi gets almost unresponsible after a
 > while and on the serial console there are lots of
 >
 >   smsc0: warning: failed to create new mbuf
 >
 > kernel messages. Occasionaly dotted with the
 >
 >   [zone: mbuf_cluster] kern.ipc.nmbclusters limit reached
 >
 > kernel message.
 >
 > rsync shows a transfer speed of 27.40kB/s (over DSL) even if the files are
 > already in sync and only the timestamps differ.
 >
 > Increasing the value of kern.ipc.nmbclusters by the factor of 2 just
 > delayed
 > the moment the problem happens.
 >
 > The first release which shows this is r25518. r255166 and older do not.
 >
 > rsync shows a transfer speed of 535.46kB/s (over DSL) on r255166 and older
 > releases.
 >>How-To-Repeat:
 > Use a 1GB file as transfer file.
 > If already transfered touch(1) transfer file at the source host.
 >
 > rsync -trv --modify-window=1 --compress --progress --stats --inplace
 > --delete transfer_file user@target.host:/path/to/
 >
 > Await problem around 10% of the file is transfered.
 >>Fix:
 > Undo r255138.
 >
 >>Release-Note:
 >>Audit-Trail:
 >>Unformatted:
 > _______________________________________________
 > freebsd-bugs@freebsd.org mailing list
 > http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 > To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
 >
 
 possible workaround:
 
 sysctl kern.eventtimer.idletick=1

From: Ralf Wenk <iz-rpi03@hs-karlsruhe.de>
To: Oliver Pinter <oliver.pntr@gmail.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/183753: Regression since r255138: network is slow, kernel: 
 failed to create new mbuf
Date: Fri, 08 Nov 2013 09:23:19 +0100

 On 11/7/13, Oliver Pinter <oliver.pntr@gmail.com> wrote:
 
 > On 11/7/13, Ralf Wenk <iz-rpi03@hs-karlsruhe.de> wrote:
 > >
 > >>Number:         183753
 > >>Category:       kern
 > >>Synopsis:       Regression since r255138: network is slow, kernel: failed
 > >> to create new mbuf
 > >>Confidential:   no
 > >>Severity:       non-critical
 > >>Priority:       low
 > >>Responsible:    freebsd-bugs
 > >>State:          open
 > >>Quarter:
 > >>Keywords:
 > >>Date-Required:
 > >>Class:          sw-bug
 > >>Submitter-Id:   current-users
 > >>Arrival-Date:   Thu Nov 07 15:20:00 UTC 2013
 > >>Closed-Date:
 > >>Last-Modified:
 > >>Originator:     Ralf Wenk
 > >>Release:        FreeBSD 10.0-CURRENT arm
 > >>Organization:
 > > Hochschule Karlsruhe, University of Applied Sciences
 > >>Environment:
 > > FreeBSD raspberry-pi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r255138: Wed Nov
 > > 6 08:42:26 CET 2013
 > > root@IZ-FreeBSD1:/usr/obj/arm.armv6/root/rpi/255138/sys/RPI-Bsc  arm
 > >>Description:
 > > While rsync(1)-ing an 1 GB file the RPi gets almost unresponsible after a
 > > while and on the serial console there are lots of
 > >
 > >   smsc0: warning: failed to create new mbuf
 > >
 > > kernel messages. Occasionaly dotted with the
 > >
 > >   [zone: mbuf_cluster] kern.ipc.nmbclusters limit reached
 > >
 > > kernel message.
 > >
 > > rsync shows a transfer speed of 27.40kB/s (over DSL) even if the files are
 > > already in sync and only the timestamps differ.
 > >
 > > Increasing the value of kern.ipc.nmbclusters by the factor of 2 just
 > > delayed
 > > the moment the problem happens.
 > >
 > > The first release which shows this is r25518. r255166 and older do not.
 
 Oh, I got the version numbers absolutely wrong here. The sentences should be:
 
  The first release which shows this is r255138. r255136 and older do not.
 
 > > rsync shows a transfer speed of 535.46kB/s (over DSL) on r255166 and older
 > > releases.
 > >>How-To-Repeat:
 > > Use a 1GB file as transfer file.
 > > If already transfered touch(1) transfer file at the source host.
 > >
 > > rsync -trv --modify-window=1 --compress --progress --stats --inplace
 > > --delete transfer_file user@target.host:/path/to/
 > >
 > > Await problem around 10% of the file is transfered.
 > >>Fix:
 > > Undo r255138.
 > >
 > >>Release-Note:
 > >>Audit-Trail:
 > >>Unformatted:
 > > _______________________________________________
 > 
 > possible workaround:
 > 
 > sysctl kern.eventtimer.idletick=1
 > 
 
 Just tried it with r255138. Unfortunately there is no change in behavior,
 so it is not a workaround.
 
 Ralf
 

From: Ralf Wenk <iz-rpi03@hs-karlsruhe.de>
To: Oliver Pinter <oliver.pntr@gmail.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/183753: Regression since r255138: network is slow, kernel: 
 failed to create new mbuf
Date: Fri, 08 Nov 2013 14:35:02 +0100

 I just tried a r257841 Kernel as the log message mentions r255138 and I am
 using smbfs as the source of the 1 GB file.
 
 Transfer speed is up to the same value as before r255138 and the kernel
 did not print a message about mbufs or the kern.ipc.nmbclusters limit.
 
 This bug report can be closed. Thank you.
 
State-Changed-From-To: open->closed 
State-Changed-By: glebius 
State-Changed-When: Wed Dec 25 03:26:20 UTC 2013 
State-Changed-Why:  
Fixed in r257841. The PR is duplicate of kern/182963. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183753 
>Unformatted:
