Linux Swap partition settings

Source: Internet
Author: User

Because you are ready to install Oracle database on Linux, it is said that the swap partition is less than 4G easy to fail, the sky chatter I even the swap partition is not very clear,

I think I have an impression, but I'll talk about it before we get big.

The test proves that the default swap partition of UBUNTU14 is the same as the initial set of memory size.

Originally because the hand speed too fast, accidentally set the memory to the default 1G, later changed to 3G, now found that the swap partition actually only a small 1G,

Anyway hard drive place big, again reward you 4G is not what.

By the way,swap view mode free

?

OK, check the tutorials online, and then implement the test

  1. DD If=/dev/zero OF=/SWAP1 bs=1m count=4096

    First, create swap files for partitioning in a space where appropriate: for example,/SWAP1

    If the infile,of means that outfile,bs=1m represents the increased module size, count=4096 represents 4,096 modules, or 4G space

  2. Mkswap/swap1

    Set the destination file to a swap partition file.

  3. Swapon/swap1

    Activate swap to enable swap partition files now

  4. Free to check it out.

  5. First hold the pride, do not do the following operation, restart will be invalid.
  6. Add the following line to the/etc/fstab file

    /SWAP1 swap swap defaults 0 0

  7. Restart the test.

    Respect for the original is the Chinese nation's fine traditional virtues, as the 21st century five good uncle I have to put the reference address on

    ( ̄ ̄) "

    Http://blog.chinaunix.net/uid-24373487-id-83864.html

Linux Swap partition settings

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.