default uec-image requires at least 300 M of RAM to run - m1.small and c1.medium not needed by default

Bug #499520 reported by Mathias Gug
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Fix Released
High
Scott Moser
Lucid
Fix Released
High
Scott Moser
eucalyptus (Ubuntu)
Invalid
High
Unassigned
Lucid
Invalid
High
Unassigned
ureadahead (Ubuntu)
Invalid
Undecided
Unassigned
Lucid
Invalid
Undecided
Unassigned

Bug Description

The default UEC images require at least 300 M of RAM to run. Having 2 types defined in UEC may seem useless as running a UEC image requires at least m1.large.

Is m1.small (128M) really required in the default installation?

Tags: uec-images

Related branches

Mathias Gug (mathiaz)
tags: added: uec-images
Revision history for this message
Thierry Carrez (ttx) wrote :

Two different issues here: the inflation of the minimal RAM amount needed to run a lucid cloud image, and a redefinition of the default VM types to better reflect the default use case. I think it's important to keep the memory usage in our cloud images to a minimum if possible and 300Mb sounds quite large as a minimum to me.

I'll open a vmbuilder task to track the first issue, even if it's likely not to be a vmbuilder issue, feel free to change the affected package when the cause is better defined.

Changed in eucalyptus (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Changed in vm-builder (Ubuntu):
importance: Undecided → High
assignee: nobody → Scott Moser (smoser)
Revision history for this message
Soren Hansen (soren) wrote :

Mathias, how have you determined this 300 MB requirement?

Revision history for this message
Scott Moser (smoser) wrote :

300 is high, but this bug is made worse by bug 499522 which will be fixed soon (fixed in my developement ec2-init).

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 499520] Re: default uec-image requires at least 300 M of RAM to run - m1.small and c1.medium not needed by default

On Fri, Jan 15, 2010 at 12:38:43PM -0000, Soren Hansen wrote:
> Mathias, how have you determined this 300 MB requirement?
>

IIRC, I've booted a default UEC image and then looked at top just after boot.
Swap space was used. And there was around 30-40 M of free RAM. Not very
scientific though.

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Revision history for this message
Soren Hansen (soren) wrote :

On Fri, Jan 15, 2010 at 04:37:38PM -0000, Mathias Gug wrote:
> On Fri, Jan 15, 2010 at 12:38:43PM -0000, Soren Hansen wrote:
> > Mathias, how have you determined this 300 MB requirement?
> IIRC, I've booted a default UEC image and then looked at top just
> after boot. Swap space was used. And there was around 30-40 M of free
> RAM. Not very scientific though.

If you get the chance, could you grab a "ps -eFl" and dump it here for
analysis? I'm really curious where all that memory is being spent.

Revision history for this message
Scott Moser (smoser) wrote :

$ free
             total used free shared buffers cached
Mem: 1759664 251192 1508472 0 3460 41492
-/+ buffers/cache: 206240 1553424

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

I'm elevating the eucalyptus task here to "High" (which might be a bit ambitious), but I'm also targeting at A3.

I've been doing some scalability testing on my 5-node cluster, each node having 4GB of memory. I'm able to run up to 14 x 256MB guests per node. It would be nice to get a few more on there.

Still, I think we should at least have a good look at our default instance sizes, and just review them if nothing else (perhaps just closing this bug). This is a task for the distro sprint next week.

:-Dustin

Changed in eucalyptus (Ubuntu):
importance: Wishlist → High
milestone: none → lucid-alpha-3
Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

To be clear, the issue here is more than just accounting. When we boot an instance in UEC with 256M or less of memory, the OOM kicks in and the system is generally not in good shape.

looking into this further, the big difference between karmic and lucid /proc/meminfo was 'LowFree'. On an ec2 instance with 2G memory, I saw:
 Karmic: 681616
 Lucid: 552616

That lead me to suspect ureadahead. It turns out, that if I remove ureadahead from the instance, I can boot in 96M of memory under kvm. With ureadahead in the instance, I get OOM messages at 256M.

One thing to note, is that this is a fresh first-boot of ec2 instance. ureadahead has never profiled before, and can't be expected to have.

Revision history for this message
Thierry Carrez (ttx) wrote :

Fixed images are running fine with 128Mb RAM, nothing should be changed in Eucalyptus ?
I think we should disable ureadahead in cloud images, doesn't make much sense in a system that will rarely be booted twice ?
Opening a ureadahead task, maybe it shouldn't better adapt to the amount of RAM available ?

Changed in eucalyptus (Ubuntu Lucid):
status: Triaged → Invalid
Changed in vm-builder (Ubuntu Lucid):
milestone: none → lucid-alpha-3
status: New → Confirmed
Scott Moser (smoser)
affects: vm-builder (Ubuntu Lucid) → cloud-init (Ubuntu Lucid)
Revision history for this message
Scott Moser (smoser) wrote :

This is being fixed by diverting the /etc/init/ureadahead.conf conffile in a postinst script for cloud-init.

Changed in ureadahead (Ubuntu Lucid):
status: New → Invalid
Changed in cloud-init (Ubuntu Lucid):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.5.3-0ubuntu2

---------------
cloud-init (0.5.3-0ubuntu2) lucid; urgency=low

  * divert ureadahead.conf in postinst (LP: #499520)
  * lintian cleanups
 -- Scott Moser <email address hidden> Fri, 05 Feb 2010 15:48:21 -0500

Changed in cloud-init (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

Verified this is present in 20100210 build.

$ ls -l /etc/init/ureadahead*
-rw-r--r-- 1 root root 889 2009-12-21 23:27 /etc/init/ureadahead.conf.disabled
-rw-r--r-- 1 root root 683 2009-12-21 23:27 /etc/init/ureadahead-other.conf
$ dpkg-divert --listpackage /etc/init/ureadahead.conf
cloud-init
$ dpkg-query --show cloud-init
cloud-init 0.5.3-0ubuntu2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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