<?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 swap space recommendation on linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077662#M49155</link>
    <description># cat /etc/redhat-release&lt;BR /&gt;Red Hat Linux Advanced Server release 2.1AS (Pensacola)&lt;BR /&gt;&lt;BR /&gt;# uname -a&lt;BR /&gt;Linux hostname 2.4.9-e.71smp #1 SMP Thu Nov 23 11:51:48 EST 2006 i686 unknown&lt;BR /&gt;&lt;BR /&gt;i have 4GB RAM and 4GB swap currently. often the swap goes beyond 85%.&lt;BR /&gt;&lt;BR /&gt;What would be the ideal RAM/SWAP ratio?what are  the recommendations when we add the swap online?I would like to add additinal swap space from an existing disk /dev/sdb. I dont have LVM.My plan is to create one 2GB partion on /dev/sdb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# swapon -s&lt;BR /&gt;Filename                        Type            Size    Used    Priority&lt;BR /&gt;/dev/sda2                       partition       2097136 1548124 -1&lt;BR /&gt;/dev/sdb1                       partition       2097136 1268328 -2&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 01 Nov 2007 14:26:25 GMT</pubDate>
    <dc:creator>skt_skt</dc:creator>
    <dc:date>2007-11-01T14:26:25Z</dc:date>
    <item>
      <title>swap space recommendation on linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077662#M49155</link>
      <description># cat /etc/redhat-release&lt;BR /&gt;Red Hat Linux Advanced Server release 2.1AS (Pensacola)&lt;BR /&gt;&lt;BR /&gt;# uname -a&lt;BR /&gt;Linux hostname 2.4.9-e.71smp #1 SMP Thu Nov 23 11:51:48 EST 2006 i686 unknown&lt;BR /&gt;&lt;BR /&gt;i have 4GB RAM and 4GB swap currently. often the swap goes beyond 85%.&lt;BR /&gt;&lt;BR /&gt;What would be the ideal RAM/SWAP ratio?what are  the recommendations when we add the swap online?I would like to add additinal swap space from an existing disk /dev/sdb. I dont have LVM.My plan is to create one 2GB partion on /dev/sdb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# swapon -s&lt;BR /&gt;Filename                        Type            Size    Used    Priority&lt;BR /&gt;/dev/sda2                       partition       2097136 1548124 -1&lt;BR /&gt;/dev/sdb1                       partition       2097136 1268328 -2&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Nov 2007 14:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077662#M49155</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-11-01T14:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: swap space recommendation on linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077663#M49156</link>
      <description>According to the installation guide, swap should be:&lt;BR /&gt;&lt;BR /&gt;Swap should equal 2x physical RAM for up to 2 GB of physical RAM, and then 1x physical RAM for any amount above 2 GB, but never less than 32 MB.&lt;BR /&gt;&lt;BR /&gt;Using this formula, a system with 2 GB of physical RAM would have 4 GB of swap, while one with 3 GB of physical RAM would have 5 GB of swap. Creating a large swap space partition can be especially helpful if you plan to upgrade your RAM at a later time.</description>
      <pubDate>Thu, 01 Nov 2007 15:09:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077663#M49156</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-11-01T15:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: swap space recommendation on linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077664#M49157</link>
      <description>Your swap utilization is over 85% ?!?&lt;BR /&gt;&lt;BR /&gt;I'd be suggesting you invest in more memory!</description>
      <pubDate>Thu, 01 Nov 2007 15:20:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077664#M49157</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-11-01T15:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: swap space recommendation on linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077665#M49158</link>
      <description>there is no ideal formula. it depends on the type of app you're running and the load caused by that app.&lt;BR /&gt;&lt;BR /&gt;all our linux servers share the same install, but you'll find different swap utilization on all of them.</description>
      <pubDate>Fri, 02 Nov 2007 03:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077665#M49158</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2007-11-02T03:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: swap space recommendation on linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077666#M49159</link>
      <description>Ideally for a system with 4 GB of memory swap file utilization should be minimum.&lt;BR /&gt;&lt;BR /&gt;Normally swap file is set to 1.5 - 2.0x the physical memory. However, as the memory increases, the rule need not be adhered to. &lt;BR /&gt;&lt;BR /&gt;There is also a parameter called swappiness (/proc/sys/vm/swappiness), if you are sure that the physical memory is sufficient for the operations and that swap file need not be used much you can reduce the swappiness.&lt;BR /&gt;&lt;BR /&gt;It goes from 0 - 100, higher the number, greater the tendency to use the swap file. You can read more about swappiness at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://kerneltrap.org/node/3000" target="_blank"&gt;http://kerneltrap.org/node/3000&lt;/A&gt;</description>
      <pubDate>Fri, 02 Nov 2007 05:02:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077666#M49159</guid>
      <dc:creator>~sesh</dc:creator>
      <dc:date>2007-11-02T05:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: swap space recommendation on linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077667#M49160</link>
      <description>If your system is swapping, either investigate why it needs so much memory or just buy more memory. IMHO a server should use minimal swap space.&lt;BR /&gt;&lt;BR /&gt;JP</description>
      <pubDate>Sun, 04 Nov 2007 07:47:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077667#M49160</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2007-11-04T07:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: swap space recommendation on linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077668#M49161</link>
      <description>below is the information i see ..As per that i cannot add another swap partition if the same disk is already in use as FS or a swap partition.  &lt;BR /&gt;&lt;BR /&gt;"How do I add a swap partition to my system in Red Hat Enterprise Linux? Resolution:To add a swap partition (assuming /dev/hdb2 is the swap partition you want to add): The hard drive can not be in use (partitions can not be mounted, and swap space can not be enabled). The partition table should not be modified while in use because the kernel may not properly recognize the changes. Data could be overwitten by writing to the wrong partition because the partition table and partitions mounted do not match. The easiest way to achieve this is to boot your system in rescue mode. When prompted to mount the file system, select Skip. &lt;BR /&gt;&lt;BR /&gt;Alternately, if the drive does not contain any partitions in use, you can unmount them and turn off all the swap space on the hard drive with the swapoff command."&lt;BR /&gt;&lt;BR /&gt;is there anyway i can achieve adding another swap partition from same disk w/o taking down time?&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Nov 2007 20:49:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077668#M49161</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-11-06T20:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: swap space recommendation on linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077669#M49162</link>
      <description>If there is available space on the disk, then you should be able to.&lt;BR /&gt;&lt;BR /&gt;If you've got no available space (unpartitioned space), but available space in a filesystem, then you can create 'swap files', and use them as swap space instead to get you past a temporary issue.&lt;BR /&gt;&lt;BR /&gt;The details on how to do that are in the 'mkswap' man page.</description>
      <pubDate>Wed, 07 Nov 2007 00:00:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077669#M49162</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-11-07T00:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: swap space recommendation on linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077670#M49163</link>
      <description>&lt;BR /&gt;But the recommendation/warning posted in "quote" (from parted)do NOT allow me to go ahead and try this. Also this is a PROD box and dont want to give a chance&lt;BR /&gt;&lt;BR /&gt;i have enough space on this particular disk. But there is an existing swap partition on the same disk.&lt;BR /&gt;&lt;BR /&gt;I started with fdisk ; created a partion with id 82(Linux-swap)&lt;BR /&gt;&lt;BR /&gt;But swapon was failing . &lt;BR /&gt;&lt;BR /&gt;#swapon /dev/sdb2&lt;BR /&gt;swapon: /dev/sdb2: No such device or address&lt;BR /&gt;&lt;BR /&gt;Then i started with parted. So what i posted in quote earlier are the recommendations from parted.&lt;BR /&gt;&lt;BR /&gt;"mkpart PART-TYPE [FS-TYPE] START END      make a partition"</description>
      <pubDate>Wed, 07 Nov 2007 15:40:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077670#M49163</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-11-07T15:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: swap space recommendation on linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077671#M49164</link>
      <description>&lt;BR /&gt;the ansers to "swap space recommendation on linux" were pretty help full.&lt;BR /&gt;&lt;BR /&gt;but adding swap online from an existing disk(swap enabled with one partion) is not possible with 2.1 kernel.&lt;BR /&gt;&lt;BR /&gt;other choice to add file swap whihc i dont prefer for this scenario.</description>
      <pubDate>Fri, 09 Nov 2007 08:55:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077671#M49164</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-11-09T08:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: swap space recommendation on linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077672#M49165</link>
      <description>firstly, swap size must be double the size of RAM and then while making partitions in mount you have to specify the size of ram and swap in such a way that swap size must be double the size of physical memory.</description>
      <pubDate>Mon, 12 Nov 2007 06:43:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-space-recommendation-on-linux/m-p/5077672#M49165</guid>
      <dc:creator>sandeep mathur</dc:creator>
      <dc:date>2007-11-12T06:43:04Z</dc:date>
    </item>
  </channel>
</rss>

