Bug 183753 - Regression since r255138: network is slow, kernel: failed to create new mbuf
Summary: Regression since r255138: network is slow, kernel: failed to create new mbuf
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-07 15:20 UTC by rz-rpi03
Modified: 2013-12-25 03:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rz-rpi03 2013-11-07 15:20:00 UTC
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.

Fix: 

Undo r255138.
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.
Comment 1 Oliver Pinter 2013-11-07 22:51:56 UTC
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
Comment 2 rz-rpi03 2013-11-08 08:23:19 UTC
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
Comment 3 rz-rpi03 2013-11-08 13:35:02 UTC
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.
Comment 4 Gleb Smirnoff freebsd_committer freebsd_triage 2013-12-25 03:26:20 UTC
State Changed
From-To: open->closed

Fixed in r257841. The PR is duplicate of kern/182963.