Public bug reported:

While kickseed support kickstart swap partition "--recommended" options
his implementation is not usable :

With different partition scheme we ever get a swap partition of 96 MB
This impact other system component like the oom killer ... 

The issue is present in both ubuntu 8.10 and 9.04.


Here is kickseed code that handle the swap patitionning (partition.sh) : 

        if [ "$filesystem" = linux-swap ] && [ "$recommended" ]; then
                size=96
                priority=512
                maxsize=300%
                partition_leave_free_space=
        else

(I guess --grow is needed as well)

Here is an example of the partition scheme used with kickseed :

clearpart --all --initlabel
part / --fstype ext3 --size=4096
part swap --recommended
part /usr --fstype ext3 --size=10240
part /var --fstype ext3 --size=4096
part /tmp --fstype ext3 --size=100 --grow


Here is the Redhat Specification concerning the swap creation : 
(http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/ch-swapspace.html)

The size of your swap should be equal to twice your computer's physical RAM for 
up to 2 GB of physical RAM. 
For physical RAM above 2 GB, the size of your swap should be equal to the 
amount of physical RAM above 2 GB


I get a python code that i use on RHEL to dynamicaly calculate the swap 
partition (cause --recommended is not well implemented on RHEL as well)  based 
on the detection on physical available memory retrieved from /proc/meminfo.
If this code may be useful let me know


regards
Stephane

** Affects: kickseed (Ubuntu)
     Importance: Undecided
         Status: New

-- 
kickseed do not handle correctly --recommended option to create swap partition
https://bugs.launchpad.net/bugs/492304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to