Squid代理服务器会在本地硬盘设置缓存,这样可以提高网络效率 修改squid配置文件“/etc/squid/squid.conf”,参数“cache_dir_ufs”就是设置缓存目录的 [root@localhost wj]#gedit /etc/squid/squid.conf # Uncomment and adjust the following to add a disk cache direc...【阅读全文】
在前文分析kmalloc时,首先从local cache中获取,没有空闲对象时再从shared local cache中获取,再从slab的三个链表中获取。当链表中也没有空闲对象时,则需要调用cache_grow函数来创建slab了。实际上刚开始创建cache时里面是没有slab对象的,真正使用时才进行slab的创建。下面分析一下cache_grow的实现。点...【阅读全文】
上文分析了普通对象的申请过程,kmalloc。现在看一下针对专用对象的申请kmem_cache_alloc函数。点击(此处)折叠或打开/** * kmem_cache_alloc - Allocate an object * @cachep: The cache to allocate from. * @flags: See kmalloc()...【阅读全文】
Kernel提供了kmem_cache_create函数用于创建Cache,下面我们直接从API入手。函数有点长,逐行分析一下。点击(此处)折叠或打开/** * kmem_cache_create - Create a cache. * @name: A string which is used in /proc/slabinfo to identify this cache...【阅读全文】
初始化的调用过程:start_kernel()->mm_init()->kmem_cache_init(),下面分析一下具体代码。点击(此处)折叠或打开/* * Initialisation. Called after the page allocator have been initialised and * before smp_init(). */...【阅读全文】
https://docs.trafficserver.apache.org/en/5.3.x/admin/faqs.en.html?highlight=large%20objectIf a client disconnects during the time that Traffic Server is downloading a large object, is any of the object saved in the cache?When a client disconnects during an HTTP operation, Traffic ...【阅读全文】