CPU usage

This is a discussion on CPU usage within the MySQL Database forums, part of the Database Forums category; Hello, I'm running mysql / innodb tables on a dual 2.8 xeon box with 2GB RAM and noticed that ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-07-2006
ROB
 
Posts: n/a
Default CPU usage

Hello,

I'm running mysql / innodb tables on a dual 2.8 xeon box with 2GB RAM
and noticed that CPU is used at 90%.

RAM usage is ok. Approx 50% free.

I have approx 40 queries per second and I wonder if there isa anything
I can do in my database config to improve performance apart from
changing CPU. Do you suggest more CPU?

Any suggestions? Thanks!

Reply With Quote
  #2 (permalink)  
Old 03-07-2006
Axel Schwenke
 
Posts: n/a
Default Re: CPU usage

"ROB" <robsia@gmail.com> wrote:
>
> I'm running mysql / innodb tables on a dual 2.8 xeon box with 2GB RAM
> and noticed that CPU is used at 90%.
>
> RAM usage is ok. Approx 50% free.


50% unused RAM is *not* OK.

> I have approx 40 queries per second and I wonder if there isa anything
> I can do in my database config to improve performance apart from
> changing CPU. Do you suggest more CPU?


40 qps is *nothing*

A server that big should be able to handle 4000 qps. Probably your
database schema and/or queries are not optimized (missing indexes,
denormalized schema).

You should turn on the slow-query-log and identify those queries.
Then you can use EXPLAIN to find out, what to optimize.


XL
--
Axel Schwenke, Senior Software Developer, MySQL AB

Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/
Reply With Quote
  #3 (permalink)  
Old 03-07-2006
Bill Karwin
 
Posts: n/a
Default Re: CPU usage

"ROB" <robsia@gmail.com> wrote in message
news:1141740572.523537.73410@v46g2000cwv.googlegro ups.com...
> I'm running mysql / innodb tables on a dual 2.8 xeon box with 2GB RAM
> and noticed that CPU is used at 90%.


What operating system brand and version? e.g. FreeBSD 4.4, Windows XP Pro
sp2.
What MySQL version? e.g. 4.0, 4.1, 5.0.

There are certain combinations of OS and MySQL that have been reported to
cause spurious increases in CPU load.

Regards,
Bill K.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0