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

被折叠的 条评论
为什么被折叠?



