From the google_guest_agent code:
google_guest_agent/instance_setup.go:
func setIOScheduler() error { dir, err := os.Open("/sys/block") if err != nil { return err } defer dir.Close()
devs, err := dir.Readdirnames(0) if err != nil { return err }
for _, dev := range devs { // Detect if device is using MQ subsystem. stat, err := os.Stat("/sys/block/" + dev + "/mq") if err == nil && stat.IsDir() { f, err := os.OpenFile("/sys/block/"+dev+"/queue/scheduler", os.O_WRONLY|os.O_TRUNC, 0700) if err != nil { return err } _, err = f.Write([]byte("none")) if err != nil { return err } } } return nil }
Seems to be intentionally doing that.
From the google_guest_agent code:
google_ guest_agent/ instance_ setup.go:
func setIOScheduler() error { "/sys/block" )
return err
dir, err := os.Open(
if err != nil {
}
defer dir.Close()
devs, err := dir.Readdirnames(0)
return err
if err != nil {
}
for _, dev := range devs {
stat, err := os.Stat( "/sys/block/ " + dev + "/mq")
f, err := os.OpenFile( "/sys/block/ "+dev+" /queue/ scheduler" , os.O_WRONLY| os.O_TRUNC, 0700)
if err != nil {
return err
}
_, err = f.Write( []byte( "none") )
if err != nil {
return err
}
// Detect if device is using MQ subsystem.
if err == nil && stat.IsDir() {
}
}
return nil
}
Seems to be intentionally doing that.