Hi Damjan, There is a comment that says "preallocate at least 16MB of hugepages per socket, if more is needed it is up to consumer to preallocate more". What does a consumer need to do in order to preallocate more?
I've recently had problems using AES-GCM with IPsec on a test system. Mempool allocation for the DPDK aesni_gcm crypto vdev fails during initialization. An error message like this is logged: vnet[4765]: crypto_create_session_drv_pool: failed to create session drv mempool I found that the DPDK memory allocation set with socket-mem is 64 MB by default and this is being exhausted by the various mempool allocations. This behavior seems to have started with change https://gerrit.fd.io/r/#/c/16287/ ("dpdk-ipsec-mempool: allocate from dpdk mem specified by socket-mem in startup.conf"). When I increase socket-mem in startup.conf to 128 MB, the configured crypto devices successfully initialize. When support for socket-mem goes away, what will need to be done to ensure that enough memory is available for crypto devices? Thanks, -Matt On Thu, Dec 20, 2018 at 3:55 AM Damjan Marion via Lists.Fd.Io <dmarion= me....@lists.fd.io> wrote: > > Regarding: > > https://gerrit.fd.io/r/#/c/16543/ > > This patch switches dpdk to new in-memory mode, and reduces dpdk memory > footprint > as pages are allocated dynamically on-demand. > > I tested on both Ubuntu and Centos 7.5 and everything looks good but will > appreciate > feedback from people using non-standard configs before it is merged... > > Thanks, > > -- > Damjan > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#11724): https://lists.fd.io/g/vpp-dev/message/11724 > Mute This Topic: https://lists.fd.io/mt/28809973/675725 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [mgsm...@netgate.com] > -=-=-=-=-=-=-=-=-=-=-=- >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11740): https://lists.fd.io/g/vpp-dev/message/11740 Mute This Topic: https://lists.fd.io/mt/28809973/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-