hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Dedicated Server : Optimizing MySQL for heavy insert/update statements?
Reply

Dedicated Server Current and past experiences with dedicated server providers, bandwidth, and server performance. Review managed and unmanaged dedicated web servers, discuss both Windows and Unix dedicated server solutions, and discuss dedicated hosting providers. If your service is unavailable, please click here.
Forum Jump

Optimizing MySQL for heavy insert/update statements?

Reply Post New Thread In Dedicated Server Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-16-2005, 03:32 PM
DeltaAnime DeltaAnime is offline
Poooooonnyyy :*
 
Join Date: Jan 2003
Location: Canada
Posts: 3,895

Optimizing MySQL for heavy insert/update statements?


Hello Everyone!

I currently run a pretty heavy mysql server that runs with the following specs

su-3.00# mysqladmin status
Uptime: 8587 Threads: 19 Questions: 3710907 Slow queries: 120 Opens: 2772 Flush tables: 1 Open tables: 2087 Queries per second avg: 432.154

su-3.00# uptime
3:31PM up 13 days, 2:20, 1 user, load averages: 7.97, 9.74, 9.47

with the following conf file - http://deltaanime.net/my.cnf

We've compiled mysql with all the nice modes we could find, but it still doesn't help enough We've also put indexes in every table that could use them, but still it's not helping us out

Anyone recommend any conf file changes that might help with the load? =\

Thanks!

~Francisco

__________________
BuyVM - OpenVZ & KVM Based VPS Servers - Chat with us
- All popular VPN methods supported
- Affordable offloaded MySQL & DDoS protection
- 5GB backup space, unmetered private LAN bandwidth & native IPv6 included. All with a strong serving of pony

Reply With Quote


Sponsored Links
  #2  
Old 04-16-2005, 04:45 PM
Coolraul Coolraul is online now
Community Liaison
 
Join Date: May 2004
Location: Toronto, Canada
Posts: 4,650
Sorry bud, not my forte. I looked at the mysql config file and didnt see anything obvious.

Can I ask, the specs of the machine itself?

Is it dedicated to mysql or is a shared use box?

Multiple mysql databases or just one or two and if so whats the product?

Also finally, shouldnt this be in the technical help forum? Maybe there you would get some more help.

__________________
:: André Allen Communications, Community and Channel
:: iWeb.com - Dedicated, Cloud, Colocation
:: Managed, Guaranteed IOPS Cloud Servers, - Money back Guarantee http://www.iweb.com

Reply With Quote
  #3  
Old 04-16-2005, 06:46 PM
hiryuu hiryuu is offline
Web Hosting Master
 
Join Date: Jan 2003
Posts: 1,715
Without knowing the specs of the hardware or the database, I'd say that's a pretty decent query rate. Although InnoDB or BDB will give you better locking performance, lock contention doesn't drive up the load average like that. Do a 'vmstat 5 5' and we can see if the bottle neck is CPU or RAM.

__________________
Game Servers are the next hot market!
Slim margins, heavy support, fickle customers, and moronic suppliers!
Start your own today!

Reply With Quote
Sponsored Links
  #4  
Old 04-16-2005, 07:20 PM
bqinternet bqinternet is offline
Backup Guru
 
Join Date: Feb 2002
Location: New York, NY
Posts: 4,444
Based on the loads, it looks like more of a hardware issue. You probably either need more RAM, or your hard drives aren't keeping up. For heavy write situations, a good SCSI drive (or multiple in a RAID10 configuration) should do well.

__________________
Scott Burns, President
BQ Internet Corporation
Remote Rsync and FTP backup solutions
*** http://www.bqbackup.com/ ***

Reply With Quote
  #5  
Old 04-16-2005, 08:26 PM
DeltaAnime DeltaAnime is offline
Poooooonnyyy :*
 
Join Date: Jan 2003
Location: Canada
Posts: 3,895
Oh, i completely forgot specs, heh.

