public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] lwIP vs. FreeBSD performance tip
@ 2007-10-16  6:21 Øyvind Harboe
  0 siblings, 0 replies; only message in thread
From: Øyvind Harboe @ 2007-10-16  6:21 UTC (permalink / raw)
  To: eCos Discussion

Tip: use eCos gprof

Note to self: optimisation is 90% profiling and 10% programming. :-)

After running eCos gprof, it turned out that FreeBSD spent 90% in
idle_thread. No wonder that there was no observable difference between
lwIP and FreeBSD.

The problem turned out to be a classic TCP_NODELAY problem.

The PC sent a packet to our card and then waits for ACK. We'll have no
stinking sliding windows in our app! :-)

The eCos application would then send out the ack and FreeBSD/lwIP
would have TCP_NODELAY cleared by default and just sit there waiting
for something else to send out.

The eCos application code was ported from a PC app and I wonder if
Linux/Windows have smarts to deal with this sort of problem.

We may yet use lwIP as it fits within SRAM entirely, but until we
observe real performance problems in our application, lwIP is on hold.

-- 
Øyvind Harboe
http://www.zylin.com - eCos ARM & FPGA  developer kit

--
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] only message in thread

only message in thread, other threads:[~2007-10-16  6:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-16  6:21 [ECOS] lwIP vs. FreeBSD performance tip Øyvind Harboe

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