Hi,
I am wondering if anyone has tried to reduce the thread count needed for the TCPIP stack. I think that it currently uses 5? Many single threaded micros do it with one.
Matt
Reducing the thread count of the TCPIP stack.
-
- Active Member
- Posts: 50
- Joined: Sat Feb 13, 2010 12:04 pm
-
- XCore Legend
- Posts: 1274
- Joined: Thu Dec 10, 2009 10:20 pm
Its not the TCP/IP itself that gobbles the resources, its the software MAC/Ethernet, most MCUs use a hardware peripheral for this.
If you take a look at memory and thread usage using xmap/linker you will see where the resources get swallowed.
regards
Al
If you take a look at memory and thread usage using xmap/linker you will see where the resources get swallowed.
regards
Al
-
- Experienced Member
- Posts: 104
- Joined: Fri Dec 11, 2009 8:29 pm
Hi,Matt wrote:Hi,
I am wondering if anyone has tried to reduce the thread count needed for the TCPIP stack. I think that it currently uses 5? Many single threaded micros do it with one.
Matt
As Folknology says - the tcp stack is 1 thread and the mac is 5. In fact the mac could be reduced a bit depending on the functionality required. If anyone is interested at forking the repo and doing alternative
versions that trade off functionality for efficiency then let me know and I can help you get started but there is quite a bit of coding and testing involved to optimize it down.
The memory usage of the mac should be improved in the next release (or with the current HEAD) since the packet buffering scheme is more efficient.
Dave