Drop drift detection; host tuning is one-shot system startup
This commit is contained in:
@@ -382,7 +382,7 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
tcfg := tuneConfig{
|
||||
tcfg := systemConfig{
|
||||
governor: *governor,
|
||||
rxUsecs: uint32(*coalesce),
|
||||
txUsecs: uint32(*coalesce),
|
||||
@@ -399,7 +399,7 @@ func main() {
|
||||
|
||||
func run(aName, bName, sizesArg, patArg, fanout, txCPUsArg, rxCPUsArg string,
|
||||
duration, interval, drain time.Duration, txN, rxN, batch, sndbuf, rcvbuf int,
|
||||
verify, duplex bool, tcfg tuneConfig) error {
|
||||
verify, duplex bool, tcfg systemConfig) error {
|
||||
|
||||
if aName == "" || bName == "" {
|
||||
return fmt.Errorf("both -a and -b are required")
|
||||
@@ -441,7 +441,7 @@ func run(aName, bName, sizesArg, patArg, fanout, txCPUsArg, rxCPUsArg string,
|
||||
|
||||
var fatal []string
|
||||
var tuneRows [][]string
|
||||
for _, r := range applyTuning(tcfg, ifnames) {
|
||||
for _, r := range configureSystem(tcfg, ifnames) {
|
||||
tuneRows = append(tuneRows, []string{r.item, r.status(), r.detail()})
|
||||
if r.fatal {
|
||||
fatal = append(fatal, r.item)
|
||||
@@ -567,10 +567,6 @@ loop:
|
||||
secs := now.Sub(last).Seconds()
|
||||
last = now
|
||||
elapsed := now.Sub(start).Seconds()
|
||||
for _, r := range verifyTuning(tcfg, ifnames) {
|
||||
fmt.Printf(" %s host config drifted: %s — %s\n",
|
||||
paint("!", cYellow), r.item, r.detail())
|
||||
}
|
||||
for _, d := range dirs {
|
||||
for _, line := range stats.emit(d.intervalRow(elapsed, secs, target)) {
|
||||
fmt.Println(line)
|
||||
|
||||
Reference in New Issue
Block a user