<?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 memory size in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243178#M11242</link>
    <description>I want to change the swap memory size , could suggest how to check and change it ? Thx</description>
    <pubDate>Thu, 08 Apr 2004 01:46:52 GMT</pubDate>
    <dc:creator>peterchu</dc:creator>
    <dc:date>2004-04-08T01:46:52Z</dc:date>
    <item>
      <title>SWAP memory size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243178#M11242</link>
      <description>I want to change the swap memory size , could suggest how to check and change it ? Thx</description>
      <pubDate>Thu, 08 Apr 2004 01:46:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243178#M11242</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-04-08T01:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP memory size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243179#M11243</link>
      <description>You can check your current configuration a few ways.&lt;BR /&gt;&lt;BR /&gt;The easiest way to find out how much swap you've currently configured however is to just:&lt;BR /&gt;&lt;BR /&gt;cat /proc/meminfo&lt;BR /&gt;&lt;BR /&gt;To configure more swap, you can use one of three methods:&lt;BR /&gt;&lt;BR /&gt;- If you've got available un-partitioned disk space, create a new swap partition in the available space.&lt;BR /&gt;&lt;BR /&gt;- If you've got available  disk-space, and want to resize an existing partition, reduce one, then do as above.&lt;BR /&gt;&lt;BR /&gt;- Failing those two, create a paging 'file' on a filesystem (using dd) of the required size, then add that to the swap pool.&lt;BR /&gt;&lt;BR /&gt;The first two methods should be pretty self explanatory.&lt;BR /&gt;&lt;BR /&gt;The third however is a little more complex.&lt;BR /&gt;&lt;BR /&gt;Basically you create a null-filled file of the required size by doing:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of=/myswapfile bs=1024b count=&lt;HOW-MANY-KILO-BYTES-BIG&gt;&lt;BR /&gt;&lt;BR /&gt;You then 'mkswap /myswapfile' the file, and then swapon it.&lt;BR /&gt;&lt;BR /&gt;If you need more details, drop a line, or read &lt;A href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/Swap-Space" target="_blank"&gt;http://www.ibiblio.org/pub/Linux/docs/HOWTO/Swap-Space&lt;/A&gt;&lt;/HOW-MANY-KILO-BYTES-BIG&gt;</description>
      <pubDate>Thu, 08 Apr 2004 01:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243179#M11243</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-04-08T01:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP memory size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243180#M11244</link>
      <description>Hi peterchu &lt;BR /&gt;&lt;BR /&gt;For Checking Swap Size and Usage,&lt;BR /&gt;&lt;BR /&gt;Cat /proc/swaps&lt;BR /&gt;&lt;BR /&gt;Adding a permanent swap file to the system is not recommended because it will lead to performance problems, instead u can add more physical memory.&lt;BR /&gt;&lt;BR /&gt;Adding a Swap Space&lt;BR /&gt;Check this URL for more information.&lt;BR /&gt;&lt;A href="http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html" target="_blank"&gt;http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Instead of using a raw device, u can a temporary file:&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;su - root&lt;BR /&gt;dd if=/dev/zero of=tmpswap bs=1k count=900000&lt;BR /&gt;chmod 600 tmpswap&lt;BR /&gt;mkswap tmpswap&lt;BR /&gt;swapon tmpswap&lt;BR /&gt;&lt;BR /&gt;With Regards &lt;BR /&gt;Hari Kumar</description>
      <pubDate>Thu, 08 Apr 2004 02:07:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243180#M11244</guid>
      <dc:creator>Hari Kumar</dc:creator>
      <dc:date>2004-04-08T02:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP memory size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243181#M11245</link>
      <description>Ack! always forget about '/proc/swaps'! :)</description>
      <pubDate>Thu, 08 Apr 2004 02:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243181#M11245</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-04-08T02:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP memory size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243182#M11246</link>
      <description>man mkswap&lt;BR /&gt;man swapon&lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Thu, 08 Apr 2004 02:10:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243182#M11246</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-08T02:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP memory size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243183#M11247</link>
      <description>thx all replies,  one more question , we have the production db running on the system , is it possible to change the SWAP memory when the db was running , any impact to the system ? thx.</description>
      <pubDate>Thu, 08 Apr 2004 02:19:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243183#M11247</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2004-04-08T02:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP memory size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243184#M11248</link>
      <description>So long as you dont *remove* the existing swap, it won't have any affect what-so-ever.&lt;BR /&gt;&lt;BR /&gt;If none of the swap is currently in use, it also shouldn't have an effect if you remove the current swap.</description>
      <pubDate>Thu, 08 Apr 2004 02:20:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243184#M11248</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-04-08T02:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP memory size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243185#M11249</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Dont Mind, assign some points if u got an acceptable answer through the forum. As these will be encouraging for the participants and keep the HP Forums go higher and higher&lt;BR /&gt;&lt;BR /&gt;With Regards&lt;BR /&gt;Hari</description>
      <pubDate>Thu, 08 Apr 2004 08:09:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243185#M11249</guid>
      <dc:creator>Hari Kumar</dc:creator>
      <dc:date>2004-04-08T08:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP memory size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243186#M11250</link>
      <description>#swapinfo -tam&lt;BR /&gt;Can also see by SAM, glance and I would suggest to create new SWAP and give same priority as you have on existing swap. SWAP filesystem is contigous and its always better to create new one in addition to current ones. &lt;BR /&gt;</description>
      <pubDate>Fri, 09 Apr 2004 14:56:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243186#M11250</guid>
      <dc:creator>SS_6</dc:creator>
      <dc:date>2004-04-09T14:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP memory size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243187#M11251</link>
      <description>'swapinfo' isn't on every Linux distribution, and 'SAM' is a HP-UX command.</description>
      <pubDate>Fri, 09 Apr 2004 19:32:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/swap-memory-size/m-p/3243187#M11251</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-04-09T19:32:15Z</dc:date>
    </item>
  </channel>
</rss>

