lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] mem(p) allocator change request


From: christiaan . simons
Subject: [lwip-devel] mem(p) allocator change request
Date: Mon, 29 Mar 2004 16:03:39 +0200




Hi,

A few weeks back there was a discussion
about the lwip memory allocator(s).
This is an interesting one since all complex
protocols like TCP or SNMP need some
form of dynamic memory.

A general purpose allocator will typically
produce some memory fragmentation
which is unacceptable for embedded systems.

A pool allocator avoids this issue by
using fixed size blocks. I don't see
a reason to remove this allocator
as Luke proposed. Other algorithms like
the buddy allocator might be more space
efficient though.

I would like to post the following change request:

Change the memp allocator to accept
externally allocated pools of arbitrary
size and type  blocks.
(inspired by the uC/OS-II allocator...)

In this scheme each module (like TCP
or SNMP) needs to provide one or more pools.

This removes the dependencies on structs
from various pieces of the stack.
Sub allocating the blocks can be done
on a per module basis.

I'm happy to look into this
(if there are no objections).
It requires some changes in various
bits and is somewhat intrusive.

Christiaan Simons

Axon Digital Design
Phone: +31 13 511 6666
Fax: +31 13 511 4151
web: www.axon.tv

The information contained in this communication is confidential and is
intended solely for the use of the individual or entity to whom it is
addressed. Axon Digital Design Group is neither liable for the proper nor
for the complete transmission of the information contained in this
communication nor for any delay in its receipt. Axon Digital Design Group
does not guarantee that the integrity of this communication has been
maintained nor that the communication is free of viruses, interceptions or
interference. If you are not the intended recipient of this communication,
you are hereby notified that reading, disseminating, distributing or
copying this message is strictly prohibited. In that case please return the
communication to the sender and delete and destroy all copies. In carrying
out its engagements, Axon Digital Design Group applies general terms and
conditions, which contain a clause that limits its liability. A copy of
these terms and conditions is available on request free of charge.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]