<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title><![CDATA[put swap partition as swapfile on Ubuntu installation]]></title>
    <link>http://brainstorm.ubuntu.com/item/14045/</link>
    <description><![CDATA[I think we should start thinking about moving the swap partition to just an ordinary swapfile on the partition that Ubuntu is installed onto.  This way we don't have to resize partitions if we want to make it smaller or bigger.  Then we could put an easy to use GUI in front of it that sets the size of it or if it's automatically managed by the OS instead.  By default it should be managed by the OS.  OS X and Windows do it this way, so I think Ubuntu should too.<br /><br />
<br />


<b>[-8 votes] Solution #1: How to do this initially</b>
<br />

<br />
<br />



<b>[3 votes] Solution #2: More elegant solution</b>
<br />

<br />
<br />



]]></description>

    <language>en-us</language>
    <pubDate>Sat, 04 Oct 2008 03:56:55 +0000</pubDate>
    <lastBuildDate>Sun, 18 Jan 2009 05:58:07 +0000</lastBuildDate>
    <generator>QAPoll module</generator>
    <guid isPermaLink="true">http://brainstorm.ubuntu.com/idea/14045/</guid>
        <item>
  <title>Comment from brettalton</title>
  <description><![CDATA[You must be a Windows user. Have a file on your partition for swap creates incredible defragmentation which will only create more overhead when searching for files. Why not have it separated with a distinct partition?]]></description>
  <pubDate>Sat, 04 Oct 2008 07:12:29 +0000</pubDate>
</item>
        <item>
  <title>Comment from zooounds</title>
  <description><![CDATA[I think you cannot hibernate to a swapfile.]]></description>
  <pubDate>Sat, 04 Oct 2008 14:20:40 +0000</pubDate>
</item>
        <item>
  <title>Comment from Auzy</title>
  <description><![CDATA[@Zooounds, that can be fixed though.. <br /><br />@brattalton check your sources. You allocate the swap file, defrag it once (or ensure its allocated already defragged), and there isn't any fragmentation. The advantage is though, at least the file can expand if you run out of swap file, with a swap partition, stuff will just crash!]]></description>
  <pubDate>Sat, 04 Oct 2008 15:34:01 +0000</pubDate>
</item>
        <item>
  <title>Comment from pyrates</title>
  <description><![CDATA[Yes I am a windows user.  But OS X works this way too because the complexity of having a separate partition for the swap shouldn't be necessary.  It's a lot easier resizing a file then it is to resize a swap partition isn't it?]]></description>
  <pubDate>Sun, 12 Oct 2008 04:43:57 +0000</pubDate>
</item>
        <item>
  <title>Comment from petrosyan@gmail.com</title>
  <description><![CDATA[brettalton, you must be a really stupid user.<br /><br />Allocate a swap file does NOT create "incredible" defragmentation.<br /><br />Swapping to a file does not create any extra overhead: http://en.wikipedia.org/wiki/Paging#Linux<br /><br />@zooounds, you can hibernate to a swap file. You just need to add "resume_offset" command to kernel options, and this is what this idea is all about.]]></description>
  <pubDate>Wed, 03 Dec 2008 05:52:05 +0000</pubDate>
</item>
        <item>
  <title>Comment from pyrates</title>
  <description><![CDATA[If we can get this implemented, then we can simplify the installation process by allowing the end user to just select which partition to install Ubuntu onto, much like how Windows and OS X does it.  They don't involve any complex mount points that you're forced to choose.  That unneeded complexity would all be hidden by this.]]></description>
  <pubDate>Sun, 07 Dec 2008 07:28:04 +0000</pubDate>
</item>
        <item>
  <title>Comment from gnc</title>
  <description><![CDATA[<br />IMHO users should be able to choose at install time between swap file, swap partition or swapless system.<br /><br />Swap file is as fast as a swap partition.<br />(http://lkml.org/lkml/2005/7/7/326)<br />]]></description>
  <pubDate>Sun, 14 Dec 2008 00:32:05 +0000</pubDate>
</item>
        <item>
  <title>Comment from pyrates</title>
  <description><![CDATA[So then according to the link gnc posted, Ubuntu should have no problem switching over to using a swap file instead of a swap partition.  Sure does make sense to me.]]></description>
  <pubDate>Sun, 21 Dec 2008 01:28:05 +0000</pubDate>
</item>
        <item>
  <title>Comment from AndrewLuecke</title>
  <description><![CDATA[This is one of the misconception things. <br /><br />Once again, we have a bunch of elitist linux users arguing incorrect information. <br /><br />There is no good reason to have this, and if the swap partitions were as great as we all pretend, surely Microsoft and OSX would use them.. ]]></description>
  <pubDate>Sun, 21 Dec 2008 03:02:47 +0000</pubDate>
</item>
        <item>
  <title>Comment from AndrewLuecke</title>
  <description><![CDATA[rather no good reason NOT to have it...]]></description>
  <pubDate>Sun, 21 Dec 2008 03:15:04 +0000</pubDate>
</item>
        <item>
  <title>Comment from borsook</title>
  <description><![CDATA[Actually swap partitions work great with windows, system is much faster then simply because windows always fragments swap file whatever one does... ;)]]></description>
  <pubDate>Sun, 21 Dec 2008 14:40:19 +0000</pubDate>
</item>
        <item>
  <title>Comment from chareos</title>
  <description><![CDATA[<br />A good reason would be that if I add RAM to my PC and my swap parttion is not big enough, I lose my ability to hibernate the system.<br /><br />Changing swapfile size is much easier than change partition size, am I correct ?]]></description>
  <pubDate>Mon, 22 Dec 2008 16:20:41 +0000</pubDate>
</item>
        <item>
  <title>Comment from AndrewLuecke</title>
  <description><![CDATA[Yes chereos.. Thats the reason nobody uses a partition except nix systems.. <br /><br />A partition means programs get killed when you run out of swap/ram, but a swapfile lets the system expand the swap available so that nothing dies]]></description>
  <pubDate>Mon, 22 Dec 2008 23:22:25 +0000</pubDate>
</item>
        <item>
  <title>Comment from iva2k</title>
  <description><![CDATA[+1 for swapfiles<br /><br />Swapfile is a very useful feature for my cause. I use MacBookPro with tripple-boot (Mac OSX, Ubuntu, WinXP). Due to various limitations of GRUB, WinXP+BootCamp, MacOSX, EFI, etc, extended partitions cannot be used (can you believe that in 21st century?), so I left with only 4 primary MBR partitions, one of which is taken by EFI/GPT. It leaves no place for a swap partition in the scheme of things on MacBookPro. I did a very easy 5-line prep of a file, and got swap on a file on /.<br /><br />However, implementers beware! It breaks nice uspalsh boot screen and drops into text mode "Reading files needed to boot..." due to /etc/initramfs-tools/conf.d/resume file content. I found this article that may help to do it properly:<br />http://www.mjmwired.net/kernel/Documentation/power/swsusp-and-swap-files.txt, however after few hours of trial and error hibernate/resume still does not work and usplash drops out. Usplash is easy to fix by removing "quiet" from kernel boot options. Hibernate seems broken due to a bug (see Ubuntu bug #313724 https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/313724).<br />]]></description>
  <pubDate>Sun, 18 Jan 2009 05:58:07 +0000</pubDate>
</item>
      </channel>
</rss>
