I am trying to optimize mysql 5.1.50 on 2 x Quad-Core Xeon with 16GB ram and Centos 5.5, I also run nginx and PHP-FPM on the same server.
Here's my.cnf file.
mysqlslap --user=root --auto-generate-sql --concurrency=200 --number-of-queries=10000 --number-char-cols=10 --number-int-cols=10
Benchmark
Average number of seconds to run all queries: 38.128 seconds
Minimum number of seconds to run all queries: 38.128 seconds
Maximum number of seconds to run all queries: 38.128 seconds
Number of clients running queries: 200
Average number of queries per client: 50
but mysql uses 400% CPU and only 2% RAM...is there a way to make mysql use more RAM and less CPU?
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
thanks for this info
the benchmark generates random queries so It's probably something on the configuration not the DB structure, I would like to know if my.cnf file is not well configured
That will depend on what usage you have set the configuration for and what use you are putting the server to.
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?