Redis virtual memory

Source: Internet
Author: User

Redis data is stored in memory. As the system runs, more and more redis data will lead to insufficient physical memory. The virtual memory (VM) is used to swap infrequently accessed data to the disk and free up the memory space to solve the problem of insufficient physical memory.

Redis VM only exchanges value to the disk, while the key still exists in the memory to quickly locate the value on the disk and improve performance. Therefore, if the physical memory is insufficient due to too many keys, it cannot be solved through the VM method.

 

Redis also exchanges files by PAGE and disk. Only one redis object can be saved on one page, but one redis object can be saved in multiple pages.

When the redis memory exceeds a value (this value is set through configuration), the value is exchanged to the swap file on the disk. The value selection method is for objects that are infrequently accessed and occupy a large amount of memory space.

Redis virtual memory

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.