centos7优化mysql5.6配置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7优化mysql5.6配置相关的知识,希望对你有一定的参考价值。

一、环境参数

[[email protected] mysql]# grep ‘physical id‘ /proc/cpuinfo |sort -u
physical id	: 0
physical id	: 1
[[email protected] mysql]# grep ‘core id‘ /proc/cpuinfo |sort -u
core id		: 0
core id		: 1
core id		: 2
core id		: 3
[[email protected] mysql]# grep ‘core id‘ /proc/cpuinfo |sort -u|wc -l
4
[[email protected] mysql]# grep ‘processor‘ /proc/cpuinfo |sort -u|wc -l
16
[[email protected] mysql]# dmidecode -s processor-version
Intel(R) Xeon(R) CPU L5520 @ 2.27GHz            
Intel(R) Xeon(R) CPU L5520 @ 2.27GHz            
[[email protected] mysql]# cat /proc/meminfo 
MemTotal:       16255584 kB
MemFree:        10019880 kB
MemAvailable:   14476360 kB
Buffers:               4 kB
Cached:          3973604 kB
SwapCached:         2436 kB
Active:          3884260 kB
Inactive:         828028 kB
Active(anon):     731664 kB
Inactive(anon):    16936 kB
Active(file):    3152596 kB
Inactive(file):   811092 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       8257532 kB
SwapFree:        8221048 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        739240 kB
Mapped:            24844 kB
Shmem:              9904 kB
Slab:            1120032 kB
SReclaimable:     830676 kB
SUnreclaim:       289356 kB
KernelStack:        6112 kB
PageTables:        12628 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    16385324 kB
Committed_AS:    1443908 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      115596 kB
VmallocChunk:   34351046032 kB
HardwareCorrupted:     0 kB
AnonHugePages:    589824 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      131208 kB
DirectMap2M:    16635904 kB

  

以上是关于centos7优化mysql5.6配置的主要内容,如果未能解决你的问题,请参考以下文章

Centos7安装并配置mysql5.6完美教程

Centos7安装并配置mysql5.6完美教程

Centos7安装并配置mysql5.6完美教程

Centos7 安装配置mysql5.6

CentOS7+mysql5.6配置主从

centos7安装配置mysql5.6