GCE is "Google Compute Engine" which is their cloud virtual machine
offering.

The rationale for the change is that Ubuntu by default uses deadline for
14.04+.   Google has requested that we switch over to noop for
performance reasons.

Would pegging  the rule like so work better?
SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_VENDOR}=="*Google*", 
ENV{ID_PATH}=="*virtio-pci*", ATTR{queue/scheduler}="noop"

This rule should only work when the device is both Google and coming
over the VirtIO channel.

The device is presented as:
$ sudo udevadm info /dev/sda
P: /devices/pci0000:00/0000:00:03.0/virtio0/host0/target0:0:1/0:0:1:0/block/sda
N: sda
S: disk/by-id/google-persistent-disk-0
S: disk/by-id/scsi-0Google_PersistentDisk_persistent-disk-0
S: disk/by-path/pci-0000:00:03.0-virtio-pci-virtio0-scsi-0:0:1:0
E: DEVLINKS=/dev/disk/by-id/google-persistent-disk-0 
/dev/disk/by-id/scsi-0Google_PersistentDisk_persistent-disk-0 
/dev/disk/by-path/pci-0000:00:03.0-virtio-pci-virtio0-scsi-0:0:1:0
E: DEVNAME=/dev/sda
E: 
DEVPATH=/devices/pci0000:00/0000:00:03.0/virtio0/host0/target0:0:1/0:0:1:0/block/sda
E: DEVTYPE=disk
E: ID_BUS=scsi
E: ID_MODEL=PersistentDisk
E: ID_MODEL_ENC=PersistentDisk\x20\x20
E: ID_PART_TABLE_TYPE=dos
E: ID_PATH=pci-0000:00:03.0-virtio-pci-virtio0-scsi-0:0:1:0
E: ID_PATH_TAG=pci-0000_00_03_0-virtio-pci-virtio0-scsi-0_0_1_0
E: ID_REVISION=1
E: ID_SCSI=1
E: ID_SERIAL=0Google_PersistentDisk_persistent-disk-0
E: ID_SERIAL_SHORT=persistent-disk-0
E: ID_TYPE=disk
E: ID_VENDOR=Google
E: ID_VENDOR_ENC=Google\x20\x20
E: MAJOR=8
E: MINOR=0
E: SUBSYSTEM=block
E: USEC_INITIALIZED=916

$ sudo udevadm info /dev/sdb
P: /devices/pci0000:00/0000:00:05.0/virtio1/host1/target1:0:1/1:0:1:0/block/sdb
N: sdb
S: disk/by-id/google-local-ssd-1
S: disk/by-id/scsi-0Google_EphemeralDisk_local-ssd-1
S: disk/by-path/pci-0000:00:05.0-virtio-pci-virtio1-scsi-0:0:1:0
E: DEVLINKS=/dev/disk/by-id/google-local-ssd-1 
/dev/disk/by-id/scsi-0Google_EphemeralDisk_local-ssd-1 
/dev/disk/by-path/pci-0000:00:05.0-virtio-pci-virtio1-scsi-0:0:1:0
E: DEVNAME=/dev/sdb
E: 
DEVPATH=/devices/pci0000:00/0000:00:05.0/virtio1/host1/target1:0:1/1:0:1:0/block/sdb
E: DEVTYPE=disk
E: ID_BUS=scsi
E: ID_MODEL=EphemeralDisk
E: ID_MODEL_ENC=EphemeralDisk\x20\x20\x20
E: ID_PATH=pci-0000:00:05.0-virtio-pci-virtio1-scsi-0:0:1:0
E: ID_PATH_TAG=pci-0000_00_05_0-virtio-pci-virtio1-scsi-0_0_1_0
E: ID_REVISION=1
E: ID_SCSI=1
E: ID_SERIAL=0Google_EphemeralDisk_local-ssd-1
E: ID_SERIAL_SHORT=local-ssd-1
E: ID_TYPE=disk
E: ID_VENDOR=Google
E: ID_VENDOR_ENC=Google\x20\x20
E: MAJOR=8
E: MINOR=16
E: SUBSYSTEM=block
E: USEC_INITIALIZED=59956

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1420544

Title:
  Ubuntu instances on GCE should use NOOP scheduler

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1420544/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to