71

如履薄冰 —— Redis懒惰删除的巨大牺牲-Java架构的博客

 5 years ago
source link: http://blog.51cto.com/13732225/2156807
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言之前我们介绍了Redis懒惰删除的特性,它是使用异步线程对已经删除的节点进行延后内存回收。但是还不够深入,所以本节我们要对异步线程逻辑处理的细节进行分析,看看Antirez是如何实现异步线程处理的。异步线程在Redis内部有一个特别的名称,它就是BIO,全称是BackgroundIO,意思是在背后默默干活的IO线程。不过内存回收本身并不是什么IO操作,只是CPU的计算消耗可能会比较大而已。懒惰

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK