Linux increases virtual memory

Source: Internet
Author: User
The Linux server will require the virtual memory of the current system when installing larger software in the process, assuming that the initialization of the operating system without allocating large enough virtual memory later must manually increase the virtual memory to meet the installation conditions of the software.
Today we will learn how to increase the manual virtual memory, of course, all Linux systems to increase the virtual memory method is the same.
The operation is as follows:

  1. Use root login under terminal to check the virtual memory capacity of the current system
  2. Select a large partition to create a virtual memory file
  3. Format the swap partition and enable the swap partition
  4. If you want to boot from the start, you need to modify the/etc/fstab configuration file, the end of the file to append a line of information as follows
    [[email protected] ~]# vim /etc/fstab
  5. To view the increased virtual memory capacity:
  1. If you are not using it later, you would like to delete the swap partition as follows:
    6.1 Delete the swap:
    [[email protected] ~]# swapoff /swap
    [[email protected] ~]# rm -f /swap

    6.2 Delete the Swap information line from the/etc/fstab file

Linux increases virtual memory

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.