<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
</head>
<body>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
Chris,</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
Thanks for the reply.  I have tried different stack sizes for the Rx thread (4096 to 512 * 
4096), but it seems to top out at around 9 clusters.  I can call 
</span></font>
<font face="Arial" color="#000000" size="2">
<span style=" font-size:10pt">
rtems_bsdnet_show_mbuf_stats(); here is what i get:</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
in bsd_init() after the mbuf data structures are set up</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
************ MBUF STATISTICS ************</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
mbufs:4096    clusters:1024    free:1024</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
drops:   0       waits:   0  drains:   0</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
      free:4096          data:0           header:0           socket:0       </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
       pcb:0           rtable:0           htable:0           atable:0       </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
    soname:0           soopts:0           ftable:0           rights:0       </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
    ifaddr:0          control:0          oobdata:0       </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
at the beginning of fec_RxDaemon()</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
************ MBUF STATISTICS ************</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
mbufs:4096    clusters:1024    free:1024</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
drops:   0       waits:   0  drains:   0</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
      free:4095          data:1           header:0           socket:0       </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
       pcb:0           rtable:0           htable:0           atable:0       </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
    soname:0           soopts:0           ftable:0           rights:0       </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
    ifaddr:0          control:0          oobdata:0   </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
in mclalloc()</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
************ MBUF STATISTICS ************</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
mbufs:4096    clusters:1024    free:1018</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
drops:   0       waits:   0  drains:   1</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
      free:4088          data:8           header:0           socket:0       </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
       pcb:0           rtable:0           htable:0           atable:0       </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
    soname:0           soopts:0           ftable:0           rights:0       </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
    ifaddr:0          control:0          oobdata:0   </span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
<br />
</span>
</font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
Also, I noticed that the mclfree->mcl_next list is intact until I call rtems_bsdnet_newproc to 
start rxDaemon.  More specifically, it is ruined at the call of rtems_task_create inside 
rtems_bsdnet_newroc.  When it breaks, the list begins to include 0's at the same point, as 
expected, that rxDaemon is unable to continue.</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
<br />
</span>
</font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
Thanks again,</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
John</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
<br />
</span>
</font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
On 11 Jun 2010 at 8:42, Chris Johns wrote:</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
<br />
</span>
</font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
Date sent:                  Fri, 11 Jun 2010 08:42:17 +1000</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
From:                         Chris Johns <chrisj@rtems.org></span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
To:                             jcristy@motioncontrol.org</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
Copies to:                  rtems-users@rtems.org</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
Subject:                     Re: Error With Networking when Upgrading</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
<br />
</span>
</font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> On 11/06/10 3:33 AM, jcristy@motioncontrol.org wrote:</span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> ></span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> > I am working on upgrading from 4.7.1 to 4.9.4.  I am encountering an error: "Still Waiting for</span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> > mbuf cluster" in m_clalloc in rtems_glue.c.  It seems that in fec_RxDaemon it will allocate 5</span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> > clusters before coming to the error.  I haven't changed anything else.  Are there any things</span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> > that are known to cause this error that I can check for?</span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> ></span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> </span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> How much memory is allocated to the stack ?</span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> </span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> Are you able to call 'rtems_bsdnet_show_mbuf_stats()' ?</span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> </span></font>
</div>
<div align="left">
<font face="Arial" color="#7f0000" size="2">
<span style=" font-size:10pt">
> Chris</span></font>
</div>
<div align="left">
<font face="Arial" size="2">
<span style=" font-size:10pt">
<br />
</span>
</font>
</div>
<div align="left">
 </div>
</body>
</html>