Skip navigation links

MySQL Forums :: Performance :: Load avg is 65 and cpu is 100% on mysqld


Advanced Search

Re: Load avg is 65 and cpu is 100% on mysqld
Posted by: Aftab Khan ()
Date: June 24, 2012 04:37AM

>terrible ratio; you are better turning the QC off. >> You mean I should be turning off -> have_query_cache | YES ?

Yes please turn it off i.e.
SET GLOBAL query_cache_type=0;
(and add a line into mysql options file i.e. /etc/my.cnf)
[mysqld]
...
query_cache_type=0

Drop this index:
>KEY `BillingStatusIndex` (`billingstatus`),

Recreate following index:
>KEY `CircleRandomIndex` (`status`,`billingstatus`,`circle`),
i.e drop KEY `CircleRandomIndex`, add KEY `CircleRandomIndex`(`billingstatus`,`status`,`circle`);

And provide EXPLAIN output for the SELECTs before and after index changes:
EXPLAIN SELECT idsubscription,idkeyword,msisdn,subscribemode,billed,status,circle FROM subscription WHERE status = 'active' AND billingstatus = 'false' \G

>I increased the max_tmp_table_size to 3G. Now the disk tables are not increasing more. So load is a kinda gradual 0.4 as of now.. Still we might expect it to rise again. As mem is fully occupied on 64bit.

Looks like you are using big values for the connection buffers, so provide us SHOW GLOBAL VARIABLES/STATUS\G output for a review



Edited 5 time(s). Last edit at 06/24/2012 10:57AM by Aftab Khan.

Options: ReplyQuote


Subject Views Written By Posted
Load avg is 65 and cpu is 100% on mysqld 1046 Mannoj Kumar 06/20/2012 05:26AM
Re: Load avg is 65 and cpu is 100% on mysqld 565 Rick James 06/21/2012 12:38AM
Re: Load avg is 65 and cpu is 100% on mysqld 598 Mannoj Kumar 06/21/2012 11:12PM
Re: Load avg is 65 and cpu is 100% on mysqld 578 Rick James 06/23/2012 02:06PM
Re: Load avg is 65 and cpu is 100% on mysqld 579 Mannoj Kumar 06/24/2012 12:37AM
Re: Load avg is 65 and cpu is 100% on mysqld 579 Aftab Khan 06/24/2012 04:37AM
Re: Load avg is 65 and cpu is 100% on mysqld 506 Rick James 06/25/2012 08:06AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.