/dev/shm and swap differences and linkages

Source: Internet
Author: User

1. Basic theory

/dev/shm This file is a parasite, it's in memory.

Swap is temporarily dividing an area of the hard disk into memory usage

2. How to view

Use DF-LH to view/DEV/SHM

Use free-m to view swap files

3. Contact :/dev/shm are temporary documents

4. When to use

The superiority of/DEV/SHM file is discovered by Oracle, and it is popularized and used;

/DEV/SHM can put the session in PHP;

Swap this thing, in the case of memory so large today (previously I used the HP DL908 G7, Memory 4TB, impeccable), can not be used without using

See document: HTTPS://WIKI.ARCHLINUX.ORG/INDEX.PHP/TMPFS

/dev/shm and swap differences and linkages

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.