嗨,最近我在两个不同的 ubuntu 服务器上进行了测试。
Here are the results:
innodb_flush_trx_commit = 1
Staging Server: 10,000 Inserts ----> 81 seconds
innodb_flush_trx_commit = 2
Staging Server: 10,000 Inserts ----> 61 seconds
Dev Server:
innodb_flush_trx_commit = 1
10,000 Inserts ----> 5 seconds
Dev Server:
innodb_flush_trx_commit = 2
10,000 Inserts ----> 2 seconds
I am clear that performance vary with innodb_flush setting.
But why there is a huge diff in performance from the server to server ?
这里要考虑什么...?以下是一些考虑的细节,但没有什么值得怀疑的:
staging server: Intel(R) Xeon(R) CPU X5355 @2.66GHz
processor 0, 1
mysql 5.1.61
innodb_buffer_pool : 8MB
RAM: 4GB
dev server: AMD Opteron(tm) Processor 4130 @2.60ghZ
processor 0, 1
mysql 5.0.67
innodb_buffer_pool : 8MB
RAM: 4GB
请帮助理解导致不同服务器上性能差异巨大的确切原因是什么......?
NOTE: same script used in the same way on noth the servers and not from remote
sesrvers.
提前致谢。问候, UDAY