numactl对数据库性能的影响
2017-11-16 00:00
316 查看
据说numactl对mongod的性能影响很大,未验证。
按照提示在启动命令前加上 numactl --interleave选项
cassandra中也是使用了这个参数:
MongoDB shell version: 2.4.8 connecting to: test Server has startup warnings: Wed Dec 25 22:10:01.043 [initandlisten] Wed Dec 25 22:10:01.043 [initandlisten] ** WARNING: You are running on a NUMA machine. Wed Dec 25 22:10:01.043 [initandlisten] ** We suggest launching mongod like this to avoid performance problems: Wed Dec 25 22:10:01.043 [initandlisten] ** numactl --interleave=all mongod [other options] Wed Dec 25 22:10:01.043 [initandlisten]
按照提示在启动命令前加上 numactl --interleave选项
numactl --interleave=all /root/mongodb/bin/mongod --dbpath=/data/db/ --fork --logpath=/data/logs/db.log --directoryperdb
cassandra中也是使用了这个参数:
https://github.com/apache/cassandra/blob/fe3cfe3d7df296f022c50c9c0d22f91a0fc0a217/bin/cassandra#L110
# If numactl is available, use it. For Cassandra, the priority is to # avoid disk I/O. Even for the purpose of CPU efficiency, we don't # really have CPU<->data affinity anyway. Also, empirically test that numactl # works before trying to use it (CASSANDRA-3245). NUMACTL_ARGS=${NUMACTL_ARGS:-"--interleave=all"} if which numactl >/dev/null 2>/dev/null && numactl $NUMACTL_ARGS ls / >/dev/null 2>/dev/null then NUMACTL="numactl $NUMACTL_ARGS" else NUMACTL="" fi
相关文章推荐
- 影响数据库性能的六大因素
- 大对象对数据库导出/导入性能的影响
- 数据访问代码如何影响数据库性能
- 硬件环境对数据库系统性能的影响
- 厂商SSD对数据库性能影响测试
- Oracle sql 调优:使用虚拟索引在生产环境测试创建索引对数据库性能的影响
- ORACLE---会对数据库产生性能影响的功能
- 影响数据库性能的因素
- 什么影响了数据库的性能?
- 数据访问代码如何影响数据库性能
- 磁盘 I/O 性能 对数据库的影响
- 简单描述mysql中,索引,主键,唯一索引,联合索引的区别,对数据库的性能有什么影响。从读写两方面分析
- AutoGrowth 对数据库性能的影响
- 探究 Oracle 高水位对数据库性能影响
- 【译】SQL Server误区30日谈-Day9-数据库文件收缩不会影响性能
- 频繁打开数据库连接是否影响性能的疑惑
- 探究 Oracle 高水位对数据库性能影响
- 简单描述mysql中,索引,主键,唯一索引,联合索引的区别,对数据库的性能有什么影响(从读写两个方面)(新浪)