partman-auto's memory calculation is overestimating

Bug #675665 reported by Mario Limonciello
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
partman-auto (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: partman-auto

partman-auto: 93ubuntu1

Current partman-auto's memory calculation is finding a larger amount of memory than is present on my system. I've actually got 4 GB in the system, with the firmware showing 3960 available to the OS.

I was discussing on IRC with cjwatson:
<cjwatson> I copied that from base-installer, whose test is simply "is there RAM above 4GB?"
<cjwatson> and in your case there is - but the partman-auto test needs to be subtler because it actually needs to know how much, minus holes

Attached is the contents of /sys/firmware/memmap

Tags: patch
Revision history for this message
Mario Limonciello (superm1) wrote :
Revision history for this message
Mario Limonciello (superm1) wrote :

cjwatson mocked up a quick patch that appears to get a much better result.

it shows 4150 when tested.

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package partman-auto - 93ubuntu2

---------------
partman-auto (93ubuntu2) natty; urgency=low

  * Fix memory size calculations to use the total of the sizes of all memory
    modules rather than the highest address (LP: #675665).
 -- Colin Watson <email address hidden> Mon, 29 Nov 2010 16:07:06 +0000

Changed in partman-auto (Ubuntu):
status: New → Fix Released
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.