转载: mysql在linux中的通用…
来源:互联网 发布:上海家博会数据 编辑:程序博客网 时间:2024/05/20 10:52
Filesystem
- ext4 (or xfs), mount with noatime
- Scheduler – use deadline or noop
(For more info see Linux Schedulers in TPCC like benchmark)
Memory
- Swappiness and NUMA:
- Set numa interleave all
If using Percona Server we can place it into mysqld_safescript, as Percona Server supports NUMA control.
Jeremy Cole blog contains excellent overview
(and do not forget about innodb_flush_method=O_DIRECT)
CPU
Make sure there is no powersavemode enabled:
Check/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
and make sure it isnot
Check /proc/cpuinfo and compare cpuMHz number to what is listed under the “model name”
Disable the “ondemand” if it isrunning
Example: “ondemand” is running on all the servers
and we have this:
In this case we will need to disable “ondemand”.
Memory allocator = jemalloc (http://www.canonware.com/jemalloc/). It is used inPercona installation
setting the swappiness to zero means that if something fails themysqld might crash rather than going into swap, so its probablysafer to keep a bit of swapiness, not as high as the default, butsome, just in case…
also on demand governor might help you to keep the box on lowload, especially with small databases, but if you have a somewhatreasonable size database, it might make the performance on thedatabase better if you keep it running without ondemand.
for the grub parameter, deadline is really good, but readinginto kernel options, ive found the following kernel bootline moreeffective:
elevator=noop intel_iommu=on transparent_hugepage=alwaysacpi_irq_nobalance
irq_nobalance here is the parameter that gets things reallyrolling on an ubuntu server, it reduces the total load of thesystem by around 60%, as irq polling does not happen every second,i like to manage the irqs from bios anyways.
- 转载: mysql在linux中的通用…
- 【转载】 linux-mysql-django…
- linux 中的软件安装位置(转载)
- 【转载】linux C …
- 【转载】 linux-python …
- 【转载】 linux Python&…
- 【原创】 linux-mysql …
- 【原创】 linux-mysql E…
- 【原创】 linux-mysql p…
- 在Linux 环境下安装 Mysql(一)
- 在Linux 环境下安装 Mysql(二)
- 在Linux 环境下安装 Mysql(三)
- linux top (转载)
- (转载)Linux Makefile(auto…
- MySQL通用二进制文件在Unix / Linux上安装MySQL
- 数据包在Linux中的流程(转载)
- 数据包在Linux中的流程(转载)
- mysql-在linux中的使用..
- TCP Nagle's 算法导致的性能问题
- MySQL 5.6 GTID复制 乱序复制
- MySQL xa 事务局限性
- MySQL最大连接数限制分析
- OpenLDAP,Windows,MySQL之初搭建
- 转载: mysql在linux中的通用…
- RandomQueryGenerator 介绍
- expect 使用笔记
- Infinidb 使用笔记1
- glusterfs 快速安装配置
- 网络丢包问题处理
- Linux glibc 的 ma…
- 配置 KVM 的桥接
- galera集群初探