linux redhat mysql 5.7.39 cannot start - mysql
I've installed mysql(The version is:mysql-5.7.39-1.el7.x86_64.rpm-bundle.tar) in Linux redhat, while after the installation, I can't start mysqld.service successfully.The Terminal indicates that:
[jsadmin#ahq-vsvr10-0120 new]$ sudo systemctl start mysqld.service
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
The result for "journalctl -xe" is:
[jsadmin#ahq-vsvr10-0120 /]$ journalctl -xe
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840843Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840848Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840853Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840858Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840863Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840868Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840873Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840878Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840883Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840888Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840893Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840898Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840903Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840908Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840913Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840918Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840922Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840927Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840932Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840937Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840942Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840947Z 0 [Note] Shutting down plugin 'INNODB_CMP'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840952Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840956Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840961Z 0 [Note] Shutting down plugin 'INNODB_TRX'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.840966Z 0 [Note] Shutting down plugin 'InnoDB'
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.841107Z 0 [Note] InnoDB: FTS optimize thread exiting.
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.841684Z 0 [Note] InnoDB: Starting shutdown...
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.942060Z 0 [Note] InnoDB: Dumping buffer pool(s) to /data/mysql/ib_buffer_pool
Nov 16 22:31:36 ahq-vsvr10-0120 mysqld[11028]: 2022-11-16T14:31:36.943909Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 221116 22:31:36
Nov 16 22:31:37 ahq-vsvr10-0120 sshd[11060]: Accepted password for jsadmin from 10.1.19.72 port 58014 ssh2
The result for "systemctl status mysqld.service" is:
[jsadmin#ahq-vsvr10-0120 /]$ systemctl status mysqld.service -l
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: deactivating (stop-sigterm) (Result: exit-code) since Wed 2022-11-16 22:03:46 CST; 30min ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 13625 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=1/FAILURE)
Process: 13607 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Main PID: 110983 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/mysqld.service
└─13628 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
Nov 16 22:34:00 ahq-vsvr10-0120 mysqld[13625]: 2022-11-16T14:34:00.082340Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
Nov 16 22:34:00 ahq-vsvr10-0120 mysqld[13625]: 2022-11-16T14:34:00.082939Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
Nov 16 22:34:00 ahq-vsvr10-0120 mysqld[13625]: 2022-11-16T14:34:00.091421Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
Nov 16 22:34:00 ahq-vsvr10-0120 mysqld[13625]: 2022-11-16T14:34:00.136359Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
Nov 16 22:34:00 ahq-vsvr10-0120 mysqld[13625]: 2022-11-16T14:34:00.136434Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
Nov 16 22:34:00 ahq-vsvr10-0120 mysqld[13625]: 2022-11-16T14:34:00.138057Z 0 [Note] InnoDB: Waiting for purge to start
Nov 16 22:34:00 ahq-vsvr10-0120 mysqld[13625]: 2022-11-16T14:34:00.188733Z 0 [Note] InnoDB: 5.7.39 started; log sequence number 3718895665
Nov 16 22:34:00 ahq-vsvr10-0120 mysqld[13625]: 2022-11-16T14:34:00.189136Z 0 [Note] InnoDB: Loading buffer pool(s) from /data/mysql/ib_buffer_pool
Nov 16 22:34:00 ahq-vsvr10-0120 mysqld[13625]: 2022-11-16T14:34:00.189588Z 0 [Note] Plugin 'FEDERATED' is disabled.
Nov 16 22:34:00 ahq-vsvr10-0120 systemd[1]: mysqld.service: control process exited, code=exited status=1
/ect/my.inf file is:
[jsadmin#ahq-vsvr10-0119 etc]$ cat my.cnf
[mysql]
port = 3306
[mysqld]
sql_mode='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
user = mysql
default-storage-engine = InnoDB
lower_case_table_names = 1
max_allowed_packet = 1000M
key-buffer-size = 32M
read-buffer-size = 1M
read-rnd-buffer-size = 4M
bulk-insert-buffer-size = 8M
myisam-sort-buffer-size = 8M
myisam-max-sort-file-size = 1G
myisam-repair-threads = 1
group_concat_max_len = 4294967295
max-allowed-packet = 32M
max-connect-errors = 1000000
datadir = /data/mysql/
server-id = 1
log-bin=/data/mysql/mysql-bin.log
binlog_format=mixed
#binlog-do-db=virt
#binlog-ignore-db=mysql
#binlog-ignore-db=information_schema
#binlog-ignore-db=performance_schema
innodb_flush_log_at_trx_commit=1
sync_binlog=1
expire_logs_days = 5
auto_increment_increment=2
auto_increment_offset=1
tmp-table-size = 64M
max-heap-table-size = 64M
query-cache-type = 0
query-cache-size = 0
max-connections = 4000
thread-cache-size = 1000
open-files-limit = 65535
table-definition-cache = 512
table-open-cache = 1024
innodb-flush-method = O_DIRECT
innodb-log-files-in-group = 2
innodb-log-file-size = 500M
innodb-flush-log-at-trx-commit = 1
innodb-file-per-table = 1
innodb-buffer-pool-size = 1G
character-set-server = utf8mb4
collation-server = utf8mb4_general_ci
skip-external-locking
skip-host-cache
skip-name-resolve
log-queries-not-using-indexes = 1
slow-query-log = 1
slow-query-log-file = /data/mysql/mysql-slow.log
[jsadmin#ahq-vsvr10-0119 etc]$
so why does the mysqld can't start?
supplement:
memory info:
[jsadmin#ahq-vsvr10-0119 ~]$ cat /proc/meminfo
MemTotal: 32761648 kB
MemFree: 15545800 kB
MemAvailable: 29155252 kB
Buffers: 3144 kB
Cached: 14909264 kB
SwapCached: 0 kB
Active: 11288772 kB
Inactive: 4748276 kB
Active(anon): 2248488 kB
Inactive(anon): 510168 kB
Active(file): 9040284 kB
Inactive(file): 4238108 kB
Unevictable: 128 kB
Mlocked: 132 kB
SwapTotal: 16773116 kB
SwapFree: 16773116 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 1124772 kB
Mapped: 114308 kB
Shmem: 1634012 kB
Slab: 843912 kB
SReclaimable: 733808 kB
SUnreclaim: 110104 kB
KernelStack: 7584 kB
PageTables: 11012 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 33153940 kB
Committed_AS: 4910808 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 236636 kB
VmallocChunk: 34359310332 kB
Percpu: 24064 kB
HardwareCorrupted: 0 kB
AnonHugePages: 507904 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 153408 kB
DirectMap2M: 9283584 kB
DirectMap1G: 26214400 kB
[jsadmin#ahq-vsvr10-0119 ~]$
cpu info:
[jsadmin#ahq-vsvr10-0119 ~]$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2660 v4 # 2.00GHz
stepping : 1
microcode : 0xb000036
cpu MHz : 1997.686
cache size : 35840 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch epb invpcid_single fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt dtherm ida arat pln pts
bogomips : 3995.37
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2660 v4 # 2.00GHz
stepping : 1
microcode : 0xb000036
cpu MHz : 1997.686
cache size : 35840 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 4
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch epb invpcid_single fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt dtherm ida arat pln pts
bogomips : 3995.37
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2660 v4 # 2.00GHz
stepping : 1
microcode : 0xb000036
cpu MHz : 1997.686
cache size : 35840 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch epb invpcid_single fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt dtherm ida arat pln pts
bogomips : 3995.37
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2660 v4 # 2.00GHz
stepping : 1
microcode : 0xb000036
cpu MHz : 1997.686
cache size : 35840 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch epb invpcid_single fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt dtherm ida arat pln pts
bogomips : 3995.37
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:
processor : 4
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2660 v4 # 2.00GHz
stepping : 1
microcode : 0xb000036
cpu MHz : 1997.686
cache size : 35840 KB
physical id : 1
siblings : 4
core id : 0
cpu cores : 4
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch epb invpcid_single fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt dtherm ida arat pln pts
bogomips : 3995.37
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:
processor : 5
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2660 v4 # 2.00GHz
stepping : 1
microcode : 0xb000036
cpu MHz : 1997.686
cache size : 35840 KB
physical id : 1
siblings : 4
core id : 1
cpu cores : 4
apicid : 5
initial apicid : 5
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch epb invpcid_single fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt dtherm ida arat pln pts
bogomips : 3995.37
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:
processor : 6
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2660 v4 # 2.00GHz
stepping : 1
microcode : 0xb000036
cpu MHz : 1997.686
cache size : 35840 KB
physical id : 1
siblings : 4
core id : 2
cpu cores : 4
apicid : 6
initial apicid : 6
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch epb invpcid_single fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt dtherm ida arat pln pts
bogomips : 3995.37
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2660 v4 # 2.00GHz
stepping : 1
microcode : 0xb000036
cpu MHz : 1997.686
cache size : 35840 KB
physical id : 1
siblings : 4
core id : 3
cpu cores : 4
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch epb invpcid_single fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt dtherm ida arat pln pts
bogomips : 3995.37
clflush size : 64
cache_alignment : 64
address sizes : 42 bits physical, 48 bits virtual
power management:
[jsadmin#ahq-vsvr10-0119 ~]$
Related
Galera mysql node joined the cluster unsuccessfully after being abnormally stopped
We have three nodes in Galera cluster with IPs 172.21.100.23, 172.21.100.24 and 172.21.100.25. The cluster had run successfully for a year. Recently I changed my.cnf on 23 to add some bin log configurations. After that, I restarted mysql on 23,the start command 'systemctl start mysqld' suspended, and it can not be stopped using 'systemctl stop mysqld'. So I found out mysql process id and killed it. After that I removed the added configurations in my.cnf on 23, restoring it to the state before, but I still can not start mysql successfully. I had looked into grastate.dat in datadir, it has following content: version 2.1 UUID: 00000000-0000-0000-0000-000000000000 seqno:-1 safe_to_bootstrap:0 I had run 'mysqld --wsrep-recover' on 23, it executed successfully, but it had no effect. In mysqld.log, there are some lines generated after executing 'mysqld --wsrep-recover', Found saved state:00000000-0000-0000-0000-000000000000:-1, safe_to_bootstrap:0 it is the same as in grastate.dat. Following is the my.cnf on 23: [mysqld] datadir=/data/g_mysql_data/data socket=/var/lib/mysql/mysql.sock user=mysql #bind-address=172.21.100.23 default_storage_engine=innodb innodb_autoinc_lock_mode=2 innodb_flush_log_at_trx_commit=0 innodb_buffer_pool_size=2000M wsrep_provider=/usr/lib64/galera-3/libgalera_smm.so wsrep_provider_options="gcache.size=5000M; gcache.page_size=300M" wsrep_cluster_name="galera_cluster1" wsrep_cluster_address="gcomm://172.21.100.23,172.21.100.24,172.21.100.25" wsrep_sst_method=rsync server_id=1 wsrep_node_address="172.21.100.23" wsrep_node_name="gcm1" log-error=/data/g_mysql_log/mysqld.log pid-file=/data/g_mysql_log/mysqld.pid sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION log_output=TABLE max_connections=500 group_concat_max_len=102400 innodb_log_file_size=1024M innodb_strict_mode=0 [mysql_safe] Following is mysqld.log: 2022-01-13T03:42:22.176244Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 254788306500 2022-01-13T03:42:22.176267Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 254788308116 2022-01-13T03:42:22.176616Z 0 [Note] InnoDB: Database was not shutdown normally! 2022-01-13T03:42:22.176622Z 0 [Note] InnoDB: Starting crash recovery. 2022-01-13T03:42:22.190460Z 0 [Note] InnoDB: Starting an apply batch of log records to the database... InnoDB: Progress in percent: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 03:42:22 UTC - mysqld got signal 11 ; 2022-01-13 11:42:22 0x7ff8f1da6700This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. InnoDB: Assertion failure in thread 140707186239232 in file log0recv.cc line 1930 Attempting to collect some information that could help diagnose the problem. As this is a crash and something is definitely wrong, the information collection process might fail. InnoDB: Failing assertion: !page || (ibool)!!page_is_comp(page) == dict_table_is_comp(index->table) key_buffer_size=8388608 InnoDB: We intentionally generate a memory trap. InnoDB: Submit a detailed bug report to http://bugs.mysql.com. InnoDB: If you get repeated assertion failures or crashes, even InnoDB: immediately after the mysqld startup, there may be InnoDB: corruption in the InnoDB tablespace. Please refer to InnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html InnoDB: about forcing recovery. read_buffer_size=131072 max_used_connections=0 max_threads=500 thread_count=0 connection_count=0 Fatal signal 6 while backtracing It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 207164 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x0 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... 2022-01-13T03:42:22.559205Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2022-01-13T03:42:22.560595Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.30) starting as process 229812 ... 2022-01-13T03:42:22.563894Z 0 [Note] WSREP: Read nil XID from storage engines, skipping position init 2022-01-13T03:42:22.563910Z 0 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib64/galera-3/libgalera_smm.so' 2022-01-13T03:42:22.564682Z 0 [Note] WSREP: wsrep_load(): Galera 3.30(r4e1a604) by Codership Oy <info#codership.com> loaded successfully. 2022-01-13T03:42:22.564704Z 0 [Note] WSREP: CRC-32C: using hardware acceleration. 2022-01-13T03:42:22.565018Z 0 [Note] WSREP: Found saved state: 00000000-0000-0000-0000-000000000000:-1, safe_to_bootstrap: 0 2022-01-13T03:42:22.566424Z 0 [Note] WSREP: Passing config to GCS: base_dir = /data/g_mysql_data/data/; base_host = 172.21.100.23; base_port = 4567; cert.log_conflicts = no; cert.optimistic_pa = yes; debug = no; evs.auto_evict = 0; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.join_retrans_period = PT1S; evs.max_install_timeouts = 3; evs.send_window = 4; evs.stats_report_period = PT1M; evs.suspect_timeout = PT5S; evs.user_send_window = 2; evs.view_forget_timeout = PT24H; gcache.dir = /data/g_mysql_data/data/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = /data/g_mysql_data/data//galera.cache; gcache.page_size = 300M; gcache.recover = no; gcache.size = 5000M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1.0; gcs.fc_limit = 16; gcs.fc_master_slave = no; gcs.max_packet_size = 64500; gcs.max_throttle = 0.25; gcs.recv_q_hard_limit = 9223372036854775807; gcs.recv_q_soft_limit = 0.25; gcs.sync_donor = no; gmcast.segment = 0; gmcast.version = 0 2022-01-13T03:42:22.589530Z 0 [Note] WSREP: GCache history reset: 60a4edc4-d099-11ea-ba22-c3903525a426:0 -> 00000000-0000-0000-0000-000000000000:-1 2022-01-13T03:42:22.589730Z 0 [Note] WSREP: Assign initial position for certification: -1, protocol version: -1 2022-01-13T03:42:22.589767Z 0 [Note] WSREP: wsrep_sst_grab() 2022-01-13T03:42:22.589776Z 0 [Note] WSREP: Start replication 2022-01-13T03:42:22.589800Z 0 [Note] WSREP: Setting initial position to 00000000-0000-0000-0000-000000000000:-1 2022-01-13T03:42:22.589962Z 0 [Note] WSREP: protonet asio version 0 2022-01-13T03:42:22.590183Z 0 [Note] WSREP: Using CRC-32C for message checksums. 2022-01-13T03:42:22.590241Z 0 [Note] WSREP: backend: asio 2022-01-13T03:42:22.590325Z 0 [Note] WSREP: gcomm thread scheduling priority set to other:0 2022-01-13T03:42:22.590497Z 0 [Warning] WSREP: access file(/data/g_mysql_data/data//gvwstate.dat) failed(No such file or directory) 2022-01-13T03:42:22.590510Z 0 [Note] WSREP: restore pc from disk failed 2022-01-13T03:42:22.590940Z 0 [Note] WSREP: GMCast version 0 2022-01-13T03:42:22.591482Z 0 [Note] WSREP: (d101bfe8, 'tcp://0.0.0.0:4567') listening at tcp://0.0.0.0:4567 2022-01-13T03:42:22.591499Z 0 [Note] WSREP: (d101bfe8, 'tcp://0.0.0.0:4567') multicast: , ttl: 1 2022-01-13T03:42:22.592211Z 0 [Note] WSREP: EVS version 0 2022-01-13T03:42:22.592444Z 0 [Note] WSREP: gcomm: connecting to group 'galera_cluster1', peer '172.21.100.23:,172.21.100.24:,172.21.100.25:' 2022-01-13T03:42:22.593730Z 0 [Note] WSREP: (d101bfe8, 'tcp://0.0.0.0:4567') Found matching local endpoint for a connection, blacklisting address tcp://172.21.100.23:4567 2022-01-13T03:42:22.594410Z 0 [Note] WSREP: (d101bfe8, 'tcp://0.0.0.0:4567') connection established to 1c9e42c9 tcp://172.21.100.24:4567 2022-01-13T03:42:22.594581Z 0 [Note] WSREP: (d101bfe8, 'tcp://0.0.0.0:4567') turning message relay requesting on, nonlive peers: 2022-01-13T03:42:22.594628Z 0 [Note] WSREP: (d101bfe8, 'tcp://0.0.0.0:4567') connection established to 2bc6a038 tcp://172.21.100.25:4567 2022-01-13T03:42:23.095574Z 0 [Note] WSREP: declaring 1c9e42c9 at tcp://172.21.100.24:4567 stable 2022-01-13T03:42:23.095627Z 0 [Note] WSREP: declaring 2bc6a038 at tcp://172.21.100.25:4567 stable 2022-01-13T03:42:23.096046Z 0 [Note] WSREP: Node 1c9e42c9 state prim 2022-01-13T03:42:23.096446Z 0 [Note] WSREP: view(view_id(PRIM,1c9e42c9,105) memb { 1c9e42c9,0 2bc6a038,0 d101bfe8,0 } joined { } left { } partitioned { }) 2022-01-13T03:42:23.096484Z 0 [Note] WSREP: save pc into disk 2022-01-13T03:42:23.595866Z 0 [Note] WSREP: gcomm: connected 2022-01-13T03:42:23.595922Z 0 [Note] WSREP: Changing maximum packet size to 64500, resulting msg size: 32636 2022-01-13T03:42:23.595999Z 0 [Note] WSREP: Shifting CLOSED -> OPEN (TO: 0) 2022-01-13T03:42:23.596010Z 0 [Note] WSREP: Opened channel 'galera_cluster1' 2022-01-13T03:42:23.596154Z 0 [Note] WSREP: New COMPONENT: primary = yes, bootstrap = no, my_idx = 2, memb_num = 3 2022-01-13T03:42:23.596228Z 0 [Note] WSREP: STATE EXCHANGE: Waiting for state UUID. 2022-01-13T03:42:23.596239Z 0 [Note] WSREP: Waiting for SST to complete. 2022-01-13T03:42:23.596294Z 0 [Note] WSREP: STATE EXCHANGE: sent state msg: d1514dd1-7422-11ec-a8c5-9ad193910923 2022-01-13T03:42:23.596312Z 0 [Note] WSREP: STATE EXCHANGE: got state msg: d1514dd1-7422-11ec-a8c5-9ad193910923 from 0 (gcm2) 2022-01-13T03:42:23.596338Z 0 [Note] WSREP: STATE EXCHANGE: got state msg: d1514dd1-7422-11ec-a8c5-9ad193910923 from 1 (gcm3) 2022-01-13T03:42:23.596883Z 0 [Note] WSREP: STATE EXCHANGE: got state msg: d1514dd1-7422-11ec-a8c5-9ad193910923 from 2 (gcm1) 2022-01-13T03:42:23.596907Z 0 [Note] WSREP: Quorum results: version = 6, component = PRIMARY, conf_id = 104, members = 2/3 (joined/total), act_id = 257246765, last_appl. = -1, protocols = 0/9/3 (gcs/repl/appl), group UUID = 60a4edc4-d099-11ea-ba22-c3903525a426 2022-01-13T03:42:23.596922Z 0 [Note] WSREP: Flow-control interval: [28, 28] 2022-01-13T03:42:23.596933Z 0 [Note] WSREP: Shifting OPEN -> PRIMARY (TO: 257246765) 2022-01-13T03:42:23.597050Z 2 [Note] WSREP: State transfer required: Group state: 60a4edc4-d099-11ea-ba22-c3903525a426:257246765 Local state: 00000000-0000-0000-0000-000000000000:-1 2022-01-13T03:42:23.597103Z 2 [Note] WSREP: REPL Protocols: 9 (4, 2) 2022-01-13T03:42:23.597130Z 2 [Note] WSREP: New cluster view: global state: 60a4edc4-d099-11ea-ba22-c3903525a426:257246765, view# 105: Primary, number of nodes: 3, my index: 2, protocol version 3 2022-01-13T03:42:23.597140Z 2 [Warning] WSREP: Gap in state sequence. Need state transfer. 2022-01-13T03:42:23.597287Z 0 [Note] WSREP: Running: 'wsrep_sst_rsync --role 'joiner' --address '172.21.100.23' --datadir '/data/g_mysql_data/data/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' --parent '229812' '' ' 2022-01-13T03:42:23.740222Z 2 [Note] WSREP: Prepared SST request: rsync|172.21.100.23:4444/rsync_sst 2022-01-13T03:42:23.740273Z 2 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification. 2022-01-13T03:42:23.740313Z 2 [Note] WSREP: Assign initial position for certification: 257246765, protocol version: 4 2022-01-13T03:42:23.740360Z 0 [Note] WSREP: Service thread queue flushed. 2022-01-13T03:42:23.740490Z 2 [Warning] WSREP: Failed to prepare for incremental state transfer: Local state UUID (00000000-0000-0000-0000-000000000000) does not match group state UUID (60a4edc4-d099-11ea-ba22-c3903525a426): 1 (Operation not permitted) at galera/src/replicator_str.cpp:prepare_for_IST():463. IST will be unavailable. 2022-01-13T03:42:23.741249Z 0 [Note] WSREP: Member 2.0 (gcm1) requested state transfer from '*any*'. Selected 0.0 (gcm2)(SYNCED) as donor. 2022-01-13T03:42:23.741287Z 0 [Note] WSREP: Shifting PRIMARY -> JOINER (TO: 257246766) 2022-01-13T03:42:23.741323Z 2 [Note] WSREP: Requesting state transfer: success, donor: 0 2022-01-13T03:42:23.741352Z 2 [Note] WSREP: GCache history reset: 00000000-0000-0000-0000-000000000000:0 -> 60a4edc4-d099-11ea-ba22-c3903525a426:257246765 2022-01-13T03:42:25.598167Z 0 [Note] WSREP: (d101bfe8, 'tcp://0.0.0.0:4567') turning message relay requesting off Any help will be greatly appreciated.
MySQL shutdown issue on Magento
We have a magento website Our website some times it showing below error like There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record number: 855613014442 Based on our logs, it is showing that Mysql is going down as shown below 2019-06-24T04:44:49.542168Z 0 [Note] /usr/sbin/mysqld: ready for connections. Version: '5.7.26' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) 2019-06-24T04:44:50.594943Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190624 4:44:50 2019-06-24T04:45:11.103402Z 0 [Note] Giving 0 client threads a chance to die gracefully 2019-06-24T04:45:11.103429Z 0 [Note] Shutting down slave threads 2019-06-24T04:45:11.103438Z 0 [Note] Forcefully disconnecting 0 remaining clients 2019-06-24T04:45:11.103444Z 0 [Note] Event Scheduler: Purging the queue. 0 events 2019-06-24T04:45:11.103484Z 0 [Note] Binlog end We have increased innodb_buffer_pool_size but still i am facing same issue. I have executed below commands in my server..check it these outputs 1)free -m Output: total used free shared buff/cache available Mem: 7819 1430 4688 81 1701 6009 Swap: 0 0 0 2)dmesg | tail -30 Output: [ 6.222373] [TTM] Initializing pool allocator [ 6.241079] [TTM] Initializing DMA pool allocator [ 6.255768] [drm] fb mappable at 0xF0000000 [ 6.259225] [drm] vram aper at 0xF0000000 [ 6.262574] [drm] size 33554432 [ 6.265475] [drm] fb depth is 24 [ 6.268473] [drm] pitch is 3072 [ 6.289079] fbcon: cirrusdrmfb (fb0) is primary device [ 6.346169] Console: switching to colour frame buffer device 128x48 [ 6.347151] loop: module loaded [ 6.357709] cirrus 0000:00:02.0: fb0: cirrusdrmfb frame buffer device [ 6.364646] [drm] Initialized cirrus 1.0.0 20110418 for 0000:00:02.0 on minor 0 [ 6.722341] input: PC Speaker as /devices/platform/pcspkr/input/input4 [ 6.788110] EXT4-fs (loop0): mounting ext3 file system using the ext4 subsystem [ 6.802845] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null) [ 6.841332] cryptd: max_cpu_qlen set to 1000 [ 6.871200] AVX2 version of gcm_enc/dec engaged. [ 6.873349] AES CTR mode by8 optimization enabled [ 6.936609] EXT4-fs (loop0): mounting ext3 file system using the ext4 subsystem [ 6.949717] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null) [ 6.964446] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni) [ 6.984659] alg: No test for __generic-gcm-aes-aesni (__driver-generic-gcm-aes-aesni) [ 7.084148] intel_rapl: Found RAPL domain package [ 7.086591] intel_rapl: Found RAPL domain dram [ 7.088788] intel_rapl: DRAM domain energy unit 15300pj [ 7.102115] EDAC sbridge: Seeking for: PCI ID 8086:6fa0 [ 7.102119] EDAC sbridge: Ver: 1.1.2 [ 7.175339] ppdev: user-space parallel port driver [ 10.728980] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 10.772307] nf_conntrack version 0.5.0 (65536 buckets, 262144 max) 3)ps auxw | grep mysql Output: mysql 5056 2.9 10.8 7009056 871240 ? Sl 12:29 0:12 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid root 5538 0.0 0.0 112708 976 pts/0 S+ 12:36 0:00 grep --color=auto mysql Can anyone has idea how to resolve this issue. Thanks
Percona native AIO fails to start
In my my.cnf, I currently have the following innodb-write-io-threads = 32 innodb-read-io-threads = 32 When I try to increase that to 48, native AIO fails to start up. 2016-08-22T05:02:35.933600Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.13-6-log) starting as process 23187 ... 2016-08-22T05:02:35.941699Z 0 [Note] InnoDB: PUNCH HOLE support available 2016-08-22T05:02:35.941736Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2016-08-22T05:02:35.941748Z 0 [Note] InnoDB: Uses event mutexes 2016-08-22T05:02:35.941755Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 2016-08-22T05:02:35.941762Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.7 2016-08-22T05:02:35.941769Z 0 [Note] InnoDB: Using Linux native AIO 2016-08-22T05:02:35.942435Z 0 [Note] InnoDB: Number of pools: 1 2016-08-22T05:02:35.942597Z 0 [Note] InnoDB: Using CPU crc32 instructions 2016-08-22T05:02:35.951309Z 0 [Warning] InnoDB: io_setup() failed with EAGAIN. Will make 5 attempts before giving up. 2016-08-22T05:02:35.951329Z 0 [Warning] InnoDB: io_setup() attempt 1. 2016-08-22T05:02:36.451533Z 0 [Warning] InnoDB: io_setup() attempt 2. 2016-08-22T05:02:36.951724Z 0 [Warning] InnoDB: io_setup() attempt 3. 2016-08-22T05:02:37.451960Z 0 [Warning] InnoDB: io_setup() attempt 4. 2016-08-22T05:02:37.952196Z 0 [Warning] InnoDB: io_setup() attempt 5. 2016-08-22T05:02:38.452394Z 0 [ERROR] InnoDB: io_setup() failed with EAGAIN after 5 attempts. 2016-08-22T05:02:38.452437Z 0 [Note] InnoDB: You can disable Linux Native AIO by setting innodb_use_native_aio = 0 in my.cnf 2016-08-22T05:02:38.452776Z 0 [ERROR] InnoDB: Cannot initialize AIO sub-system 2016-08-22T05:02:38.452789Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error 2016-08-22T05:02:38.452799Z 0 [ERROR] Plugin 'InnoDB' init function returned error. 2016-08-22T05:02:38.452805Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2016-08-22T05:02:38.452812Z 0 [ERROR] Failed to initialize plugins. 2016-08-22T05:02:38.452817Z 0 [ERROR] Aborting 2016-08-22T05:02:38.452844Z 0 [Note] Binlog end 2016-08-22T05:02:38.452891Z 0 [Note] Shutting down plugin 'CSV' 2016-08-22T05:02:38.452899Z 0 [Note] Shutting down plugin 'MyISAM' 2016-08-22T05:02:38.454072Z 0 [Note] /usr/sbin/mysqld: Shutdown complete Here's my full my.cnf: [mysql] # CLIENT # port = 3306 socket = /var/lib/mysql/mysql.sock [mysqld] # GENERAL # user = mysql default-storage-engine = InnoDB socket = /var/lib/mysql/mysql.sock pid-file = /var/lib/mysql/mysql.pid bind-address = 0.0.0.0 event_scheduler = on # MyISAM # key-buffer-size = 32M #myisam-recover = FORCE,BACKUP # SAFETY # max-allowed-packet = 16M max-connect-errors = 1000000 skip-name-resolve sql-mode = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY sysdate-is-now = 1 innodb = FORCE # DATA STORAGE # datadir = /var/lib/mysql/ # BINARY LOGGING # log-bin = /var/lib/mysql/mysql-bin expire-logs-days = 14 sync-binlog = 0 server-id = 1 # CACHES AND LIMITS # tmp-table-size = 32M max-heap-table-size = 32M query-cache-type = 0 query-cache-size = 0 max-connections = 500 thread-cache-size = 50 open-files-limit = 65535 table-definition-cache = 1024 table-open-cache = 2048 # INNODB # innodb-flush-method = O_DIRECT innodb-log-files-in-group = 2 innodb-log-file-size = 512M innodb-flush-log-at-trx-commit = 2 innodb-file-per-table = 1 innodb-buffer-pool-size = 160G innodb-doublewrite = 0 innodb-adaptive-flushing = 1 innodb-thread-concurrency = 0 innodb-write-io-threads = 32 innodb-read-io-threads = 32 innodb-buffer-pool-instances = 64 innodb-flush-neighbors = 0 # LOGGING # log-error = /var/lib/mysql/mysql-error.log log-queries-not-using-indexes = 1 slow-query-log = 1 slow-query-log-file = /var/lib/mysql/mysql-slow.log What could be causing this? Thanks
Intel Turbo boost for KVM Guest
Please excuse me if this is a stupid question, however, I'm curious why I'm not seeing any clock speed differences when using fedora as a guest VM via KVM/QEMU. Perhaps this is a rather dumb way of concluding such things, but when I do cat /proc/cpuinfo | grep MHz it's always the same and it's the base clock speed advertised by my xeons. Is there some option I have to pass virsh to enable turbo boost? This might be helpful: [jflowers#console ~]$ sudo lshw -class processor*-cpu description: CPU product: Intel(R) Xeon(R) CPU E5-2630 v4 # 2.20GHz vendor: Intel Corp. physical id: 400 bus info: cpu#0 version: pc-q35-2.3 slot: CPU 0 size: 2GHz capacity: 2GHz width: 64 bits capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp x86-64 constant_tsc arch_perfmon rep_good nopl eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt configuration: cores=30 enabledcores=30 threads=1*-processor UNCLAIMED description: SCSI Processor product: Console vendor: Marvell physical id: 0.0.0 bus info: scsi#7:0.0.0 version: 1.01 capabilities: removable configuration: ansiversion=5 And a different utility: [jflowers#console ~]$ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 30 On-line CPU(s) list: 0-29 Thread(s) per core: 1 Core(s) per socket: 30 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 79 Model name: Intel(R) Xeon(R) CPU E5-2630 v4 # 2.20GHz Stepping: 1 CPU MHz: 2195.304 BogoMIPS: 4390.60 L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 25600K NUMA node0 CPU(s): 0-29 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt
The speed shown in /proc/cpuinfo inside a guest is meaningless/irrelevant. Regardless of what it says there, the CPUs will run at whatever speed the host CPUs support. IOW, if your guest is doing something CPU intensive, you can rest assured it'll max out the host CPU causing the host kernel to ramp up host CPU speed to maximum possible when needed.
mysql innoDB Performance
I have some trouble with my mySQL innoDB Engine.. SQL Statements like "select * from posts" takes a long time. This is my MySQL Config: [mysql] # CLIENT # port = 3306 socket = /var/lib/mysqld/mysqld.sock [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] # GENERAL # user = mysql #default_storage_engine = InnoDB pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr tmpdir = /tmp lc-messages-dir = /usr/share/mysql bind-address = 127.0.0.1 # MyISAM # key_buffer_size = 32M myisam_recover = FORCE,BACKUP # SAFETY # max_allowed_packet = 16M max_connect_errors = 1000000 # DATA STORAGE # datadir = /var/lib/mysql/ # BINARY LOGGING # log_bin = /var/lib/mysql/mysql-bin expire_logs_days = 14 sync_binlog = 1 # CACHES AND LIMITS # tmp_table_size = 64M max_heap_table_size = 64M query_cache_type = 0 query_cache_size = 0 max_connections = 500 thread_cache_size = 50 open_files_limit = 65535 table_definition_cache = 1024 table_open_cache = 2048 read_rnd_buffer_size = 1M query_cache_type = 1 # INNODB # innodb_flush_method = O_DIRECT innodb_log_files_in_group = 2 innodb_log_file_size = 256M innodb_flush_log_at_trx_commit = 1 innodb_file_per_table = 1 innodb_buffer_pool_size = 4G # LOGGING # log_error = /var/lib/mysql/mysql-error.log log_queries_not_using_indexes = 1 slow_query_log = 1 slow_query_log_file = /var/lib/mysql/mysql-slow.log While a sql statement is running i got an load avg ~2.0 the assigned cores are mostly 0.0 % usage.. iostat tell me: avg-cpu: %user %nice %system %iowait %steal %idle 0.39 0.00 0.26 5.15 0.04 94.16 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn xvdap2 152.80 139.39 5550.51 567593 22601276 xvdap1 0.04 0.21 0.00 836 0 Any ideas for pushing up the performance? Hardware (XEN guest) processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 30 model name : Intel(R) Xeon(R) CPU X3440 # 2.53GHz stepping : 5 cpu MHz : 2527.052 cache size : 8192 KB fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good aperfmperf pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm bogomips : 5054.10 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 30 model name : Intel(R) Xeon(R) CPU X3440 # 2.53GHz stepping : 5 cpu MHz : 2527.052 cache size : 8192 KB fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good aperfmperf pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm bogomips : 5054.10 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 30 model name : Intel(R) Xeon(R) CPU X3440 # 2.53GHz stepping : 5 cpu MHz : 2527.052 cache size : 8192 KB fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good aperfmperf pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm bogomips : 5054.10 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 30 model name : Intel(R) Xeon(R) CPU X3440 # 2.53GHz stepping : 5 cpu MHz : 2527.052 cache size : 8192 KB fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good aperfmperf pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm bogomips : 5054.10 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 4 vendor_id : GenuineIntel cpu family : 6 model : 30 model name : Intel(R) Xeon(R) CPU X3440 # 2.53GHz stepping : 5 cpu MHz : 2527.052 cache size : 8192 KB fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good aperfmperf pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm bogomips : 5054.10 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 5 vendor_id : GenuineIntel cpu family : 6 model : 30 model name : Intel(R) Xeon(R) CPU X3440 # 2.53GHz stepping : 5 cpu MHz : 2527.052 cache size : 8192 KB fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good aperfmperf pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm bogomips : 5054.10 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 6 vendor_id : GenuineIntel cpu family : 6 model : 30 model name : Intel(R) Xeon(R) CPU X3440 # 2.53GHz stepping : 5 cpu MHz : 2527.052 cache size : 8192 KB fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good aperfmperf pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm bogomips : 5054.10 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: Meminfo MemTotal: 6146908 kB MemFree: 2231936 kB Buffers: 45436 kB Cached: 2542340 kB SwapCached: 0 kB Active: 2629024 kB Inactive: 915652 kB Active(anon): 956724 kB Inactive(anon): 46272 kB Active(file): 1672300 kB Inactive(file): 869380 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 2097144 kB SwapFree: 2097144 kB Dirty: 972812 kB Writeback: 1412 kB AnonPages: 956912 kB Mapped: 18048 kB Shmem: 46104 kB Slab: 144676 kB SReclaimable: 137764 kB SUnreclaim: 6912 kB KernelStack: 1136 kB PageTables: 7524 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 5170596 kB Committed_AS: 4964188 kB VmallocTotal: 34359738367 kB VmallocUsed: 26032 kB VmallocChunk: 34359711292 kB HardwareCorrupted: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 6156288 kB DirectMap2M: 0 kB An example schema: CREATE TABLE IF NOT EXISTS Produkte` ( id int(11) NOT NULL AUTO_INCREMENT, uniqueID varchar(50) CHARACTER SET latin1 NOT NULL, Link varchar(255) CHARACTER SET latin1 NOT NULL, Title varchar(1000) CHARACTER SET latin1 NOT NULL, foundTime varchar(100) CHARACTER SET latin1 NOT NULL, Desc text CHARACTER SET latin1 NOT NULL, Rank int(11) NOT NULL DEFAULT '10000000', PRIMARY KEY (id), UNIQUE KEY uniqueID (uniqueID) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=9407809 ;