n******d 发帖数: 18 | 1 我有一个很强的服务器,Dual-Quad-Core CPU, 32GB内存。里面run的是Vista 64Bit.
但是对一个很大的数据库(4GB)运行MySQL的查询时,还是十分十分的慢,我也加过
Index等,还是没有效果,一查,发现CPU基本没有用 Mysqld进程只用了1%不到的CPU,
内存也没有好好用,一共只用了几百MB。
怎么设置一下能让系统资源多分配给MySQL啊? |
w*r 发帖数: 2421 | 2 check out here. usually it is your buffer size is not set for large table
full scan. Also, it sounds to me that the IO wait is very long on your DB. I
am not quite sure where to look. Usually, I will search some information
about reading block size / table block size and read cache policy.
http://www.mysqlperformanceblog.com/2006/09/29/what-to-tune-in-mysql-server-after-installation/ |
d*h 发帖数: 2347 | 3 要么是index没设置对,要么就是MySQL的bug, 该配置没用. 几乎可以肯定是index的问
题.
【在 n******d 的大作中提到】 : 我有一个很强的服务器,Dual-Quad-Core CPU, 32GB内存。里面run的是Vista 64Bit. : 但是对一个很大的数据库(4GB)运行MySQL的查询时,还是十分十分的慢,我也加过 : Index等,还是没有效果,一查,发现CPU基本没有用 Mysqld进程只用了1%不到的CPU, : 内存也没有好好用,一共只用了几百MB。 : 怎么设置一下能让系统资源多分配给MySQL啊?
|
n******d 发帖数: 18 | 4 Thanks very much. This link is really helpful! |