xiaoxiang781216 commented on PR #6836:
URL: https://github.com/apache/incubator-nuttx/pull/6836#issuecomment-1214369701

   > Hi @xiaoxiang781216 I think the idea of having more generic things is 
good, but in other hand for this case I don't know if it is a good idea, 
because now all subsystems will share the same IOBs if I got it correctly, 
right?
   
   The consumer and producer is same as before, but the ownership may transfer 
between the component/subsystem in the future, which make the static 
statistics(tag in the allocation) doesn't work anymore. 
   
   Many vendor complain that NuttX TCP/IP stack is slow than lwIP. The root 
cause is that IOB is only used internally in TCP/IP stack, netdev has to manage 
another internal memory pool for MAC layer process which mean that:
   
   1. We have copy the packet data between the driver and stack
   2. The driver consume more memory space for internal process
   
   Please see https://github.com/apache/incubator-nuttx/issues/6835 for more 
discussion.
   
   > Is there some way to trace statics again to know who is consuming more 
IOBs?
   
   After the change, the basic statistics(free v.s. alloc) still exist, but the 
individual track is temporally removed. Since network subsystem keep track all 
allocated conn, another approach is that:
   
   1. Loop trough all kind of conn
   2. Accumulate IOB usage in each conn
   
   We will provide the patch later once the key optimization is done. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to