aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/internal/admin/prog/hugepages.go
blob: 21c61d6257a4ba8f4e8119d559a867734cc2d3ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Author: arnej

package prog

import (
	"github.com/vespa-engine/vespa/client/go/internal/admin/envvars"
	"github.com/vespa-engine/vespa/client/go/internal/admin/trace"
)

func (spec *Spec) ConfigureHugePages() {
	if spec.MatchesListEnv(envvars.VESPA_USE_HUGEPAGES_LIST) {
		trace.Debug("setting", envvars.VESPA_USE_HUGEPAGES, "= 'yes'")
		spec.Setenv(envvars.VESPA_USE_HUGEPAGES, "yes")
	}
}