初始化slab分配器并为VFS、缓冲区高速缓存等创建slab高速缓存。
Initializing the slab allocator and creating slab caches for VFS, buffer cache, etc.
通过使用一个软引用来管理高速缓存的缓冲区,可以解决LeakyChecksum中的问题,如清单2所示。
We can fix the problems in LeakyChecksum by using a soft reference to manage the cached buffer, as shown in Listing 2.
下一行告诉我们尽管有 231MB 内存正在使用,但是应用程序只使用了其中的 86MB;缓冲区和高速缓存使用了其余的内存。
The next line shows us that while 231MB is being used, only 86MB of this is actually being used by applications; the rest is being used for buffers and cache.
应用推荐