[En-Nut-Discussion] TCP uses to much memory with zero window?

Harald Kipp harald.kipp at egnite.de
Wed Jun 10 16:09:33 CEST 2009


Bernd Walter wrote:

> Updating worked after a few minor compile time problems.
> System is runnning with 4.8.2.
> I have a bit more free RAM after the update :-)

We changed the direction. Unlike with previous upgrades we hope to be
able to reduce memory usage in newer versions. ;-)


> But the network problem is still there.
> I started with about 26k free and it went below 3k and finally the
> system hang.

I'm not sure that this is network related. After upgrading, you are now
able to dump heap usage.

Add

HWDEF+=-DNUTDEBUG_HEAP

to UserConf.mk (build and app tree) and rebuild everything. At specific
locations within your application call

NutHeapDump(<file-pointer>);

replacing <file-pointer> with your console stream, probably stdout.
You'll get a list of all allocated fragments, which will help to locate
the memory hole.

Harald




More information about the En-Nut-Discussion mailing list