缓存
linux内核控
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mongo加sum方法
http://stackoverflow.com/questions/4621300/how-i-can-sum-all-the-values-of-a-key-in-a-collection-in-mongodb http://www.letrails.cn/archives/add-sum-method-for-mongo-mapper/ [code="java"]db.testm...原创 2011-08-19 15:28:59 · 417 阅读 · 0 评论 -
mongodb的helloworld
1.数据默认保存在mkdir -p /data/db 2.下载curl -O http://downloads.mongodb.org/linux/mongodb-linux-i686-latest.tgz 目前用的是mongodb-linux-i686-2011-07-08, 3./opt/mongodb/bin/mongod run & 或/mongod --fork --dbpath...原创 2011-07-17 13:26:54 · 175 阅读 · 0 评论 -
tt 文件说明
tt有用的c可能就15个 一行行看也看完了 myconf.c------操作epoll,用的kqueue scrext.c------ext参数,对lua的扩展 tcrdb.c-------对于tc的增删改查,复制等操作,算核心吧 tcrmgr.c------tcrmgr管理命令的入口 含main方法 tcrmttest.c---测试类,含main方法 tcrtest.c-----测...原创 2011-07-13 01:18:25 · 499 阅读 · 0 评论 -
转tokyotyrant张宴等性能相关
http://tech.it168.com/a2010/0419/875/000000875687_2.shtml http://www.4pang.com/2010/09/06/%E5%BD%93%E5%BF%83ttservertokyo-tyrant%E5%9C%A8%E7%B3%BB%E7%BB%9F%E5%B4%A9%E6%BA%83%E6%88%96%E6%96%AD%E7%94...原创 2011-07-11 23:00:13 · 246 阅读 · 0 评论 -
tt的lua扩展
tc: http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz tar zxvf tokyocabinet-1.4.47.tar.gz cd tokyocabinet-1.4.47 ./configure make make install lua: http://www.lua.org/ftp/lua-5.1.4...原创 2011-07-07 02:14:20 · 195 阅读 · 0 评论 -
tt安全
转http://hi.baidu.com/ah__fu/blog/item/309462946d463415d31b7058.html [code="java"]今天一位朋友找我,说复制出来的tch文件,在遍历的时候少读出了很多记录。 阅读tchdb.c的源码,遍历的实现实际上是从文件的第一条记录开始,按照每个记录块遍历。因此,这样的遍历实际上是对所有记录的快照,如果服务器当时处于频繁...原创 2011-07-05 17:34:33 · 188 阅读 · 0 评论 -
转TT第三线程
转载 http://lgone.com/html/y2009/342.html 查看tt的fd ls -la /proc/`pidof ttserver`/fd/ 参考 http://groups.google.com/group/tokyocabinet-users/tree/browse_frm/month/2009-10?_done=%2Fgroup%2Ftokyocabinet...原创 2011-07-01 10:33:30 · 92 阅读 · 0 评论 -
tokyotyrant 代码跟踪
如果+++ killed by SIGTRAP +++ http://lists.alioth.debian.org/pipermail/ltrace-devel/2006-April/000035.html strace -T -c -p 3464 ltrace -p 4712 ltrace -f ttserver 有的命令会把tt干死,线上请勿使用...原创 2011-06-30 14:13:23 · 111 阅读 · 0 评论 -
转“Tokyo Tyrant问题二三解”
转发: http://live.shopex.cn/archives/306 [code="java"][root@localhost search]# [root@localhost search]# strace -T -c -p 3464 Process 3464 attached - interrupt to quit Process 3464 detached % time...原创 2011-06-30 10:49:02 · 685 阅读 · 0 评论 -
redis的helloworld
http://code.google.com/p/redis/ http://try.redis-db.com/ 安装 似乎还要弄个tcmalloc http://goog-perftools.sourceforge.net/doc/tcmalloc.html 命令行 http://www.redis.io/commands redmon安装 http://www.cr1...原创 2011-06-27 22:07:25 · 115 阅读 · 0 评论 -
memcache
http://www.blogkid.net/archives/1331.html http://www.cnblogs.com/liunx/archive/2010/05/12/1733885.html原创 2011-06-15 16:02:08 · 90 阅读 · 0 评论 -
ttserver优化及常用
安装: tokyocabinet-1.4.44.tar.gz tokyotyrant-1.1.40.tar.gz ./configure --prefix=/usr/local/tc make &&make install ./configure --prefix=/usr/local/tt --with-tc=/usr/local/tc/ make &&make install ...原创 2011-06-10 15:06:30 · 169 阅读 · 0 评论 -
TT命令
★★★★★服务端 ttserver [code="java"]Options feature the following. -host name : specify the host name or the address of the server. By default, every network address is bound. -port num : specify the p...原创 2011-06-07 13:29:01 · 1042 阅读 · 0 评论 -
TTServer(tokyotyrant)的helloworld
常用命令: [code="java"]apt-get install tokyotyrant apt-get install python-tokyotyrant watch -n 1 "tcrmgr inform -port 11211 -st 10.1.224.171" 备份tcrmgr copy -port 11212 10.1.224.171 /data/backdata/yiyi...原创 2011-05-30 18:44:28 · 209 阅读 · 0 评论 -
干掉 tt 的数据
tcrmgr copy -port 11210 10.11.157.53 /opt/data/data/0830/database.tcb tcrmgr inform -port 11210 -st 10.11.157.53 /opt/ttserver/tt/bin/ttserver -host 10.11.157.53 -port 11219 -thnum 1024 -dmn -p...原创 2011-08-30 17:15:42 · 183 阅读 · 0 评论 -
mongodb的python helloworld
参考http://blog.csdn.net/lolinzhang/article/details/4353699 http://api.mongodb.org/python/ 下载对应版本的客户端 mongodb1.6.1 http://api.mongodb.org/python/1.6/ ------------------ Python-2.7.tar.bz2 mongodb...原创 2011-07-22 23:31:34 · 128 阅读 · 0 评论
分享