This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Problem with mbufs...
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: "M.PREM KUMAR" <prem at cdotb dot ernet dot in>
- Cc: eCos Disuss <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 18 Dec 2002 14:47:51 +0100
- Subject: Re: [ECOS] Problem with mbufs...
- References: <20021218114635.GH1044@biferten.ma.tech.ascom.ch> <Pine.OSF.4.21.0212181755470.6655-100000@ws9.cdotb.ernet.in>
On Wed, Dec 18, 2002 at 06:04:50PM +0500, M.PREM KUMAR wrote:
>
>
> Hi Andrew,
>
> First let me thankyou for the information provided.
> I am not using latest version of eCos. Is there any bug w.r.t mbufs in
> older version?
Depends on how old, but yes.
> Further, I am sorry I couldn't get your question, "Checking of
> receiver half of the code is not leaking as well"
> Can you kindly elaborate it.
ping sends and receives. You say you have checked eth_drv_tx_done. So
you have checked for leaks in mbufs used for transmitting. Have you
looked for leaks of mbufs when receiving the ICMP ECHO reply?
> Current value of CYGPKG_NET_MEM_USAGE is 262144 (Default value).
This controls the number of mbufs, clusters and memory pool. See
packages/net/tcpip/current/src/ecos/support.c If you want more mbufs,
increase this.
Also, please CC ecos-discuss@sources.redhat.com
Andrew
>
>
> rgds
> prem
>
>
>
>
>
>
> On Wed, 18 Dec 2002, Andrew Lunn wrote:
>
> > Are you using the latest version of eCos from anoncvs?
> >
> > > I am running ping program on our card (Uses MPC860 as base
> > > processor). When trying to send more pings, there is a warning of
> > > "eth_recv out of Mbufs" and I am not able to send further pings. Ethernet
> > > driver is calling eth_drv_tx_done() properly for freeing resources (in
> > > this case
> > > mbufs.)
> >
> > Have you checked that the receiver half of the code is not leaking as
> > well?
> >
> > > I want to give a try by increasing amount of Mbufs. Can anyone tell how
> > > to increase the amount of MBufs. Further, if anyone already had a similar
> > > problem, provide with the necessary information to solve.
> >
> > Increase CYGPKG_NET_MEM_USAGE.
> >
> > Andrew
> >
>
>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss