Skip to content

Commit 56729e7

Browse files
kalyazinroypat
authored andcommitted
test(devtool): sextuple number of preallocated huge pages
With current number of huge pages (4096) being ok for 1GiB VMs, we need 6 times more of them for 6GiB VMs. Signed-off-by: Nikita Kalyazin <kalyazin@amazon.com>
1 parent cf9e48e commit 56729e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/devtool

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,9 +743,9 @@ cmd_test() {
743743
# It seems that even if the tests using huge pages run sequentially on ag=1 agents, right-sizing the huge pages
744744
# pool to the total number of huge pages used across all tests results in spurious failures with pool depletion
745745
# anyway (something else on the host seems to be stealing our huge pages, and we cannot "ear mark" them for
746-
# Firecracker processes). Thus, just allocate 8GB of them and call it a day.
746+
# Firecracker processes). Thus, just allocate 48GB of them and call it a day.
747747
say "Setting up huge pages pool"
748-
num_hugetlbfs_pages=4096
748+
num_hugetlbfs_pages=24552
749749

750750
huge_pages_old=$(cat /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages)
751751
huge_pages_new=$(echo $num_hugetlbfs_pages |sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages)

0 commit comments

Comments
 (0)