Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Mar 2011 09:48:11 -0700
From:      Jack Vogel <jfvogel@gmail.com>
To:        Mike Tancsa <mike@sentex.net>
Cc:        Olivier Smedts <olivier@gid0.org>, FreeBSD current mailing list <current@freebsd.org>
Subject:   Re: problems with em(4) since update to driver 7.2.2
Message-ID:  <AANLkTik_XPsVWL-KqHkPic1KQ0SdCSk6u_9ykRefi3VE@mail.gmail.com>
In-Reply-To: <4D94A354.9080903@sentex.net>
References:  <BANLkTinrfZbO%2BMUDDuzsoaN1y-=_O8LgNA@mail.gmail.com> <4D94A354.9080903@sentex.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This problem happens for only one reason, you have insufficient mbufs to
fill your rx ring. Its odd that it would differ when its static versus a
loadable
module though!

With the 7.2.2 driver you also will use different mbuf pools depending on
the MTU you are using. If you use jumbo frames it will use 4K clusters,
if you go to 9K jumbos it will use 9K mbuf clusters. The number of these
allocated by default is small (like 6400 small :).

I would use 'netstat -m' to see what the pools look like. Now that I think
about it, the reason it might fail as loaded while not as built in is you
get
allocation of the mbufs first when static, and something else is taking them
before you can load when loadable??

I suspect all will be fine if you increase the pool size that you are using.

Jack


On Thu, Mar 31, 2011 at 8:52 AM, Mike Tancsa <mike@sentex.net> wrote:

> On 3/31/2011 11:20 AM, Olivier Smedts wrote:
> > Hello,
> >
> > I've got a problem under FreeBSD 9.0-CURRENT amd64 with the em driver.
> > It's loaded as a module. I was previously using r219710 (2011-03-17)
> > without any problem, but with latest HEAD I can't even send a ping.
> > Here's what appears in dmesg. I tried unloading / loading the module,
> > did not help. At the end I loaded my old if_em.ko and it worked :
>
> I ran into a similar problem with specific types of em NICs. For some
> reason, if it was compiled into the kernel it worked. As a module doing
> a netboot, it would fail.  Does it work for you if the driver is
> statically compiled into the kernel by chance ?
>
>        ---Mike
>
> --
> -------------------
> Mike Tancsa, tel +1 519 651 3400
> Sentex Communications, mike@sentex.net
> Providing Internet services since 1994 www.sentex.net
> Cambridge, Ontario Canada   http://www.tancsa.com/
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTik_XPsVWL-KqHkPic1KQ0SdCSk6u_9ykRefi3VE>