Xilinx Alveo X3522 User Manual page 27

Hide thumbs Also See for Alveo X3522:
Table of Contents

Advertisement

Check the Current Huge Page Size
Check the current default huge page size by inspection of /proc/meminfo:
# cat /proc/meminfo | grep Hugepagesize
Hugepagesize:
The method you use to allocate huge pages differs depending on the huge page size.
If the Huge Page Size is 2048 KB
If the huge page size is 2048 KB, allocate huge pages as follows:
1. Check the current huge page allocation by inspection of /proc/meminfo:
# cat /proc/meminfo | grep Huge
AnonHugePages:
ShmemHugePages:
HugePages_Total:
HugePages_Free:
HugePages_Rsvd:
HugePages_Surp:
Hugepagesize:
Hugetlb:
In the output:
• HugePages_Total is the total number of huge pages available on the system.
• HugePages_Free is the number of huge pages that are free on the system.
2. If too few huge pages are free, allocate some extra huge pages. For example, to configure a
total of 1024 huge pages:
# sysctl -w vm.nr_hugepages=1024
3. To make this change persistent, update /etc/sysctl.conf:
# echo "vm.nr_hugepages = 1024" >> /etc/sysctl.conf
If the Huge Page Size is not 2048 KB
If the huge page size is not 2048 KB, instead allocate huge pages as follows:
1. Check the current 2048 KB huge page allocation by inspection of the files in /sys/
kernel/mm/hugepages/hugepages-2048kB:
# sh -c 'cd /sys/kernel/mm/hugepages/hugepages-2048kB; grep "" *'
free_hugepages:0
nr_hugepages:0
nr_hugepages_mempolicy:0
nr_overcommit_hugepages:0
resv_hugepages:0
surplus_hugepages:0
In the output:
UG1523 (v1.0) October 18, 2022
Alveo X3522 User Guide
2048 kB
2048 kB
0 kB
0
0
0
0
2048 kB
0 kB
Chapter 5: Tuning
www.xilinx.com
Send Feedback
27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents