[Bug 809190] New: AutoYast suggest wrong swap partition size when using <size>auto</size>
https://bugzilla.novell.com/show_bug.cgi?id=809190
https://bugzilla.novell.com/show_bug.cgi?id=809190#c0
Summary: AutoYast suggest wrong swap partition size when using
<size>auto</size>
Classification: openSUSE
Product: openSUSE 12.3
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: AutoYaST
AssignedTo: fehr@suse.com
ReportedBy: joschibrauchle@gmx.de
QAContact: qa-bugs@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML,
like Gecko) Chrome/25.0.1364.172 Safari/537.22
Using <size>auto</size> for the swap partition of a machine with **8GB** RAM
results in AutoYast suggesting a swap partition of size **2GB**. With such a
setting, hibernation will not be possible. I would assume that a size of at
least the amount of RAM would be suggested.
This is part of the XML I'm using:
----------------
<partitioning config:type="list">
<drive>
<device>/dev/system</device>
<partitions config:type="list">
...some partitions stripped, there should be space available in the device...
<partition>
<create config:type="boolean">false</create>
https://bugzilla.novell.com/show_bug.cgi?id=809190
https://bugzilla.novell.com/show_bug.cgi?id=809190#c1
--- Comment #1 from Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=809190
https://bugzilla.novell.com/show_bug.cgi?id=809190#c2
--- Comment #2 from Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=809190
https://bugzilla.novell.com/show_bug.cgi?id=809190#c3
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=809190
https://bugzilla.novell.com/show_bug.cgi?id=809190#c4
--- Comment #4 from Joschi Brauchle
Problem is that requirements for swap for traditional swap usage and for hibernation are quite different. For normal swap, 2G (the current upper limit) is plenty and any real-world system really using more than 2G swap would be more or less unusable. True.
For hibernation the swap size should indeed be larger. But this is mostly useful for laptops while I would assume most autoyast installations are on other systems. Also true.
But this seems to be more a problem of the Yast Storage module than AutoYast, right? So does the storage module actually propose swap size >=RAM on laptops when the user asks for a partitioning proposal? I did not check this... but if not, then the automatic partitioning proposal would make hibernation impossible for the "not-so-tech-savvy" user. Just out of curiosity: Is it currently possible to use a "hibernation file" like Windows, located on some filesystem? This way, one would get around the requirement of having such a large swap partition and 2GB would be enough. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809190
https://bugzilla.novell.com/show_bug.cgi?id=809190#c5
--- Comment #5 from Thomas Fehr
But this seems to be more a problem of the Yast Storage module than AutoYast, right? So does the storage module actually propose swap size >=RAM on laptops when the user asks for a partitioning proposal?
From the fact that we do not get complaints or bugreports about that, I would assume not a large number of non-tech-savy linux user use laptops with more than 2Gig RAM. But in my opinion linux on laptops is a marginally
No, as you already looked up, the swap size proposal has a hard upper size limit of 2G. And you are right this is not optimal for hibernation. percentage anyway (probably by far most linux laptop users work for linux companies ;-) and laptops with linux preinstalled, the size can be chosen correctly. Unfortunately changing swap size for all systems would probably cause more trouble (e.g. in area of o virtual machines with small virtual disks). And it is not too easy to detect if a machine is a Laptop from looking at hardware data. I am not a kernel expert and so I do not know if one could use a file. Certainly not without significant changes in resume handling and probably not in the general case (e.g. on LVM, Raid) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809190
https://bugzilla.novell.com/show_bug.cgi?id=809190#c6
--- Comment #6 from Joschi Brauchle But in my opinion linux on laptops is a marginally
percentage anyway (probably by far most linux laptop users work for linux
companies ;-) and laptops with linux preinstalled, the size can be chosen
correctly.
I would assume that in the educational sector Linux is also very common on
laptops,
at least that is my usage case :) may people there deliberately buy machines
without operating system installed
or remove anything preinstalled. --
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809190
https://bugzilla.novell.com/show_bug.cgi?id=809190#c7
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=809190
https://bugzilla.novell.com/show_bug.cgi?id=809190#c8
--- Comment #8 from Joschi Brauchle
participants (1)
-
bugzilla_noreply@novell.com