diff --git a/validation/linux_cgroups_hugetlb.go b/validation/linux_cgroups_hugetlb.go index bedaf09a8..a8af63e3e 100644 --- a/validation/linux_cgroups_hugetlb.go +++ b/validation/linux_cgroups_hugetlb.go @@ -9,8 +9,9 @@ import ( ) func main() { - page := "1GB" - var limit uint64 = 52985 * 1024 * 1024 * 1024 // multiple of hugepage size + page := "2MB" + var pageSize uint64 = 2 * 1024 * 1024 // 2MB in bytes + limit := 100 * pageSize g := util.GetDefaultGenerator() g.SetLinuxCgroupsPath(cgroups.AbsCgroupPath) g.AddLinuxResourcesHugepageLimit(page, limit) diff --git a/validation/linux_cgroups_relative_hugetlb.go b/validation/linux_cgroups_relative_hugetlb.go index 7dad8bb31..e028f4064 100644 --- a/validation/linux_cgroups_relative_hugetlb.go +++ b/validation/linux_cgroups_relative_hugetlb.go @@ -8,8 +8,9 @@ import ( ) func main() { - page := "1GB" - var limit uint64 = 56892210544640 + page := "2MB" + var pageSize uint64 = 2 * 1024 * 1024 // 2MB in bytes + limit := 100 * pageSize g := util.GetDefaultGenerator() g.SetLinuxCgroupsPath(cgroups.RelCgroupPath) g.AddLinuxResourcesHugepageLimit(page, limit)