Hoi Mohsen, I'm probably not the right person to answer :) but in a previous post ( https://lists.fd.io/g/vpp-dev/message/19643) the semantics of hugepages came up, from there (relaying what people smarter than I have answered) - VPP will claim the hugepage on startup, so it'll reserve them for itself from the beginning. - You could take a look at that directory you mentioned before, to see how many pages are available in the system, how many are used by VPP (by comparing a before-and-after):
pim@hippo:/sys/devices/system/node/node0/hugepages$ find . . ./hugepages-2048kB ./hugepages-2048kB/free_hugepages ./hugepages-2048kB/surplus_hugepages ./hugepages-2048kB/nr_hugepages ./hugepages-1048576kB ./hugepages-1048576kB/free_hugepages ./hugepages-1048576kB/surplus_hugepages ./hugepages-1048576kB/nr_hugepages For example like so: pim@hippo:/sys/devices/system/node/node0/hugepages$ cat ./hugepages-2048kB/free_hugepages 3072 pim@hippo:/sys/devices/system/node/node0/hugepages$ sudo systemctl start vpp pim@hippo:/sys/devices/system/node/node0/hugepages$ cat ./hugepages-2048kB/free_hugepages 1623 So on this machine, 1449 2MB hugepages were claimed upon startup by this instance of VPP. Hope that helps - I'll leave other folks to give better answers :) groet, Pim On Tue, Sep 21, 2021 at 8:12 PM Mohsen Meamarian <meamarian.moh...@gmail.com> wrote: > Hi, > Thanks, Is there a way to make sure how many Hugespages are ready to Vpp > using? Immediately after Start Vpp, I open the "/ run / vpp / hugepages " > file but it is empty. Is the VPP mechanism to occupy the Hugepage if needed > or does Vpp reserve it for itself from the beginning? > > > -- Pim van Pelt <p...@ipng.nl> PBVP1-RIPE - http://www.ipng.nl/
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20172): https://lists.fd.io/g/vpp-dev/message/20172 Mute This Topic: https://lists.fd.io/mt/85744775/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-