Bug 1037472 - suggested swap for laptop seems low
Summary: suggested swap for laptop seems low
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-03 09:10 UTC by Chris Murphy
Modified: 2015-04-14 00:02 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-04-13 21:15:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
storage.log (198.03 KB, text/plain)
2013-12-03 09:10 UTC, Chris Murphy
no flags Details

Description Chris Murphy 2013-12-03 09:10:21 UTC
Created attachment 831950 [details]
storage.log

Description of problem:
Laptop with 8GB RAM has suggested swap of just slightly less than 8GB created. Another laptop with 4GB RAM has suggested swap of just under 4GB created. Seems low, unless "hibernation" is only a kickstart option and not set by anaconda.

Version-Release number of selected component (if applicable):
anaconda-20.25.11-1
python-blivet-0.23.6-1.fc20.src.rpm 

How reproducible:
Always on the two laptops I have.

Steps to Reproduce:
1. Install using guided or manual + create automatically, accepting suggested swap size.

Actual results:
RAM is 8GB (Detected 7952M of memory), and suggest swap size (7952 M) is used to create /dev/sda6.

Expected results:
https://git.fedorahosted.org/cgit/blivet.git/tree/blivet/devicelibs/swap.py
if hibernation:
        if mem <= 65536:
            swap = mem + swap

Since it thinks mem is just under 8GB, and since it's a laptop supporting hibernation that swap should be 8GB+8GB or roughly a 16GB swap partition rather than the 8GB partition created.

Additional info:

Another laptop with 4GB RAM has a 4GB swap LV created, rather than an 8GB swap LV as expected to support hibernation. So maybe these systems aren't considered hibernation capable?

Comment 1 David Lehman 2013-12-03 16:28:25 UTC
Anaconda does not automatically configure systems for hibernation at this time.

Comment 2 Jaroslav Reznik 2015-03-03 15:17:51 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22


Note You need to log in before you can comment on or make changes to this bug.