cloud-init disables ureadahead even when it might be useful

Bug #994698 reported by Scott Moser
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Won't Fix
Low
Unassigned
ureadahead (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Since bug 499520, cloud-init currently disables ureadahead by using a dpkg-divert of /etc/upstart/ureadahead.conf. The reasoning behind this was that:
 a.) ureadahead was causing OOM on boot small vms (~ 300M)
 b.) ureadahead inside a VM doesn't generally make any sense. Ureadahead tries to optimize disk reads for ssd or spinning disks. Its methods of determining if the disk of the system is ssd or spinning won't work in a VM.
 c.) ureadahead is part of ubuntu-minimal task, and we did not want to change that.

Recently, though, we've started using cloud-init on real hardware, where ureadahead could be of use.

Thus, I'd like to have a better solution. I think ureadahead would ideally disable itself if it found one of the following conditions:
 1 small amount of memory (<512 or even 1024M)
 2 if it is running in a container
 3 no definitive knowledge of the type of disks used (if it thought this might be a VM)

Of those options, determining the first 2 are straight forward, and I would think could be done in the upstart job even. I'm not familiar enough with ureadahead to know how easily it would be to determine number 3.

Related bugs:
 * bug 499520: default uec-image requires at least 300 M of RAM to run - m1.small and c1.medium not needed by default

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Sounds like it should check both that it is not in a container, and that it has >= 512M (or something) ram?

Changed in cloud-init (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Scott Moser (smoser) wrote : Re: [Bug 994698] Re: cloud-init could re-enable ureadahead if running on real hardware

On Thu, 17 May 2012, Serge Hallyn wrote:

> Sounds like it should check both that it is not in a container, and that
> it has >= 512M (or something) ram?

Well, cloud-init can't really run-time check this. Because at this point
its well too late. potentially ureadahead could do that.

summary: - cloud-init could re-enable ureadahead if running on real hardware
+ cloud-init disables ureadahead even when it might be useful
Scott Moser (smoser)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ureadahead (Ubuntu):
status: New → Confirmed
Changed in ureadahead (Ubuntu):
importance: Undecided → Low
Revision history for this message
James Falcon (falcojr) wrote :

This bug is no longer relevant

Changed in cloud-init (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.