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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? coss-notes.txt

?? 一個功能非常全面的代理服務器源代碼程序,
?? TXT
字號:
COSS notesAdrian Chadd <adrian@creative.net.au>$Id: coss-notes.txt,v 1.4 2006/10/26 19:29:38 serassio Exp $COSS is a Cyclic Object storage system originally designed byEric Stern <estern@logisense.com>. The idea has been extendedand worked into the current framework by myself.In these notes I'll discuss the current implementation of COSSand note where the implementation differed from Eric's originalidea and why the design changes were made.COSS basics-----------COSS works with a single file. Eventually the file may actually bea raw disk device, but since squid doesn't cache the disk readsin memory the OS buffer cache will need to be employed for reasonableperformance. For the purposes of this discussion the COSS storagedevice will be referred to as a file.Each stripe is a fixed size an in a fixed position in the file. Thestripe size is a compile-time option.As objects are written to a COSS stripe, their place is pre-reservedand data is copied into a memory copy of the stripe. Because of this,the object size must be known before it can be stored in a COSSfilesystem. (Hence the max-size requirement with a coss cache_dir.)When a stripe is filled, the stripe is written to disk, and a newmemory stripe is created.When objects are read back from the COSS file, they can either comefrom a stripe in-memory (the current one, or one being written),or from the disk. If the object is still in a memory stripe, thenit is copied from memory rather than read of disk.If an object is read from disk, it is re-written to the head ofthe current stripe (just as if it were a new object.) This is requiredfor correct operation of the replacement policy, detailed below.When the entire COSS file is full, the current stripe again becomes thefist stripe in the file, and the objects in that stripe are released.Since the objects on disk are kept in a strict LRU representing thereplacement policy LRU linking the StoreEntry's together, this simplyinvolves walking the tail of the LRU and freeing entries until wehit an entry in the next stripe.COSS implementation details---------------------------* The stripe size is fixed. In the original COSS code, Eric optimised  this a little by allowing the stripes to be truncated to not  waste disk space at the end of the stripe. This was removed  to simplify the allocation code slightly and make things easier  when the store log and checksums are combined in the stripe  for faster rebuilds.* COSS currently copies object memory around WAY too much. This needs  to be fixed eventually.* It would be nice if the storeRead() interface were a little smarter  and allowed the filesystem to return as much of an object as possible.  This would be good for COSS since the read from disk could be simplified  to use a single OS read() call - this would work really well for  the object types COSS is designed to cache.* The original coss code used file_read() and file_write() for disk IO.  The file_* routines were initially used to implement async disk IO,  and Eric probably wrote some async disk code for windows.  I've written a very very simple async_io.c module which uses POSIX  AIO to implement the async IO. POSIX AIO is well-suited to the  disk IO COSS performs.COSS direction--------------Eventually, when more of squid is rewritten, I'm going to replacethe replacement policy with something a little more flexible.A shortcut would be to use a slab allocator and have one slab perstripe for the StoreEntry's. When it comes time to replace a stripe,you can just treat the stripe as an array. This would not workwell in the current squid codebase, but it would work well in theplanned rewrite. This would also allow alternate replacement policiesto be used. Oh, it'd cut down the storage requirements perStoreEntry by two pointers (8 bytes on the i386.)Notes by DW July 23, 2003-------------------------Fixed up swap_filen -> offset implementation.  Now user can use ablock-size setting to determine the maximum COSS cache_dir size.Fixed bug when cached response is larger than COSS stripe size.Now require max-size to be less than COSS_MEMBUF_SZ.Fixed a lockcount bug.  Some aborted requests for cache hits failedto unlock the CossMemBuf because storeCossReadDone isn't called again.Solution is to add locked_membuf pointer to CossState structure andalways unlock it if set.  This is probably more reliable thanunlocking based on diskstart/diskend offsets.I'm worried that COSS is susceptible to a denial-of-service.  Ifthe user can create N cache misses for responses about as large asCOSS_MEMBUF_SZ, then COSS probably allocates N membufs (stripes)at the same time.  For large enough values of N, this should causea malloc failure.  Solution may be to refuse to allocate new stripes(thus returning failure for cache misses and hits) after so manyhave already been allocated.Adrian's code has this comment:    /* Since we're not supporting NOTIFY anymore, lets fail */    assert(which != COSS_ALLOC_NOTIFY);However, COSS_ALLOC_NOTIFY was still present in the store_dir_coss.crebuild routines.  To avoid assertions during rebuild, I commentedout the storeCossAllocate(SD, e, COSS_ALLOC_NOTIFY) call.-- Notes: Adrian Chadd, 9/May/2006* The types used by COSS have been modified to support Large file support,  at least under Linux. One can compile with --with-large-files to make  sure the right options have been enabled. no compile or run-time checks  are currently made to ensure the code has been compiled to support  large filesystems.. at least yet.-- Notes: Guido Serassio, 26/October/2006* When using a regular file as container, COSS storage must be initialized  once using squid -z like UFS storage.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产真实精品久久二三区| 国产精品网站在线播放| 欧美成人高清电影在线| 欧美极品aⅴ影院| 亚洲一二三区不卡| 国产成人午夜视频| 欧美另类z0zxhd电影| 国产精品日日摸夜夜摸av| 午夜精品久久久久久久| 国产成人精品一区二区三区网站观看| 欧美日韩免费电影| 国产精品午夜久久| 久久av资源站| 69久久夜色精品国产69蝌蚪网| 国产精品污网站| 久久er99精品| 538prom精品视频线放| 亚洲色图在线看| 麻豆国产欧美一区二区三区| 欧美一级二级三级蜜桃| 日本欧美久久久久免费播放网| 日韩欧美在线1卡| 欧美在线观看一区二区| 欧美国产日韩精品免费观看| 捆绑紧缚一区二区三区视频| 欧美猛男超大videosgay| 1区2区3区国产精品| 国产乱码精品一区二区三| 51精品视频一区二区三区| 亚洲日穴在线视频| 成人不卡免费av| 欧美激情中文不卡| 国产一区二区三区观看| 欧美成人乱码一区二区三区| 免费在线观看一区| 91精品国产色综合久久久蜜香臀| 婷婷六月综合亚洲| 欧美日韩成人综合在线一区二区 | 一本到不卡免费一区二区| 韩国毛片一区二区三区| 欧美一卡在线观看| 日韩影院在线观看| 在线观看av不卡| 亚洲午夜精品一区二区三区他趣| 日本韩国精品在线| 亚洲资源中文字幕| 欧美美女黄视频| 午夜精品久久久久久久 | 久久成人18免费观看| 欧美一级片在线看| 精品一区二区三区视频| 久久精品免视看| av电影在线不卡| 一区二区激情小说| 欧美军同video69gay| 麻豆极品一区二区三区| 欧美一区二区三区四区在线观看 | 日本一区二区免费在线观看视频 | 日韩欧美精品三级| 国产真实精品久久二三区| 国产日韩高清在线| 色偷偷88欧美精品久久久| 亚洲国产人成综合网站| 欧美mv和日韩mv的网站| 成人免费视频视频在线观看免费| 亚洲女厕所小便bbb| 91麻豆精品国产无毒不卡在线观看 | 久久国产生活片100| 久久精品水蜜桃av综合天堂| 99精品久久久久久| 午夜久久福利影院| 国产亚洲成年网址在线观看| 日本高清不卡一区| 麻豆成人免费电影| 亚洲欧洲另类国产综合| 欧美一区午夜精品| 成人福利视频在线| 蜜臀av一区二区| 亚洲欧美日韩国产综合在线| 日韩视频国产视频| 色婷婷久久久亚洲一区二区三区| 捆绑变态av一区二区三区| 亚洲四区在线观看| 欧美不卡一区二区三区| 色婷婷久久久综合中文字幕| 国内外成人在线| 亚洲一区欧美一区| 国产欧美一区二区精品性| 欧美日韩一区二区三区视频| 国产黄色91视频| 日产精品久久久久久久性色| 亚洲色图在线播放| 久久久国产综合精品女国产盗摄| 欧美片网站yy| 色综合久久综合中文综合网| 狠狠色丁香久久婷婷综| 午夜精品久久久久| 亚洲美女免费视频| 亚洲国产精品成人综合色在线婷婷| 欧美精品123区| 91捆绑美女网站| 成人黄色片在线观看| 国产一区二区三区久久悠悠色av| 日韩在线一二三区| 亚洲欧美成人一区二区三区| 欧美激情一区二区三区四区| 日韩一区国产二区欧美三区| 欧美写真视频网站| 97久久精品人人做人人爽50路| 国产成人欧美日韩在线电影| 精品一区二区三区蜜桃| 日韩高清中文字幕一区| 亚洲国产一区二区三区| 亚洲日韩欧美一区二区在线| 国产精品大尺度| 中文字幕不卡在线| 欧美激情一区在线观看| 国产亚洲欧美在线| 国产亚洲一区二区三区四区| 国产人妖乱国产精品人妖| 亚洲精品一区二区三区香蕉| 精品国产乱码久久| 精品电影一区二区| 久久久久久99久久久精品网站| 精品动漫一区二区三区在线观看| www日韩大片| 国产日产欧美一区| 国产欧美视频在线观看| 国产精品色哟哟| 亚洲人快播电影网| 夜夜嗨av一区二区三区网页| 亚洲成人免费观看| 日韩精品一卡二卡三卡四卡无卡| 秋霞电影网一区二区| 久久99久国产精品黄毛片色诱| 国产一区激情在线| 成人视屏免费看| 日本韩国一区二区三区| 欧美美女一区二区在线观看| 欧美不卡一二三| 亚洲国产精品av| 一区二区三区中文在线| 石原莉奈在线亚洲二区| 狠狠色综合日日| 99久精品国产| 777a∨成人精品桃花网| 精品免费日韩av| 国产精品久久久久久一区二区三区| 美女尤物国产一区| 亚洲综合在线第一页| 日韩精品三区四区| 国产精品自在欧美一区| 91在线国产福利| 91精品国产欧美一区二区| 久久网站最新地址| 亚洲精品视频一区| 奇米色一区二区| av日韩在线网站| 欧美一区二区三区四区在线观看 | 久久久久久久综合| 亚洲人成伊人成综合网小说| 日本不卡一二三| 国产aⅴ精品一区二区三区色成熟| 日本韩国精品一区二区在线观看| 欧美tickling挠脚心丨vk| 亚洲视频一区在线| 麻豆精品在线观看| 色综合久久久久综合| 欧美成人在线直播| 亚洲一区中文在线| 国产传媒久久文化传媒| 欧美日本在线播放| 国产精品第一页第二页第三页| 人人精品人人爱| 欧美亚洲日本一区| 亚洲国产精品二十页| 青娱乐精品在线视频| 在线免费一区三区| 久久精品亚洲国产奇米99 | 国产精品伦一区| 麻豆久久一区二区| 欧美日韩午夜在线视频| 日韩一区在线播放| 国产精品88av| 欧美成人精品福利| 日韩精品福利网| 欧美日韩国产不卡| 一区二区三区精品视频在线| caoporn国产精品| 久久精品欧美日韩精品| 免费日韩伦理电影| 欧美电影在哪看比较好| 亚洲一区精品在线| 色香色香欲天天天影视综合网| 国产精品视频免费看| 国产成人精品亚洲777人妖 | 色综合婷婷久久| 国产精品初高中害羞小美女文| 国产成人午夜精品影院观看视频 | 久久精品一区二区三区四区|