It's a dual xeon 3Ghz w/ 2GB of ram and 2 120GB sata's

~Francisco

__________________
BuyVM - OpenVZ & KVM Based VPS Servers - Chat with us
- All popular VPN methods supported
- Affordable offloaded MySQL & DDoS protection
- 5GB backup space, unmetered private LAN bandwidth & native IPv6 included. All with a strong serving of pony

Reply With Quote
  #6  
Old 04-16-2005, 09:51 PM
Kiamori Kiamori is offline
Artificial Intelligence
 
Join Date: Feb 2005
Location: Rochester, MN
Posts: 827
My guess would be it's your hard drives. If you want to stay sata, try Western Digital Raptor drives they have less then half the access times of most sata drives at 4.5ms 10k/rpm(36GB or 74GB). If you want faster and larger yet try Maxtor Atlas II SCSI Drives 3.0ms 15k/rpm(147GB) The Atlas II is a little spendy though at about $1300-1500USD. Your best bet is using some wd raptor drives in a raid set.

__________________
Area51.mn VPS, Dedicated & Colocated Servers.
Area51 Computers Custom Servers & Gaming Systems. (Since 1998)
NetAffect Email & Web Hosting Services. (Since 1996)
O===(~~~~~~~~~ Quality Systems & Service Since 1996 ~~~~~~~~)===O

Reply With Quote
  #7  
Old 04-16-2005, 10:09 PM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,593
Is the mysql on its own drive?

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
  #8  
Old 04-16-2005, 10:11 PM
bqinternet bqinternet is offline
Backup Guru
 
Join Date: Feb 2002
Location: New York, NY
Posts: 4,444
Quote:
Originally posted by Kiamori
If you want faster and larger yet try Maxtor Atlas II SCSI Drives 3.0ms 15k/rpm(147GB) The Atlas II is a little spendy though at about $1300-1500USD. Your best bet is using some wd raptor drives in a raid set.
Or a 15K Seagate Cheetah at 36GB, for about $160... Put several in RAID 10 for extra fun.

__________________
Scott Burns, President
BQ Internet Corporation
Remote Rsync and FTP backup solutions
*** http://www.bqbackup.com/ ***

Reply With Quote
  #9  
Old 04-16-2005, 10:12 PM
DeltaAnime DeltaAnime is offline
Poooooonnyyy :*
 
Join Date: Jan 2003
Location: Canada
Posts: 3,895
Quote:
Originally posted by Kiamori
My guess would be it's your hard drives. If you want to stay sata, try Western Digital Raptor drives they have less then half the access times of most sata drives at 4.5ms 10k/rpm(36GB or 74GB). If you want faster and larger yet try Maxtor Atlas II SCSI Drives 3.0ms 15k/rpm(147GB) The Atlas II is a little spendy though at about $1300-1500USD. Your best bet is using some wd raptor drives in a raid set.
SCSI's and such would rock, but as far as i can tell, sago doesn't do them very often =\

Was kinda hoping for a solution to the conf file, if there was even anything wrong with it.

~Francisco

__________________
BuyVM - OpenVZ & KVM Based VPS Servers - Chat with us
- All popular VPN methods supported
- Affordable offloaded MySQL & DDoS protection
- 5GB backup space, unmetered private LAN bandwidth & native IPv6 included. All with a strong serving of pony

Reply With Quote
  #10  
Old 04-16-2005, 10:14 PM
bqinternet bqinternet is offline
Backup Guru
 
Join Date: Feb 2002
Location: New York, NY
Posts: 4,444
Quote:
Originally posted by DeltaAnime
SCSI's and such would rock, but as far as i can tell, sago doesn't do them very often =\

Was kinda hoping for a solution to the conf file, if there was even anything wrong with it.

~Francisco
Your configuration is probably not the problem. Perhaps co-location is your next move up if Sago can't give you SCSI drives?

__________________
Scott Burns, President
BQ Internet Corporation
Remote Rsync and FTP backup solutions
*** http://www.bqbackup.com/ ***

