Skip to content

Commit c3f22b4

Browse files
committed
fix: allocate more huge pages for performance tests
On m6a/6.1, post_populate with fault_all handler and 2M pages fails because of the UFFD handler panicking during faulting, returning `PartiallyCopied(1022MB)`. This is because we are depleting the huge pages pool. Thus, allocate some more. Admittedly, I do not understand why thisd only happens on m6a/6.1. Signed-off-by: Patrick Roy <[email protected]>
1 parent 648347f commit c3f22b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/devtool

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ cmd_test() {
745745
# anyway (something else on the host seems to be stealing our huge pages, and we cannot "ear mark" them for
746746
# Firecracker processes). Thus, just allocate 4GB of them and call it a day.
747747
say "Setting up huge pages pool"
748-
num_hugetlbfs_pages=2048
748+
num_hugetlbfs_pages=4096
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)