]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commit
lwip: support for memory pools
authorHugo Lefeuvre <hugo.lefeuvre@neclab.eu>
Thu, 18 Jun 2020 13:59:08 +0000 (15:59 +0200)
committerFelipe Huici <felipe.huici@neclab.eu>
Wed, 10 Mar 2021 13:08:37 +0000 (14:08 +0100)
commit3c85bd46a3f764039d8f6e3128c8f5d7096dbd13
treed973aea08527ea4cf70216f178ce99ddb3fdea7b
parent0330ef2df069d5d1a76abf2c3477201dbece7868
lwip: support for memory pools

Add support for memory pools.

There are now two allocation modes:

(1) heap only, malloc/free are used everywhere (even for memp allocations)
(2) memory pools with custom pools.

The pools are sized to provide good performance for Redis: 1000x256,
1000x512, 1000x1256. Overall this is equivalent to ~2MB, which might be
too much in some cases. In any case, these should be manually tweaked
for performance critical applications.

Increase the defaults for the maximum number of TCP sockets and listeners
(was previously 5, now 64), and expose them via the menuconfig.

Signed-off-by: Hugo Lefeuvre <hugo.lefeuvre@neclab.eu>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Config.uk
include/lwipopts.h
include/lwippools.h [new file with mode: 0644]