summaryrefslogtreecommitdiffstats
path: root/client/go/prog/hugepages.go
blob: 79c5f4d7854c37b7e5cf6348e0ac11e408ec85de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Yahoo. 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/trace"
)

func (spec *Spec) ConfigureHugePages() {
	if spec.matchesListEnv(ENV_VESPA_USE_HUGEPAGES_LIST) {
		trace.Debug("setting", ENV_VESPA_USE_HUGEPAGES, "= 'yes'")
		spec.Setenv(ENV_VESPA_USE_HUGEPAGES, "yes")
	}
}