Skip to content

Commit

Permalink
DAOS-16979 control: Reduce frequency of hugepage allocation at runtime
Browse files Browse the repository at this point in the history
Test-tag-hw-medium: pr daily_regression
Allow-unstable-test: true
Signed-off-by: Tom Nabarro <[email protected]>
  • Loading branch information
tanabarr committed Feb 5, 2025
1 parent 8fe77b9 commit b1e9861
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/control/server/config/server.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//
// (C) Copyright 2020-2024 Intel Corporation.
// (C) Copyright 2025 Hewlett Packard Enterprise Development LP
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
Expand Down Expand Up @@ -510,6 +511,8 @@ func (cfg *Server) SetNrHugepages(log logging.Logger, mi *common.MemInfo) error
return FaultConfigHugepagesDisabledWithBdevs
}

log.Infof("%d total hugepages in system", mi.HugepagesTotal)

// Calculate minimum number of hugepages for all configured engines.
minHugepages, err := storage.CalcMinHugepages(mi.HugepageSizeKiB, cfgTargetCount+sysXSCount)
if err != nil {
Expand Down

0 comments on commit b1e9861

Please sign in to comment.