Guys,

Just a heads-up on under-the-hood change[1] which is merged few minutes ago and 
which affects all features that use bihash.

Now, bihash is allocating memory from the (main) heap, instead of mmap()-ing 
it’s own alloc arena.

There are several beneifs of that approach:
 - smaller memory footprint
 - ability to use hugepages without dedicating them to specific feature
 - smaller coredump files
 
Size of each table is now limited by heap size, and not by the value provided 
during the table initialisation.
In some cases increasing heap size may be needed, and if performance matters 
putting the main heap into hugepages may also be a good idea, as all bihash 
tables will now immediately benefit out of it.

i.e. startup.conf example:

memory {
    main-heap-size 2G
    main-heap-page-size 1G
}

If anybody notices some issues, please let us know.

— 
Damjan


[1] https://gerrit.fd.io/r/c/vpp/+/29099


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17616): https://lists.fd.io/g/vpp-dev/message/17616
Mute This Topic: https://lists.fd.io/mt/77216768/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to