[ECOS] Problem with mbufs...
Andrew Lunn
andrew.lunn@ascom.ch
Wed Dec 18 06:10:00 GMT 2002
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
More information about the Ecos-discuss
mailing list