亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? store_heap_replacement.c

?? 代理服務(wù)器 squid-2.6.STABLE16
?? C
字號:
/* * $Id: store_heap_replacement.c,v 1.9 2005/05/17 16:56:44 hno Exp $ * * DEBUG: section 20    Storage Manager Heap-based replacement * AUTHOR: John Dilley * * SQUID Web Proxy Cache          http://www.squid-cache.org/ * ---------------------------------------------------------- * *  Squid is the result of efforts by numerous individuals from *  the Internet community; see the CONTRIBUTORS file for full *  details.   Many organizations have provided support for Squid's *  development; see the SPONSORS file for full details.  Squid is *  Copyrighted (C) 2001 by the Regents of the University of *  California; see the COPYRIGHT file for full details.  Squid *  incorporates software developed and/or copyrighted by other *  sources; see the CREDITS file for full details. * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. *   *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. *   *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. * *//* * The code in this file is Copyrighted (C) 1999 by Hewlett Packard. *  * * For a description of these cache replacement policies see -- *  http://www.hpl.hp.com/techreports/1999/HPL-1999-69.html */#include "squid.h"#include "heap.h"#include "store_heap_replacement.h"/* * Key generation function to implement the LFU-DA policy (Least * Frequently Used with Dynamic Aging).  Similar to classical LFU * but with aging to handle turnover of the popular document set. * Maximizes byte hit rate by keeping more currently popular objects * in cache regardless of size.  Achieves lower hit rate than GDS * because there are more large objects in cache (so less room for * smaller popular objects). *  * This version implements a tie-breaker based upon recency * (e->lastref): for objects that have the same reference count * the most recent object wins (gets a higher key value). * * Note: this does not properly handle when the aging factor * gets so huge that the added value is outside of the * precision of double. However, Squid has to stay up * for quite a extended period of time (number of requests) * for this to become a problem. (estimation is 10^8 cache * turnarounds) */heap_keyHeapKeyGen_StoreEntry_LFUDA(void *entry, double age){    StoreEntry *e = entry;    heap_key key;    double tie;    if (e->lastref <= 0)	tie = 0.0;    else if (squid_curtime <= e->lastref)	tie = 0.0;    else	tie = 1.0 - exp((double) (e->lastref - squid_curtime) / 86400.0);    key = age + (double) e->refcount - tie;    debug(81, 3) ("HeapKeyGen_StoreEntry_LFUDA: %s refcnt=%d lastref=%ld age=%f tie=%f -> %f\n",	storeKeyText(e->hash.key), (int) e->refcount, (long int) e->lastref, age, tie, key);    if (e->mem_obj && e->mem_obj->url)	debug(81, 3) ("HeapKeyGen_StoreEntry_LFUDA: url=%s\n",	    e->mem_obj->url);    return (double) key;}/* * Key generation function to implement the GDS-Frequency policy. * Similar to Greedy Dual-Size Hits policy, but adds aging of * documents to prevent pollution.  Maximizes object hit rate by * keeping more small, popular objects in cache.  Achieves lower * byte hit rate than LFUDA because there are fewer large objects * in cache. *  * This version implements a tie-breaker based upon recency * (e->lastref): for objects that have the same reference count * the most recent object wins (gets a higher key value). * * Note: this does not properly handle when the aging factor * gets so huge that the added value is outside of the * precision of double. However, Squid has to stay up * for quite a extended period of time (number of requests) * for this to become a problem. (estimation is 10^8 cache * turnarounds) */heap_keyHeapKeyGen_StoreEntry_GDSF(void *entry, double age){    StoreEntry *e = entry;    heap_key key;    double size = e->swap_file_sz ? (double) e->swap_file_sz : 1.0;    double tie = (e->lastref > 1) ? (1.0 / e->lastref) : 1.0;    key = age + ((double) e->refcount / size) - tie;    debug(81, 3) ("HeapKeyGen_StoreEntry_GDSF: %s size=%f refcnt=%d lastref=%ld age=%f tie=%f -> %f\n",	storeKeyText(e->hash.key), size, (int) e->refcount, (long int) e->lastref, age, tie, key);    if (e->mem_obj && e->mem_obj->url)	debug(81, 3) ("HeapKeyGen_StoreEntry_GDSF: url=%s\n",	    e->mem_obj->url);    return key;}/*  * Key generation function to implement the LRU policy.  Normally * one would not do this with a heap -- use the linked list instead. * For testing and performance characterization it was useful. * Don't use it unless you are trying to compare performance among * heap-based replacement policies... */heap_keyHeapKeyGen_StoreEntry_LRU(void *entry, double age){    StoreEntry *e = entry;    debug(81, 3) ("HeapKeyGen_StoreEntry_LRU: %s age=%f lastref=%f\n",	storeKeyText(e->hash.key), age, (double) e->lastref);    if (e->mem_obj && e->mem_obj->url)	debug(81, 3) ("HeapKeyGen_StoreEntry_LRU: url=%s\n",	    e->mem_obj->url);    return (heap_key) e->lastref;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品91自产拍在线观看一区| 日韩国产欧美在线观看| 国产ts人妖一区二区| 国产日韩欧美综合在线| 国产成人在线视频网址| 久久精品视频一区二区| av成人老司机| 日韩国产在线一| 久久综合一区二区| 成人国产精品免费网站| 一区二区三区在线观看网站| 欧美日韩亚洲高清一区二区| 美女在线观看视频一区二区| 久久久久久**毛片大全| 91在线播放网址| 亚洲444eee在线观看| 久久久久一区二区三区四区| av亚洲精华国产精华精| 偷拍与自拍一区| 中文字幕精品在线不卡| 在线观看免费成人| 韩国v欧美v亚洲v日本v| **性色生活片久久毛片| 日韩一区二区在线播放| 成人免费观看av| 视频一区在线视频| 中文字幕国产一区| 制服丝袜中文字幕亚洲| 成人激情电影免费在线观看| 日日夜夜精品视频免费| 国产精品视频九色porn| 欧美一级理论性理论a| 成人午夜精品在线| 免费的国产精品| 亚洲欧洲精品一区二区三区| 欧美一区二区三区日韩| 91丨九色丨蝌蚪丨老版| 狠狠色综合日日| 亚洲午夜在线观看视频在线| 国产精品视频一二三| 日韩欧美成人一区| 欧美午夜精品电影| www.99精品| 国产成人亚洲综合a∨婷婷| 日日夜夜一区二区| 亚洲狼人国产精品| 中文字幕第一区第二区| 日韩三级视频中文字幕| 在线看国产日韩| 成人av动漫网站| 精品无人码麻豆乱码1区2区| 亚洲精品高清在线| 久久久午夜精品理论片中文字幕| 欧美日韩精品一区二区| 91影院在线观看| av在线不卡网| 粉嫩av一区二区三区| 国产精品一区二区视频| 久久成人免费电影| 久久国产尿小便嘘嘘尿| 免费看精品久久片| 男人的天堂久久精品| 亚洲国产成人91porn| 亚洲一级二级三级| 亚洲国产婷婷综合在线精品| 亚洲日本在线天堂| 亚洲色图清纯唯美| 亚洲精品欧美在线| 韩国在线一区二区| 国产中文字幕精品| 国产一区二区久久| 国产精品一区二区无线| 国产不卡高清在线观看视频| 激情综合网激情| 国产综合久久久久久鬼色| 蜜桃av噜噜一区二区三区小说| 日本视频免费一区| 久久超碰97人人做人人爱| 九九精品视频在线看| 韩国女主播成人在线观看| 国产精品一区专区| 成人高清视频在线| 97se狠狠狠综合亚洲狠狠| 波多野结衣中文字幕一区二区三区| 国产91丝袜在线播放0| 成人毛片老司机大片| 99精品国产视频| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 91激情五月电影| 欧美精品v国产精品v日韩精品| 欧美一区二区三区啪啪| 精品电影一区二区三区| 国产精品女同互慰在线看| 亚洲精品亚洲人成人网在线播放| 亚洲精品高清在线观看| 日本亚洲视频在线| 国产精品亚洲а∨天堂免在线| 欧美成人在线直播| 国产精品色一区二区三区| 亚洲美女视频在线| 美日韩黄色大片| 白白色亚洲国产精品| 欧美视频在线一区| 亚洲精品在线一区二区| 中文字幕亚洲区| 五月激情丁香一区二区三区| 精品写真视频在线观看| 一本大道久久精品懂色aⅴ| 欧美精品久久久久久久多人混战| 精品国产91洋老外米糕| 自拍偷在线精品自拍偷无码专区| 一区二区三区久久久| 久草这里只有精品视频| 成人激情电影免费在线观看| 欧美日韩国产不卡| 国产片一区二区三区| 一区二区三区欧美视频| 韩国v欧美v日本v亚洲v| 欧美少妇性性性| 国产亚洲欧美激情| 亚欧色一区w666天堂| 国产aⅴ精品一区二区三区色成熟| 91黄视频在线| 国产欧美一区二区三区沐欲| 亚洲韩国精品一区| 成人18精品视频| 精品久久久三级丝袜| 亚洲一区在线电影| 成人深夜在线观看| 日韩天堂在线观看| 亚洲综合一区二区三区| 国产黑丝在线一区二区三区| 5月丁香婷婷综合| 亚洲婷婷在线视频| 国模冰冰炮一区二区| 欧美在线制服丝袜| 国产精品久久久久久亚洲伦| 麻豆91在线看| 欧美日韩不卡在线| 亚洲男人天堂av网| 91亚洲午夜精品久久久久久| 欧美精品一区二区三区高清aⅴ| 亚洲国产婷婷综合在线精品| 不卡高清视频专区| 久久午夜电影网| 久久精品免费观看| 欧美一卡在线观看| 日韩高清国产一区在线| 91国偷自产一区二区三区成为亚洲经典| 国产人久久人人人人爽| 国产做a爰片久久毛片| 91.麻豆视频| 亚洲二区在线视频| 欧美亚洲一区二区三区四区| 亚洲欧洲性图库| 99精品视频一区| 国产精品成人一区二区艾草| 福利91精品一区二区三区| 欧美成人一区二区三区片免费| 肉肉av福利一精品导航| 在线成人午夜影院| 日韩综合一区二区| 欧美一区二区三区性视频| 三级精品在线观看| 欧美一级欧美一级在线播放| 蜜臀久久久99精品久久久久久| 欧美高清你懂得| 秋霞国产午夜精品免费视频| 日韩欧美一区二区久久婷婷| 精品一区二区免费在线观看| 日韩高清国产一区在线| 3d动漫精品啪啪| 九色综合国产一区二区三区| 欧美成人女星排行榜| 国产一区91精品张津瑜| 久久久久国产精品免费免费搜索 | 国产精品萝li| 不卡一区二区三区四区| 亚洲视频1区2区| 日本精品一区二区三区高清| 亚洲摸摸操操av| 欧美日韩国产美女| 韩国av一区二区| 国产精品污www在线观看| 粗大黑人巨茎大战欧美成人| 亚洲品质自拍视频网站| 911国产精品| 国产精品一二三在| 亚洲精品少妇30p| 日韩一区二区在线播放| 粉嫩嫩av羞羞动漫久久久| 亚洲精品欧美二区三区中文字幕| 欧美精品v日韩精品v韩国精品v| 精品在线播放免费| 中文字幕日韩一区| 欧美一区二区免费观在线| 国产精品乡下勾搭老头1| 伊人夜夜躁av伊人久久| 日韩欧美一级片| 色综合天天狠狠|