blob: fda6aa3bea0c95d6e8c040b7abce1932466ba693 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// 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) ConfigureUseMadvise() {
limit := spec.valueFromListEnv(ENV_VESPA_USE_MADVISE_LIST)
if limit != "" {
trace.Trace("shall use madvise with limit", limit, "as set in", ENV_VESPA_USE_MADVISE_LIST)
spec.Setenv(ENV_VESPA_MALLOC_MADVISE_LIMIT, limit)
return
}
}
|