Reply With Quote
  #11  
Old 04-16-2005, 10:17 PM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,593
Is this a dedicated mysql server? Is apache also serving pages? What os? What kernel?

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com | 1.855.RACK911
System Administration Extraordinaire

Managed Dedicated Servers, Linux Server Management, Disaster Recovery, Server Security Audits

Reply With Quote
  #12  
Old 04-16-2005, 10:21 PM
Kiamori Kiamori is offline
Artificial Intelligence
 
Join Date: Feb 2005
Location: Rochester, MN
Posts: 827
Quote:
Originally posted by bqinternet
Or a 15K Seagate Cheetah at 36GB, for about $160... Put several in RAID 10 for extra fun.
I'd rather use a quantum bigfoot or a floppy disc, I've had horrible luck with that brand of drives. Replacing a drive 3 times in one year costs more then a nice solid drive.

__________________
Area51.mn VPS, Dedicated & Colocated Servers.
Area51 Computers Custom Servers & Gaming Systems. (Since 1998)
NetAffect Email & Web Hosting Services. (Since 1996)
O===(~~~~~~~~~ Quality Systems & Service Since 1996 ~~~~~~~~)===O

Reply With Quote
  #13  
Old 04-16-2005, 10:21 PM
DeltaAnime DeltaAnime is offline
Poooooonnyyy :*
 
Join Date: Jan 2003
Location: Canada
Posts: 3,895
Quote:
Originally posted by thelinuxguy
Is this a dedicated mysql server? Is apache also serving pages? What os? What kernel?
It's a webserver, so it's doing the whole mix. The MySQL is running a anime torrent site, so it takes a thrashing.

Runs FreeBSD 5, custom compiled kernel

~Francisco

__________________
BuyVM - OpenVZ & KVM Based VPS Servers - Chat with us
- All popular VPN methods supported
- Affordable offloaded MySQL & DDoS protection
- 5GB backup space, unmetered private LAN bandwidth & native IPv6 included. All with a strong serving of pony

Reply With Quote
  #14  
Old 04-16-2005, 10:22 PM
Kiamori Kiamori is offline
Artificial Intelligence
 
Join Date: Feb 2005
Location: Rochester, MN
Posts: 827
Quote:
Originally posted by DeltaAnime
It's a webserver, so it's doing the whole mix. The MySQL is running a anime torrent site, so it takes a thrashing.

Runs FreeBSD 5, custom compiled kernel

~Francisco
seperate your sql from the rest that will help the most. I had the impression this was ded sql server.

__________________
Area51.mn VPS, Dedicated & Colocated Servers.
Area51 Computers Custom Servers & Gaming Systems. (Since 1998)
NetAffect Email & Web Hosting Services. (Since 1996)
O===(~~~~~~~~~ Quality Systems & Service Since 1996 ~~~~~~~~)===O

Reply With Quote
  #15  
Old 04-16-2005, 10:26 PM
DeltaAnime DeltaAnime is offline
Poooooonnyyy :*
 
Join Date: Jan 2003
Location: Canada
Posts: 3,895
Quote:
Originally posted by Kiamori
seperate your sql from the rest that will help the most. I had the impression this was ded sql server.
Hrm, i guess i gotta talk to sago and see if i can work out a nice price on one.

If i had something like a 2.8GHz p4 with a gig or two of ram, would this suffice with my mysql loads?

__________________
BuyVM - OpenVZ & KVM Based VPS Servers - Chat with us
- All popular VPN methods supported
- Affordable offloaded MySQL & DDoS protection
- 5GB backup space, unmetered private LAN bandwidth & native IPv6 included. All with a strong serving of pony

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Open Source Content Management System Joomla Releases Mobile-Friendly Joomla 3.0 with Bootstrap Web Hosting News 2012-09-27 15:40:27
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Attracta SEO Tools to be Bundled with cPanel Control Panel Web Hosting News 2011-10-12 16:17:42
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?