A simple test of tokyo cabinet and tyrant's performance

本文探讨了在使用Tokyo Cabinet作为数据库时遇到的性能问题。当数据文件大小增长到约400MB(约800万条记录)时,客户端请求速率从初始的6k/s显著下降至不足2k/s。此现象在单线程发送消息至服务器时同样出现,表明可能存在与数据文件大小相关的性能限制。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Server:

  Redhat, CentOS release 4.8.

  Xeon(R) CPU E5504  @ 2.00GHz * 4

  8G mem

 

Client

 Winxp sp3, Petium Dual 1.6G, 2G mem

 

Tokyo Cabinet and Tyrant command:

  ttserver -dmn -pid /ttserver/ttserver.pid -log /ttserver/ttserver.log -le /ttserver/database.tct

 

The client's function is just put a map into the database. and it starts 5 threads to send messages to the server. at first the speed of request is about 6k/s. when the file size of database.tct grows up to about 400M(about 8,000,000 records), the speed of request slows down to less than 2k/s. The same thing happens even if there is only one thread that sending message to the server.  I guess this is a problem connecting with data file size.

 

However, this is an unacceptable result if the server can't provide a stable performance. maybe i should adjust some parameter of the server start command or client code..

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值