Modify the tmpfs size in Oracle Linux (OEL) and make it take effect

Source: Internet
Author: User

In Oracle Linux, the size of tmpfs is increased to MB to 3 GB (note: the initial value is half of the memory)

First Change/etc/fstab to change the tmpfs size to 3 GB

Add size = 3G after tmpfs,

OK,/etc/fstab is edited, but OEL is a little different from RedHat, but changing fstab is not enough. After the OS is restarted, tmpfs will still become the memory, so we need to change another configuration file/etc/rc. d/rc. sysinit

1. comment out the following statements

# Mount-f/dev/shm>/dev/null2> & 1)

2. Add tmpfs to the type,

Find this statement,

Add tmpfs to the type, for example:

So far, the size of tmpfs has been changed and the operating system is restarted.

Restart and verify the tmpfs size:

So far, tmpfs has been changed!

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.