当前位置:网站首页>Redis trend - NVM memory
Redis trend - NVM memory
2022-06-25 18:02:00 【Java interview 365】
Redis trend —NVM Memory
NVM What is it?
NVM Full name Non-Volatile Memory Nonvolatile storage ,NVM It is characterized by large capacity 、 Fast 、 Support persistent data , This feature and Redis The goals we pursue coincide , So in practice Redis You can put NVM As memory DRAM Use .
NVM Memory characteristics
NVM Memory and traditional DRAM What are the advantages of memory ?
NVM Memory can directly persist data , Data saved in NVM After memory , Even in case of power failure or downtime , The data will still be stored in NVM In the memory , While traditional DRAM Memory power failure or downtime will lead to DRAM Memory data loss .
NVM The access speed of memory is close to DRAM The speed of , Remember that this is near, not over ,NVM The memory read latency is about 200~300ns, Write delay approx 100ns.
NVM The memory capacity is very large ,NVM The device density is very high , Single root NVM Memory modules can achieve 128G The maximum capacity can even reach 512G, So we can use NVM Memory is easy to build TB Level of memory .
NVM product AEP Memory
Now the industry has NVM Memory products ,Intel stay 2019 year 4 Month launch Optane AEP Memory module ( abbreviation AEP Memory ),AEP Memory provides two usage modes for software , The partial emphasis of these two models is NVM Large capacity , Persistent save data .
Memory Pattern , This model is to NVM Use it as a large memory , This mode does not enable persistence , Does that mean that Memory Patterns don't need DRAM Traditional memory ? Not that the server still needs to be configured DRAM Memory , however DRAM Memory is treated as AEP Memory cache usage ,DRAM The memory space of is not visible to the application software , The application will use AEP Of memory space .
APP Direct Pattern , This model will NVM Used as a persistent memory , That is, the application software writes the data to AEP On memory , The data is directly persisted , This is also called persistent memory (Persistent Memory abbreviation PM).
Redis use AEP Advantages of memory
Redis If the AEP Memory as storage , So it needs to be considered in different modes
Memory Pattern
Redis use Memory Pattern is to use its large capacity to save a large amount of data ,Redis It can also provide large capacity storage for businesses ,Redis It can be like DRAM No code modification is required for memory operation .
But it should be noted that AEP Memory access latency is certainly higher than traditional DRAM High memory , because AEP It is NVM An implementation of ,NVM There are access and read-write delays , So we need to make a trade-off between read-write latency and large capacity .
APP Direct Pattern
Redis De application APP Direct After the model , So write AEP Memory data will be automatically persisted , There's no need to Redis Some persistence mechanisms of , Because no matter it is AOF still RDB Persistence mode , There is a risk of data loss , Moreover, persistence operation may cause some problems
RDB Persistence ,fork The child process blocks the main thread .
AOF File logging , There is a trade-off between reliability and write performance , It is generally recommended to choose a compromise everysec.
AOF and RDB When a file recovers data , Recovery speed is affected by RDB Document and AOF File size limit .
So in APP Direct Mode can make full use of PM Characteristics of persistent memory , avoid Redis Some problems caused by self persistence .
边栏推荐
- 移动端异构运算技术 - GPU OpenCL 编程(基础篇)
- QT using SQLite database
- [compilation principle] lexical analysis
- A simple and easy-to-use graph visualization tool developed recently
- Li Kou daily question - day 27 -561 Array splitting I
- Article 6:clion:toolchains are not configured configure disable profile
- Intelligent dialog 01 redis installation
- 华为云GaussDB(for Redis)揭秘第19期:GaussDB(for Redis)全面对比Codis
- 近来开发的一款简单易用的图可视化工具
- What is an operator?
猜你喜欢

Solve nvprof error err_ NVGPUCTRPERM - The user does not have permission to profile on the target device.
![Jericho's method of obtaining reset source and wakeup IO port [chapter]](/img/93/30d5075a3da1ace7438ae06c1b1775.png)
Jericho's method of obtaining reset source and wakeup IO port [chapter]

怎么判断自己是否适合转行软件测试

About Equilibrium - Simplified bottleneck model

Unity technical manual - size over lifetime and size by speed

微博评论的计算架构

为什么在变频器场合需要安科瑞的电力有源滤波器?

SDN系统方法 | 10. SDN的未来

New characteristics of cultural consumption in the era of digital economy

Introduction to the container of() function
随机推荐
How to open a stock account is it safe to open an account
什么是算子?
SDN系统方法 | 9. 接入网
The icon is missing. What does the URL come from with the jesssionid?
Py3.6 and py3.7 installed by CONDA
篇6:CLion:Toolchains are not configured Configure Disable profile
Accumulation of some common knowledge points
Why do we need ankeri's active power filter in frequency converter occasions?
Operating steps for installing CUDA in win10 (continuous improvement)
图标丢失,URL附带JESSSIONID的什么来的?
Qinheng ch583 USB custom hid debugging record
RuntimeError: Trying to backward through the graph a second time (or directly access saved variable
Article 6:clion:toolchains are not configured configure disable profile
Unity technical manual - interference / noise sub module
十大证券公司哪个佣金最低 办理开户安全吗
JSP页面运行却显示源码
智能对话01-redis的安装
启牛的涨乐财付通如何?安全靠谱吗
What is public chain development? What are the public chain development projects?
Indexes