[En-Nut-Discussion] TCP uses to much memory with zero window?
enut at cicely.de
Thu Jun 11 13:57:00 CEST 2009
On Wed, Jun 10, 2009 at 04:09:33PM +0200, Harald Kipp wrote:
> 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. ;-)
Nice idea ;-)
For me the most missing feature in respect to save memory however would
be a listen queue.
Needing multiple threads for a service consumes a major part of memory
in my applications.
> > 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.
> to UserConf.mk (build and app tree) and rebuild everything. At specific
> locations within your application call
I like that feature.
> 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.
It agrees with my assumption.
After some time it fills up with many small netbuf allocations:
I can send you complete traces, if you want.
I have no local modifications in netbuf.c, so linenumbers should match
B.Walter <bernd at bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
More information about the En-Nut-Discussion