Home » Performance » MySQL » innodb_thread_concurrency / cpu usage
innodb_thread_concurrency / cpu usage [message #362] Fri, 17 November 2006 16:35 Go to next message
mmoeller  is currently offline mmoeller
Messages: 2
Registered: November 2006
Junior Member
Hi,

we have a 4-way dualcore xeon server running mysql 5.0.27 with bufferpool-mutex-patch.

the load is entirely cpu/memory bound, no noticable disk activity.

If i set innodb_thread_concurrency to 16 or 32 and simulate a lot of load, i see that the system is overloaded but cpu usage is only at 20%.
If i set it to unlimited (0), i see cpu is going to 100%, but actually *less* queries are performed per second.

If i use SHOW MUTEX STATUS, the only mutex heavily used is the main bufferpool mutex, so I guess the concurrency problem is not entirely solved by the patch?

Re: innodb_thread_concurrency / cpu usage [message #364 is a reply to message #362 ] Sat, 18 November 2006 16:25 Go to previous messageGo to next message
vadimtk  is currently offline vadimtk
Messages: 12
Registered: August 2006
Junior Member
Yes,
perhaps problem still in buffer pool.

Can you try 5.0-bk ?

http://dev.mysql.com/doc/refman/5.0/en/installing-source-tre e.html

Re: innodb_thread_concurrency / cpu usage [message #368 is a reply to message #362 ] Mon, 20 November 2006 13:08 Go to previous messageGo to next message
Peter  is currently offline Peter
Messages: 405
Registered: August 2006
Senior Member
Super Guru
Also,

Can you report how much scalability do you get, ie if you can simulate your workload with 1 thread, 4 threads, 16 threads.

The interesting thing about current official patch is - it scales differently on different platforms and different workloads. For older Xeons it scales quite badly still. New (Woodcrest) Xeons are much better but still it can be far from perfect scalability depending on workload.

I have not had a chance to check on Opteron yet.


Peter Zaitsev, MySQL Performance Expert
MySQL Performance Blog - http://www.mysqlperformanceblog.com
MySQL Consulting http://www.mysqlperformanceblog.com/mysql-consulting/
Re: innodb_thread_concurrency / cpu usage [message #369 is a reply to message #368 ] Mon, 20 November 2006 13:18 Go to previous message
mmoeller  is currently offline mmoeller
Messages: 2
Registered: November 2006
Junior Member
The problem is that we only have one 4-way server yet, and i cant take that one offline for a long time Sad

I will try the 5.0-bk version tomorrow, and tell you if it helped Wink

A diff from 5.0-bk to 5.0.27 shows up a new mutex in buf0buf.h, so i'm quite optimistic.
Previous Topic:InnoDB data layout
Next Topic:How To know Table/Record changed, best performance?
Goto Forum:
  


Current Time: Thu Jul 9 21:42:00 EDT 2009

Total time taken to generate the page: 0.01242 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.