[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Improving performance when using OS.
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Improving performance when using OS. |
Date: |
Thu, 28 Oct 2010 08:42:14 +0200 |
Timmy Brolin <address@hidden> wrote:
> I had a look at the new lwip 1.4. It looks like
> LWIP_TCPIP_CORE_LOCKING_INPUT is conditional on LWIP_TCPIP_CORE_LOCKING.
> But that is not really necessary, is it?
> I think it should be possible to enable only
> LWIP_TCPIP_CORE_LOCKING_INPUT, without enabling CORE_LOCKING for the
> netconn and socket APIs.
Well, that depends: there should be no problem with the socket/netconn API to
use message passing (as if CORE_LOCKING==0), but the main loop of tcpip_thread
(as well as the timer-processing mbox_wait function) will have to "lock the
core" or it might be active in the stack at the same time as the input
function. To achieve that, CORE_LOCKING must be splitted into "core locking
available" and "use core locking from netconn API".
> [..] If _INPUT
> and _UDP can be made stable without too much effort, then people could
> start using those, and continue using the traditional mailbox system for
> TCP until core locking for TCP becomes a bit more stable.
Well, the problem of separating CORE_LOCKING between TCP and UDP might be that
the current code does not know (or care) at those places if a netconn is UDP,
TCP or RAW. This would introduce additional 'ifs', I guess (which might again
hurt performance).
Simon
--
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
- Re: [lwip-users] get dynamic ip on lwip-1.4.0.rc1, (continued)
- Re: [lwip-users] get dynamic ip on lwip-1.4.0.rc1, PHAM ANH THIEN, 2010/10/26
- Re: [lwip-users] get dynamic ip on lwip-1.4.0.rc1, Simon Goldschmidt, 2010/10/27
- Re: [lwip-users] get dynamic ip on lwip-1.4.0.rc1, PHAM ANH THIEN, 2010/10/27
- Re: [lwip-users] get dynamic ip on lwip-1.4.0.rc1, Simon Goldschmidt, 2010/10/27
- Re: [lwip-users] get dynamic ip on lwip-1.4.0.rc1, PHAM ANH THIEN, 2010/10/28
- [lwip-users] Improving performance when using OS., Timmy Brolin, 2010/10/26
- Re: [lwip-users] Improving performance when using OS., address@hidden, 2010/10/27
- Re: [lwip-users] Improving performance when using OS., Timmy Brolin, 2010/10/27
- Re: [lwip-users] Improving performance when using OS., address@hidden, 2010/10/27
- Re: [lwip-users] Improving performance when using OS., Timmy Brolin, 2010/10/27
- Re: [lwip-users] Improving performance when using OS.,
Simon Goldschmidt <=
- Re: [lwip-users] Improving performance when using OS., Timmy Brolin, 2010/10/28
- Re: [lwip-users] get dynamic ip on lwip-1.4.0.rc1, address@hidden, 2010/10/25