Hoi,

It typically defines hugepages for VPP. Many kernels will ship by default
with hugepage support, but no amount of hugepages defined. The contents of
a typical 80-vpp.conf sysctl file are:

# Number of 2MB hugepages desired
vm.nr_hugepages=3072

# Must be greater than or equal to (2 * vm.nr_hugepages).
vm.max_map_count=7168

# All groups allowed to access hugepages
vm.hugetlb_shm_group=0

# Shared Memory Max must be greater or equal to the total size of hugepages.
# For 2MB pages, TotalHugepageSize = vm.nr_hugepages * 2 * 1024 * 1024
# If the existing kernel.shmmax setting  (cat /proc/sys/kernel/shmmax)
# is greater than the calculated TotalHugepageSize then set this parameter
# to current shmmax value.
kernel.shmmax=6442450944

When the system boots, one of the things it does is read all files in
/etc/sysctl.d/* and apply those settings. Think of it as a windows registry
of sorts - you can query this by running 'sysctl -a' as root, and it'll
show you all the variables and which settings they have.

Hope that helps. groet,
Pim

On Fri, Dec 24, 2021 at 7:10 AM Akash S R <akashsr.akas...@gmail.com> wrote:

> Hello Mates,
>
> May I know what is the use of /etc/sysctl.d/80-vpp.conf ? How to use it
> or is that not necessary?
>
> /Akash
>
> 
>
>

-- 
Pim van Pelt <p...@ipng.nl>
PBVP1-RIPE - http://www.ipng.nl/
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20667): https://lists.fd.io/g/vpp-dev/message/20667
Mute This Topic: https://lists.fd.io/mt/87932746/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