installer create huge swap partition

Bug #134505 reported by patrick_g
6
Affects Status Importance Assigned to Milestone
partman-auto (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: base-installer

My laptop is a centrino Core 2 Duo with 2 GB RAM and 160 GB hard disk.

When i install Ubuntu Gutsy Tribe 5 (with default options) the installer create an insanely large swap partition (6 GB !!!!!)

I think the default install should create a sane default swap partition and not a huge one like this because it's a lot of space lost for the user.
Perhaps 2 GB max size ?

polopolo (linux-debaat)
Changed in base-installer:
assignee: nobody → ubuntu-installer
polopolo (linux-debaat)
Changed in ubiquity:
assignee: ubuntu-installer → nobody
Revision history for this message
patrick_g (patrick-guignot) wrote :

Same problem with this daily build live-CD => http://cdimage.ubuntu.com/daily-live/20070912.1/gutsy-desktop-i386.iso

The swap partition is 6 GB
:-(

Revision history for this message
Colin Watson (cjwatson) wrote :

The maximum is three times RAM. I agree it's a bit excessive in this case, though not critical since it does also make sure that there's plenty of space in / and will reduce the swap size if necessary. On a 160GB disk there's plenty of room for both so it allocates the maximum.

Changed in ubiquity:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Jeff Fortin Tam (kiddo) wrote :

It is pretty ridiculous, people like me would not even need a swap partition with so much physical ram! :) my house would fit in there!
But for s2both, I would guess that a swap space equal to the physical ram would be required.

Revision history for this message
patrick_g (patrick-guignot) wrote :

Is it possible for Hardy to tune the installer in order to have a sane swap partition and not a ridiculous one like this ?

Revision history for this message
mitch (mitch-lloyd) wrote : swap too big

The Hoary (Beta) installer gave me a swap of 11.3 GB. I think that's a little ridiculous.

I have 4G ram and 500GB HD.

Revision history for this message
Jeff Fortin Tam (kiddo) wrote :

"1 gb of swap should be enough for anybody"? :)

seriously now, I think that number *might* be the sweet spot for both older and newer machines, while we are at it, why not just make things simple and hardcode the default to be 1gb of swap (since the user can change it anyway)? it seems nobody has come up with the Ultimate mathematical formula to calculate the proper amount of swap to create.

description: updated
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.