Bug 1037472

Summary: suggested swap for laptop seems low
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: amulhern, anaconda-maint-list, bcl, dlehman, g.kaviyarasu, jonathan, samuel-rhbugs, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-13 21:15:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
storage.log none

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