nullNCACHENCACHEThe fast web cache server base on nginx
Use aio sendfile and epoll modules
The self sort share mem hash index
High performance and large storage
Low cpu cost and low iowait
Record lock instead of process lock
Without http headers cacheOVERVIEWOVERVIEWF5NGINX PROXYNCACHEBACKENDBACKENDBACKENDSTRUCTURESTRUCTURELogic DiagramLogic DiagramThe self sort share mem hash indexThe self sort share mem hash index2(5)3(4)First floor of hash indexList to solve the conflict of the hashHash_malloc1(6)Index[1]+2 = 71(6)3(4)2(7)Top:01677721633554432If arrived at the bottom of the share memory then ncache will return to the 16777216 point and find which can be reusedRecord lockRecord lockMmap auto syncMem indexSync fileWorker processWorker processReadWriteWorker processDo not need to lock
any worker process
or requestcause waitnot cause waitnot cause waitPerformance between SQUID 1 Performance between SQUID 1 First: cpu last: ioBlue is ncachePerformance between SQUID 2Performance between SQUID 2SQUIDNCACHEFutureFutureThe aio_sendfile function
Compress share memory hash index
Memory cache the hottest data
Raw device read and write
Distribute storage system
Aio queue with lio_listio functionThe endThe endGoogle code:
http://code.google.com/p/ncache/
Nginx wiki:
http://wiki.codemongers.com/
Our mail:
pangfan@staff.sina.com.cn
shuiyang@staff.sina.com.cn
本文档为【ncache】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。