tokumx的cpu占用率比原生mongodb偏高的原因

装完最新的tokumx发现硬盘占用率和内存占用率确实比mongodb降了不少,但是CPU占用率即比原生的mongodb要高出很多,开始不解!

最后在http://docs.tokutek.com/tokumx/tokumx-tuning-production.html上有这样的描述:

CPU

CPU usage is attributed to:
Compression work

    When data blocks are written to disk (for checkpoint or when evicted while dirty, in the presence of memory pressure), they are first compressed, and compression is primarily CPU work. Decompression is generally much cheaper than compression, and is hardly noticeable next to the disk I/O done just before it, even on most SSDs.
Message application

    High-volume update workloads tend to stress this subsystem, which updates the data in leaves with the result of applying deferred operations above them in the tree. Small updates to large documents can disproportionately stress this system, in that case it can help to break up a large document into smaller documents and rely on TokuMX's multi-document transactional semantics to read the same data consistently later.
Miscellaneous tasks

    Tree searches, serialization and deserialization, sorting for aggregation, and other things common to most databases.
Building indexes

    Compressing intermediate files during bulk load of indexes (foreground ensureIndex operations as well as loading collections with mongorestore).

tokumx的cpu占用率比原生mogodb偏高的原因应该是用在写入数据时压缩上了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值