public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Sockets getting full..
@ 2007-06-27 20:07 James Hunter
  2007-06-28  8:38 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: James Hunter @ 2007-06-27 20:07 UTC (permalink / raw)
  To: ecos-discuss

Hi,

We are using a PowerQuicc III (MPC8541@677Mhz - so plenty of grunt)
which is tasked with sending and receiving data over a UDP connection.
The test application is only receiving data from another external UDP
transmitter.

What we are seeing is almost immediately the socket is filling up with
data as if your application is not reading the data back quickly enough.


This test application spins on a Select() waiting to get packets, its
executing around ~10k times per second so fast enough to catch any
packets - we do sleep at the end of this loop.

The sending unit sends around 700 packets per second, however we receive
only around 120 (going on the results returned by Select function).
However the packets received are in order (using a sequence number) so
nothing is dropped, they just appear to fall out of Select really really
slow (we are aiming for a lot more than 700 packets per second from the
HW)

We have also extended MBUFs / Clusters as we originally were running out
at start-up (4Mb is set to the network stuff - we have 128Mb DDR2 on
board).

Any help would be greatly appreciated.

Regards,

James

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] Sockets getting full..
  2007-06-27 20:07 [ECOS] Sockets getting full James Hunter
@ 2007-06-28  8:38 ` Andrew Lunn
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2007-06-28  8:38 UTC (permalink / raw)
  To: James Hunter; +Cc: ecos-discuss

On Wed, Jun 27, 2007 at 11:25:32AM +0100, James Hunter wrote:
> Hi,
> 
> We are using a PowerQuicc III (MPC8541@677Mhz - so plenty of grunt)
> which is tasked with sending and receiving data over a UDP connection.
> The test application is only receiving data from another external UDP
> transmitter.
> 
> What we are seeing is almost immediately the socket is filling up with
> data as if your application is not reading the data back quickly enough.
> 
> 
> This test application spins on a Select() waiting to get packets, its
> executing around ~10k times per second so fast enough to catch any
> packets - we do sleep at the end of this loop.
> 
> The sending unit sends around 700 packets per second, however we receive
> only around 120 (going on the results returned by Select function).
> However the packets received are in order (using a sequence number) so
> nothing is dropped, they just appear to fall out of Select really really
> slow (we are aiming for a lot more than 700 packets per second from the
> HW)

I think we need to see the code in order to understand this....

  Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* RE: [ECOS] Sockets getting full..
@ 2007-06-28 15:12 James Hunter
  0 siblings, 0 replies; 3+ messages in thread
From: James Hunter @ 2007-06-28 15:12 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

> -----Original Message-----
> From: Andrew Lunn [mailto:andrew@lunn.ch] 
> Sent: 27 June 2007 23:45
> To: James Hunter
> Cc: ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] Sockets getting full..
> 
> On Wed, Jun 27, 2007 at 11:25:32AM +0100, James Hunter wrote:
> > Hi,
> > 
> > We are using a PowerQuicc III (MPC8541@677Mhz - so plenty of grunt) 
> > which is tasked with sending and receiving data over a UDP 
> connection.
> > The test application is only receiving data from another 
> external UDP 
> > transmitter.
> > 
> > What we are seeing is almost immediately the socket is 
> filling up with 
> > data as if your application is not reading the data back 
> quickly enough.
> > 
> > 
> > This test application spins on a Select() waiting to get 
> packets, its 
> > executing around ~10k times per second so fast enough to catch any 
> > packets - we do sleep at the end of this loop.
> > 
> > The sending unit sends around 700 packets per second, however we 
> > receive only around 120 (going on the results returned by 
> Select function).
> > However the packets received are in order (using a sequence 
> number) so 
> > nothing is dropped, they just appear to fall out of Select really 
> > really slow (we are aiming for a lot more than 700 packets 
> per second 
> > from the
> > HW)
> 
> I think we need to see the code in order to understand this....
> 
>   Andrew
> 
Hi,

We resolved the issue, appears to be some legacy i2c code that was
causing us problems.

Thanks,

James.

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

end of thread, other threads:[~2007-06-28  8:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-27 20:07 [ECOS] Sockets getting full James Hunter
2007-06-28  8:38 ` Andrew Lunn
2007-06-28 15:12 James Hunter

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).