memcached-1.2.1-iocp
所属分类:进程与线程
开发工具:Visual C++
文件大小:101KB
下载次数:125
上传日期:2009-10-29 22:38:14
上 传 者:
253782
说明: 超酷的线程池代码,非常值得学习;超酷的线程池代码,非常值得学习;
(Cool thread pool code, is worth learning from)
文件列表:
memcached-1.2.1-iocp (0, 2006-12-05)
memcached-1.2.1-iocp\assoc.c (20553, 2006-12-05)
memcached-1.2.1-iocp\AUTHORS (71, 2006-06-08)
memcached-1.2.1-iocp\autogen.sh (599, 2006-09-10)
memcached-1.2.1-iocp\BUILD (1677, 2006-06-08)
memcached-1.2.1-iocp\ChangeLog (8935, 2006-11-26)
memcached-1.2.1-iocp\compat (0, 2006-12-05)
memcached-1.2.1-iocp\compat\bsd_getopt.c (14627, 2006-03-31)
memcached-1.2.1-iocp\compat\bsd_getopt.h (706, 2006-03-31)
memcached-1.2.1-iocp\compat\Debug (0, 2008-06-05)
memcached-1.2.1-iocp\configure.ac (4283, 2006-12-05)
memcached-1.2.1-iocp\CONTRIBUTORS (1341, 2006-06-08)
memcached-1.2.1-iocp\COPYING (1533, 2006-06-08)
memcached-1.2.1-iocp\daemon.c (2649, 2006-09-10)
memcached-1.2.1-iocp\devtools (0, 2006-12-05)
memcached-1.2.1-iocp\devtools\clean-whitespace.pl (450, 2006-09-10)
memcached-1.2.1-iocp\devtools\svn-tarballs.pl (1512, 2006-09-10)
memcached-1.2.1-iocp\doc (0, 2006-12-05)
memcached-1.2.1-iocp\doc\CONTRIBUTORS.txt (795, 2006-09-10)
memcached-1.2.1-iocp\doc\Makefile.am (46, 2006-06-08)
memcached-1.2.1-iocp\doc\memcached.1 (3323, 2006-09-10)
memcached-1.2.1-iocp\doc\memory_management.txt (5045, 2006-06-08)
memcached-1.2.1-iocp\doc\OSX.txt (846, 2006-06-08)
memcached-1.2.1-iocp\doc\protocol.txt (17420, 2006-09-10)
memcached-1.2.1-iocp\items.c (10224, 2006-12-05)
memcached-1.2.1-iocp\LICENSE (1533, 2006-06-08)
memcached-1.2.1-iocp\Makefile.am (509, 2006-09-10)
memcached-1.2.1-iocp\memcached.h (10343, 2006-12-05)
memcached-1.2.1-iocp\NEWS (41, 2006-06-08)
memcached-1.2.1-iocp\scripts (0, 2006-12-05)
memcached-1.2.1-iocp\scripts\memcached-init (1508, 2006-06-08)
memcached-1.2.1-iocp\scripts\memcached-tool (2932, 2006-06-08)
memcached-1.2.1-iocp\scripts\start-memcached (2422, 2006-06-08)
memcached-1.2.1-iocp\t (0, 2006-12-05)
memcached-1.2.1-iocp\t\00-startup.t (184, 2006-09-10)
memcached-1.2.1-iocp\t\64bit.t (1138, 2006-09-10)
memcached-1.2.1-iocp\t\binary-get.t (211, 2006-09-10)
memcached-1.2.1-iocp\t\bogus-commands.t (271, 2006-09-10)
memcached-1.2.1-iocp\t\daemonize.t (738, 2006-09-10)
... ...
Dependencies:
-- libevent, http://www.monkey.org/~provos/libevent/ (libevent-dev)
If using Linux, you need a kernel with epoll. Sure, libevent will
work with normal select, but it sucks.
epoll isn't in Linux 2.4 yet, but there's a backport at:
http://www.xmailserver.org/linux-patches/nio-improve.html
You want the epoll-lt patch (level-triggered).
Also, be warned that the -k (mlockall) option to memcached might be
dangerous when using a large cache. Just make sure the memcached machines
don't swap. memcached does non-blocking network I/O, but not disk. (it
should never go to disk, or you've lost the whole point of it)
The memcached website is at:
http://www.danga.com/memcached/
近期下载者:
相关文件:
收藏者: