<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: multiple swap filesystems in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968155#M46909</link>
    <description>2.6 supports more then 2gb swap and you can have multiple swaps as well.</description>
    <pubDate>Mon, 20 Mar 2006 03:52:16 GMT</pubDate>
    <dc:creator>dirk dierickx</dc:creator>
    <dc:date>2006-03-20T03:52:16Z</dc:date>
    <item>
      <title>multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968152#M46906</link>
      <description>Dear Gurus&lt;BR /&gt;&lt;BR /&gt;1, does 2.6 kernel support more than 2 GB of swap ?&lt;BR /&gt;2, If not, then is it possible to have multiple swap filesystems of 2 GB?&lt;BR /&gt;3, If multiple swap partitions are supported then how many max swap partitions do we have ?&lt;BR /&gt;&lt;BR /&gt;One more thing, there are two ways to create swap &lt;BR /&gt;1a) create partition of type 0x82&lt;BR /&gt;1b) mkswap -v1 /dev/hdaX&lt;BR /&gt;1c) add entry in /etc/fstab&lt;BR /&gt;1d) swapon -a&lt;BR /&gt;But there is another way .. Creating a swap File as:&lt;BR /&gt;2) dd if=/dev/zero of=swapfile bs=1024 count=X&lt;BR /&gt;plz le me know the diff b/w the two. I have never tried the the second(2).&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Sun, 19 Mar 2006 10:23:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968152#M46906</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-03-19T10:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968153#M46907</link>
      <description>First of all kernel 2.6 supports more than 2 GB of swap.&lt;BR /&gt;Why would you want to create as many swap partitions as possible?&lt;BR /&gt;&lt;BR /&gt;as for choosing between swap file and partition:&lt;BR /&gt;always when possible create swap partition.&lt;BR /&gt;Swap file should be created only in cases when you can't add partitions...&lt;BR /&gt;Regards.</description>
      <pubDate>Sun, 19 Mar 2006 11:13:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968153#M46907</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-03-19T11:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968154#M46908</link>
      <description>&amp;gt;First of all kernel 2.6 supports more than &amp;gt;2 GB of swap.&lt;BR /&gt;May I ask how much on a pentium4/xeon system ?&lt;BR /&gt;I have search this on google but no success, my search string is :&lt;BR /&gt;&lt;A href="http://www.google.com/search?hl=en&amp;amp;q=maximum+size+of+swap+2.6+kernel+support+is&amp;amp;meta=" target="_blank"&gt;http://www.google.com/search?hl=en&amp;amp;q=maximum+size+of+swap+2.6+kernel+support+is&amp;amp;meta=&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Why would you want to create as many swap &amp;gt;partitions as possible?&lt;BR /&gt;Its an assignment. I have told by the higher authorities to provide these information. &lt;BR /&gt;Higher Authorities are looking forward to upgrade their all linux systems from 2.4.* to 2.6 kernel.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Sun, 19 Mar 2006 13:21:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968154#M46908</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-03-19T13:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968155#M46909</link>
      <description>2.6 supports more then 2gb swap and you can have multiple swaps as well.</description>
      <pubDate>Mon, 20 Mar 2006 03:52:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968155#M46909</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2006-03-20T03:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968156#M46910</link>
      <description>I would like to know where did you get the information about 2.6 supporting more than 2 GB  swap. From the Red Hat Enterprise 4 installation guide (2.6 kernel) it states that swap partitions cannot be larger than 2 GB. A portion of the document:&lt;BR /&gt;&lt;BR /&gt;"If your partitioning scheme requires a swap partition that is larger than 2 GB, you should create an additional swap partition. For example, if you need 4 GB of swap, you should create two 2 GB swap partitions. If you have 4 GB of RAM, you should create three 2 GB swap partitions. Red Hat Enterprise Linux supports up to 32 swap files"</description>
      <pubDate>Mon, 20 Mar 2006 07:43:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968156#M46910</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-20T07:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968157#M46911</link>
      <description>Hi &lt;BR /&gt;I think Ivan is right.&lt;BR /&gt;Although we can have more than 2 gb of swap but 1 partition cant be of more size than 2 gb.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Mon, 20 Mar 2006 08:00:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968157#M46911</guid>
      <dc:creator>Vipulinux</dc:creator>
      <dc:date>2006-03-20T08:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968158#M46912</link>
      <description>Depending on the processors and OS involved, I try not to have more than 4GB (32-bit) or 64GB (64-bit) worth of swap.  I always try to place the swap partition on the fastest drive I have.&lt;BR /&gt;&lt;BR /&gt;I don't technically see anything wrong with having more than 1 swap partition (though it does seem strange) as long as the partitions are (1) not on the same physical drive, (2) not on the same interface chain, and (3) not on the same I/O bus.  Otherwise, you'll just slow things down.  &lt;BR /&gt;&lt;BR /&gt;Ditto for having too much swap space -- the computer has to expend cpu time and real memory space allocating and tracking swap memory addresses.</description>
      <pubDate>Mon, 20 Mar 2006 11:50:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968158#M46912</guid>
      <dc:creator>Alan_152</dc:creator>
      <dc:date>2006-03-20T11:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968159#M46913</link>
      <description>If i wana creat multiple swap partitions &lt;BR /&gt;1a) create say 4 partitions of type 0x82&lt;BR /&gt;1b) mkswap -v1 /dev/hda3&lt;BR /&gt;1c) mkswap -v1 /dev/hda4&lt;BR /&gt;1d) mkswap -v1 /dev/hda5&lt;BR /&gt;1e) mkswap -v1 /dev/hda6&lt;BR /&gt;1f) add entry in /etc/fstab&lt;BR /&gt;1g) swapon -a&lt;BR /&gt;&lt;BR /&gt;Am I right ?&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Mar 2006 12:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968159#M46913</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-03-20T12:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968160#M46914</link>
      <description>Your procedure is correct, just ensure that you are using the fastest disk (use hdparm -tT to check the speed) and try to separate the swap partitions from data partitions. If you system has enough RAM, swap should not be used and this may not be an issue.</description>
      <pubDate>Mon, 20 Mar 2006 13:57:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968160#M46914</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-20T13:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968161#M46915</link>
      <description>One last question ... If I have multiple swap partitions, then which swap partition will be use 'first'&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 22 Mar 2006 12:52:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968161#M46915</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-03-22T12:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968162#M46916</link>
      <description>It depends of the priority asigned to the swap device. Higher priority will be used first. If priority is the same, will try to balance the use.</description>
      <pubDate>Wed, 22 Mar 2006 15:02:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968162#M46916</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-22T15:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968163#M46917</link>
      <description>If you don't specify a priority in the /etc/fstab file (pri=N), swap space will be used in the order listed by swapon -s.</description>
      <pubDate>Wed, 22 Mar 2006 17:11:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968163#M46917</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-22T17:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968164#M46918</link>
      <description>One more insteresting thing, this is from the "Tuning Red Hat Enterprise Linux on IBM eserver xseries servers":&lt;BR /&gt;&lt;BR /&gt;Linux kernels 2.4 and beyond support swap sizes up to 24 GB per partition with an 8 TB theoretical maximum for 32-bit systems. Swap partitions should reside on separate disks.&lt;BR /&gt;&lt;BR /&gt;Anyway, I will use 2 GB partitions for swap until Red Hat Intallation guide confirms this.</description>
      <pubDate>Wed, 22 Mar 2006 17:16:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968164#M46918</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-22T17:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968165#M46919</link>
      <description>Having a look through a few things, I've found this.&lt;BR /&gt;&lt;BR /&gt;In /usr/include/linux/swap.h, it shows:&lt;BR /&gt;&lt;BR /&gt;#define MAX_SWAPFILES 32&lt;BR /&gt;&lt;BR /&gt;This file does not however state how big the individual swapfiles can be (This is from a 2.6.14-1.1637_FC4 machine).&lt;BR /&gt;&lt;BR /&gt;From TLDP  ( &lt;A href="http://www.tldp.org/HOWTO/Partition/requirements.html" target="_blank"&gt;http://www.tldp.org/HOWTO/Partition/requirements.html&lt;/A&gt; ):&lt;BR /&gt;&lt;BR /&gt;'Currently, the maximum size of a swap partition is architecture-dependent. For i386, m68k, ARM and PowerPC, it is "officially" 2Gb. It is 128Gb on alpha, 1Gb on sparc, and 3Tb on sparc64. An opteron on the 2.6 kernel can write to a 16 Tb swap partition.'&lt;BR /&gt;&lt;BR /&gt;So, safe side.  Stick to multiple 2GB partitions.</description>
      <pubDate>Wed, 22 Mar 2006 18:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968165#M46919</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-03-22T18:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: multiple swap filesystems</title>
      <link>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968166#M46920</link>
      <description>Thanks Dear Ivan Ferreira for Continous Help and support&lt;BR /&gt;and Nice help Stuart Browne ;)&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Mar 2006 13:29:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/multiple-swap-filesystems/m-p/4968166#M46920</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-03-23T13:29:10Z</dc:date>
    </item>
  </channel>
</rss>

