Bug 756172

Summary: RFE: Change heuristics so swap partition is not very high for "small" disk VMs
Product: [Fedora] Fedora Reporter: James Antill <james.antill>
Component: anacondaAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: anaconda-maint-list, jonathan, stephent98, vanmeeuwen+fedora, vpodzime
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: 2013-10-17 11:28:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description James Antill 2011-11-22 21:09:49 UTC
Description of problem:

 If I create/install a VM for Fedora 16, and allocate 2GB of RAM and 8GB of disk space to it then I actually get an almost full 4GB system disk, as anaconda is allocating 4GB to the swap partition.
 I think it would be useful to do the following:

  If the disk size is < 100 GB ...
    1. Allocate no more than 5% of the disk to swap.
    2. Use a swapfile instead of a swap partition.

Comment 1 Vratislav Podzimek 2012-02-14 11:11:42 UTC
It's more difficult than it seems, because this behaviour would make hibernation malfunctioning in many cases. We are now changing the behaviour to set swap size same as the RAM size. Hope this will be better usable for VMs.

Comment 2 James Antill 2012-02-14 16:51:13 UTC
Taking 25% is better than 50%, but still really bad. Are you using swapfiles too though (if you do it's then easy to fix it post install).

Comment 3 Fedora End Of Life 2013-01-17 00:46:11 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Vratislav Podzimek 2013-01-17 12:31:24 UTC
This affects also the Fedora 18 installations.

Comment 5 Vratislav Podzimek 2013-10-17 11:28:29 UTC
This should be fixed in F20 installations. Anaconda should now default to at most 10 % of disk space (e.g. ~800 MB on an 8GB VM disk)