Holmes Heinsource codeUsing React Native in Game Marketing Scenarios — BackgroundTranslated from: https://juejin.cn/post/7000628820814331918Jan 10, 2023Jan 10, 2023
Holmes Heinsource code理解 Memcached 源码 — LRU II多半情况下,LRU 会和 哈希表 一起使用,然后我们把这个组合称为 LRU-cache。Dec 28, 2020Dec 28, 2020
Holmes Heinsource codeUnderstanding The Memcached Source Code-Event Driven IIIWe continue examining the other two operations, i.e., create and delete, in the event driven context. As usual, we start with a command…Jun 2, 20191Jun 2, 20191
Holmes Heinsource code理解 Memcached — LRU I多半情况下, LRU 会和 哈希表一起使用,然后我们把这个组合称为 LRU 缓存 在 LRU缓存 中,哈希表提供了快速随机访问对象的能力;而 LRU(算法)则用于淘汰 很久没用 ( least recently used) 的对象,来避免缓存无限增加。我们先大致看下 LRU 组May 18, 2019May 18, 2019
Holmes Heinsource code理解 Memcached — Slab III上次我们看完了内存分配,以及形成待分配列表(free list,即slots)的过程。本篇我们继续查看如何使用建立好的数据结构来分配/回收块内存,并将它们用于存储对象。 首先,我们来看 do_slabs_alloc 这个函数对应讨论过的do_slabs_free.Mar 24, 2019Mar 24, 2019
Holmes Heinsource code理解 Memcached — Slab II这次我们继续看用于 Slab 的内存是如何分配的。 首先我们继续看 slabs_init 的两个实参。第一个是 settings.maxbytes — 控制这个 Memcached 实例可以使用的总内存大小。在传入 slabs_init 之前,这个参数被赋值为全局变量…Mar 24, 2019Mar 24, 2019
Holmes Heinsource code理解 Memcached — Slab ISlab分配器是这个缓存系统的核心,并在很大程度上决定了核心资源 — 内存 — 的利用效率。其它的三个部分,用来淘汰(超时)对象的LRU算法;和基于libevent的事件驱动;以及用于分布数据的一致性哈希,可以看作是围绕Slab来开发的。Mar 24, 2019Mar 24, 2019
Holmes Heinsource codeUnderstanding The Memcached Source Code-Event Driven IISlab allocator is the core module of the cache system, which largely determines how efficient the bottleneck resource, memory, can be…Mar 16, 2019Mar 16, 2019
Holmes Heinsource codeUnderstanding The Memcached Source Code — Event Driven IIn classic multithreading, large amounts of slow and blocking operations, mostly, I/O, can easily drain out available thread resources…Jan 27, 2019Jan 27, 2019
Holmes Heinsource codeUnderstanding The Memcached Source Code — LRU IIIIn previous posts, we have discussed different facets of an item, i.e., slab, hash map and LRU list as well as their associated (CRUD)…Jan 10, 2019Jan 10, 2019