public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Out of MBUF panic
@ 2000-12-11  8:53 Grant Edwards
  2000-12-11  9:11 ` Colin Ford
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Edwards @ 2000-12-11  8:53 UTC (permalink / raw)
  To: ecos-discuss

I'm testing an eCos system using the GoAhead web server, and
after fetching 5 or 6 modes pages, I always get an "out of
mbuf" panic.  This is with eCos 1.3.1 and net 1.0b1 (with some
patches to fix mbuf corruption race conditions), with default
settings for everything.

Any idea what causes this?

I've spend the past day or wo trying to build using current
CVS snapshot, but my drivers aren't compatible with the CVS
sources.  Before I rework my drivers, is the CVS snapshot
likely to fix my problem?

-- 
Grant Edwards
grante@visi.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] Out of MBUF panic
  2000-12-11  8:53 [ECOS] Out of MBUF panic Grant Edwards
@ 2000-12-11  9:11 ` Colin Ford
  2000-12-11 10:29   ` Grant Edwards
  0 siblings, 1 reply; 3+ messages in thread
From: Colin Ford @ 2000-12-11  9:11 UTC (permalink / raw)
  To: Grant Edwards, Ecos Mailing List

Hi Grant,

I'm using the GoAhead web server on a MIPS R3000 with the
latest CVS version of eCos and net. I had a problem with memory
getting corrupted because of a select in the function socketSelect in
the file sockGen.c

Basically the memory for the file descriptors was way to small so I made

sure it was the size of the fd_set (32). Now it works a treat.

Col.



Grant Edwards wrote:

> I'm testing an eCos system using the GoAhead web server, and
> after fetching 5 or 6 modes pages, I always get an "out of
> mbuf" panic.  This is with eCos 1.3.1 and net 1.0b1 (with some
> patches to fix mbuf corruption race conditions), with default
> settings for everything.
>
> Any idea what causes this?
>
> I've spend the past day or wo trying to build using current
> CVS snapshot, but my drivers aren't compatible with the CVS
> sources.  Before I rework my drivers, is the CVS snapshot
> likely to fix my problem?
>
> --
> Grant Edwards
> grante@visi.com

--
===========================================
Colin Ford               PipingHot Networks
Software Engineer        +44 (0)1364 655510



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] Out of MBUF panic
  2000-12-11  9:11 ` Colin Ford
@ 2000-12-11 10:29   ` Grant Edwards
  0 siblings, 0 replies; 3+ messages in thread
From: Grant Edwards @ 2000-12-11 10:29 UTC (permalink / raw)
  To: Colin Ford; +Cc: Ecos Mailing List

On Mon, Dec 11, 2000 at 05:11:17PM +0000, Colin Ford wrote:

> > I'm testing an eCos system using the GoAhead web server, and
> > after fetching 5 or 6 modes pages, I always get an "out of
> > mbuf" panic.  This is with eCos 1.3.1 and net 1.0b1 (with some
> > patches to fix mbuf corruption race conditions), with default
> > settings for everything.
>
> I'm using the GoAhead web server on a MIPS R3000 with the
> latest CVS version of eCos and net. I had a problem with memory
> getting corrupted because of a select in the function
> socketSelect in the file sockGen.c
> 
> Basically the memory for the file descriptors was way to small
> so I made sure it was the size of the fd_set (32). Now it works
> a treat.

I'm assuming you did something like this at the beginning of
socketSelect:

    readFds = balloc(B_L, sizeof(fd_set));
	memset(readFds, 0,  sizeof(fd_set));
	writeFds = balloc(B_L,  sizeof(fd_set));
	memset(writeFds, 0,  sizeof(fd_set));
	exceptFds = balloc(B_L,  sizeof(fd_set));
	memset(exceptFds, 0,  sizeof(fd_set));

That fix improved things a bit.  Now I can fetch the page about
30 times before I get an out of MBUFs panic.

I'm still trying to build with current CVS, but the Ethernet
driver architecture has changed, and that's going to take some
work to get running.  :(

-- 
Grant Edwards
grante@visi.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-12-11 10:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-11  8:53 [ECOS] Out of MBUF panic Grant Edwards
2000-12-11  9:11 ` Colin Ford
2000-12-11 10:29   ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).