Merge ~kajiya/ubuntu/+source/gce-compute-image-packages:change-udev-rules-for-HDDs-mantic into ubuntu/+source/gce-compute-image-packages:ubuntu/mantic-devel

Proposed by Chloé Smith
Status: Work in progress
Proposed branch: ~kajiya/ubuntu/+source/gce-compute-image-packages:change-udev-rules-for-HDDs-mantic
Merge into: ubuntu/+source/gce-compute-image-packages:ubuntu/mantic-devel
Diff against target: 30 lines (+12/-2)
2 files modified
debian/99-gce.rules (+2/-2)
debian/changelog (+10/-0)
Reviewer Review Type Date Requested Status
Chloé Smith (community) Disapprove
Utkarsh Gupta (community) Needs Fixing
git-ubuntu import Pending
Review via email: mp+454086@code.launchpad.net

Commit message

Reduce udev rule scope and change I/O scheduler

The previous udev rule was drastically reducing the bootspeed on
SSD backed instances. Experiments found that swapping HDDs to "none"
in this file yielded the best results.

To post a comment you must log in.
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hey, I know we agreed to do this together but didn't get enuf time during the sprints to actually do it.

On a quick note, if you want to SRU this to any of the stable releases, you'll need a bug associated with an upload - with an SRU template. Could you please work that out and I can then sponsor the upload?

I'll do Noble -> Mantic. And further if need be. Let me know if you have any questions or concerns.

review: Needs Fixing
Revision history for this message
Chloé Smith (kajiya) wrote :
review: Disapprove

Unmerged commits

000e991... by Chloé Smith

d/changelog entry

b9fe69b... by Chloé Smith

Reduce udev rule scope and change I/O scheduler

The previous udev rule was drastically reducing the bootspeed on
SSD backed instances. Experiments found that swapping HDDs to "none"
in this file yeilded the best results.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/99-gce.rules b/debian/99-gce.rules
2index fa98786..d321cde 100644
3--- a/debian/99-gce.rules
4+++ b/debian/99-gce.rules
5@@ -1,5 +1,5 @@
6 # Give syslog write access to the kernel logs
7 KERNEL=="console", GROUP="syslog", MODE="0620"
8
9-# Switch to using NOOP as the default scheduler per GCE request
10-SUBSYSTEM=="block", ENV{DEVTYPE}!="partition", ACTION=="add|change", ENV{ID_VENDOR}=="*Google*", ATTR{queue/scheduler}="noop"
11+# Force "NONE" I/O scheduler on HDDs only to enhance boot speeds
12+SUBSYSTEM=="block", ENV{DEVTYPE}!="partition", ACTION=="add|change", ENV{ID_VENDOR}=="*Google*", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="none"
13diff --git a/debian/changelog b/debian/changelog
14index 968b98f..bbd3b79 100644
15--- a/debian/changelog
16+++ b/debian/changelog
17@@ -1,3 +1,13 @@
18+gce-compute-image-packages (20230808.00-0ubuntu2) mantic; urgency=medium
19+
20+ * Changes made to d/99-gce.rules
21+ * The previous rule forced an I/O scheduler on all disk types. This
22+ has now been re-scoped to only affect HDDs
23+ * The I/O scheduler has also been changed from "NOOP" to "NONE"
24+ which performed much better in testing.
25+
26+ -- Chloé 'kajiya' Smith <chloe.smith@canonical.com> Mon, 16 Oct 2023 22:59:06 +0100
27+
28 gce-compute-image-packages (20230808.00-0ubuntu1) mantic; urgency=medium
29
30 * New upstream version 20230808.00. (LP: #2033061)

Subscribers

People subscribed via source and target branches