Waiting for mbufs
strauman at SLAC.Stanford.EDU
Wed Mar 12 22:29:23 UTC 2003
gregory.menke at gsfc.nasa.gov wrote:
> Till Straumann writes:
> > Here's the output of rtems_bsdnet_show_mbuf_stats()
> > The 'free' after 'clusters' shows you the number of
> > free clusters (which should in your case be 0 since
> > you get the 'Still waiting for mbuf cluster' message.
> > The 'free' in the 3rd line gives you the number of
> > free mbufs (which is not of interest here).
> > If you have enough memory, you can simply increase
> > the memory set aside for mbuf clusters in your bsdnet
> > configuration table.
> > ************ MBUF STATISTICS ************
> > mbufs:1440 clusters: 175 free: 143
> > drops: 0 waits: 0 drains: 0
> > free:1406 data:33 header:1 socket:0
> > pcb:0 rtable:0 htable:0 atable:0
> > soname:0 soopts:0 ftable:0 rights:0
> > ifaddr:0 control:0 oobdata:0
> The problem is clusters stays at 64, I'm testing now to see if the
> CLFREE is somehow putting NULL onto the top of the free list...
'clusters' gives you the (static) number of clusters you configured
into your system. It's never gonna change. Hence, I have configured
175 clusters, 143 of which are free. You just don't have enough :-)
pop up the byte count (1 cluster == 2k [on PPC], defined by
which, if zero, defaults to 128kB.
More information about the users