kmemcache

kmemcache is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

kmemcache is derived from memcached-v1.4.15, exactly it is a linux kernel memcached, and aims at quicker response and higher performance.

Current Limitations

kmemcache has now implemented all most major features of memcached, including the complete binary and text protocols, based on tcp, udp and unix domain communication protocols, slab allocation dynamically rebalanced, hash table expansion and so on.

The programming interface remains consistent with memcached. Clients using memcached can easily connected to kmemcache, without modification. You could also easily add the kmemcache server to your cluster of memcached servers.

The following are some features that have not been implemented yet:

  • SASL

Environment

x86_32/x86_64 kernel: [2.6.32, 3.2] other versions have not been tested

Building, Running & Testing

  1. Clone kmemcache from github

    [jgli@linux]$ git clone https://github.com/jgli/kmemcache.git

  2. Compiling kmemcache

    [jgli@linux]$ cd kmemcache [jgli@linux]$ make

  3. Running kmemcache

3.1 Change user to root

[jgli@linux]$ su root
Password:

3.2 Insert kernel module and start server

[root@linux]# insmod kmod/kmemcache.ko
[root@linux]# user/umemcached -h
[root@linux]# user/umemcached -p 11213
  1. Stopping kmemcache

    [root@linux]# rmmod kmemcache

  2. Testing kmemcache

5.1 Case 1, using libmemcached

[root@linux]# apt-get install libmemcached
[root@linux]# memcapable -h localhost -p 11213
[root@linux]# memslap --servers=localhost:11213

5.2 Case 2, using testapp

[root@linux]# insmod kmod/kmctest.ko
[root@linux]# ./test/testapp

5.3 Case 3, using perl scripts

[root@linux]# ./t/auto.pl

5.4 More cases refer to memcached

Contributing

Want to contribute? You are so welcome! Any reporting bugs, feedback, and pulling requests are encouraged!

Website

Official memcached: http://www.memcached.org/ Test tools: http://libmemcached.org/libMemcached.html Something about kmemcache from my blog: http://blog.sina.com.cn/u/3289939872



kmemcache

kmemcache是​​一种高性能,分布式的内存对象缓存系统,通用性, 但是旨在通过减轻数据库负载来加速动态Web应用程序。

kmemcache是​​从memcached-v1.4.15导出的,它是一个linux内核memcached, 并旨在更快的响应和更高的性能。

当前限制

现在,kmemcache已经实现了memcached的所有主要功能,包括完整的二进制文件 和文本协议,基于tcp,udp和unix域通信协议,板分配 动态重新平衡,散列表扩展等。

编程接口与memcached保持一致。使用memcached的客户端很容易 连接到kmemcache,无需修改。您也可以轻松地添加kmemcache服务器 您的memcached服务器集群。

以下是尚未实现的一些功能:

  • SASL

环境

x86_32 / x86_64 内核:[2.6.32,3.2] 其他版本尚未测试

建筑物,跑步与测试

  1. Clone kmemcache from github

    [jgli@linux]$ git clone https://github.com/jgli/kmemcache.git

  2. Compiling kmemcache

    [jgli@linux]$ cd kmemcache [jgli@linux]$ make

  3. Running kmemcache

3.1将用户更改为root

[jgli@linux]$ su root
Password:
插入内核模块和启动服务器

[root@linux]# insmod kmod/kmemcache.ko
[root@linux]# user/umemcached -h
[root@linux]# user/umemcached -p 11213
  1. Stopping kmemcache

    [root@linux]# rmmod kmemcache

  2. Testing kmemcache

5.1案例1,使用libmemcached

[root@linux]# apt-get install libmemcached
[root@linux]# memcapable -h localhost -p 11213
[root@linux]# memslap –servers=localhost:11213

5.2案例2,使用testapp

[root@linux]# insmod kmod/kmctest.ko
[root@linux]# ./test/testapp

5.3案例3,使用perl脚本

[root@linux]# ./t/auto.pl

5.4更多案例参考memcached

贡献

想要贡献?你很欢迎!鼓励任何报告错误,反馈和提出请求!

网站

官方memcached: http://www.memcached.org/ 测试工具: http://libmemcached.org/libMemcached.html 关于kmemcache从我的博客: http://blog.sina.com.cn/u/3289939872




相关问题推荐