LGF Technical Detour: DB Thrashing

Charles Johnsonfollow me on twitter
Tue Jun 5, 2007 at 5:53 pm PDT • Views: 162

This post is going to be totally geeked out, so feel free to tune out if you wish.

I ran into something odd in the last few days while experimenting with MySQL’s query cache, and I’m wondering if any of our DB ninjas might know the reason; Google has been worthless on this one, and none of my books are helping either. When I enable the query cache, our InnoDB session management table keeps going into a heavy thrashing mode, with SELECT queries that pile up and choke the whole system, apparently when the session manager goes into garbage collection. If you’ve noticed LGF suddenly getting unresponsive for short intervals, that’s why.

The query cache is off for now to prevent these hangups, but if anyone can give me a clue why this is happening (or has ideas for things to check) I’d like to know, because the query cache did seem to significantly improve performance in other areas.

And just to throw some geek kudos where deserved, one of the tools I used to observe this problem is the ultimate MySQL lava lamp (shows queries in real time), mytop. According to mytop, we’re processing between 300 to 700 queries per second, and our key efficiency (at last check) is 99.4%.

Advertisement

74 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

I've got it! toasters!

TwitterFacebook
LGF Pages
Recent Pages

Daniel Ballard
Late Afternoon Light-Kalanchoe
1 hour, 37 minutes ago
Views: 42 • Comments: 0
Tweets: 0 • Rating: 2

MikeySDCA
Colin Powell Endorsed Same-Sex Marriage Once It Was Safe, More Evidence He's Hardly a Great Leader.
1 hour, 40 minutes ago
Views: 36 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Attachment Birthers
1 hour, 50 minutes ago
Views: 44 • Comments: 0
Tweets: 0 • Rating: 0

Eclectic Infidel
City College of San Francisco Budget Update
2 hours, 29 minutes ago
Views: 61 • Comments: 0
Tweets: 0 • Rating: 0

Michael McBacon
Kansas governor signs 'Shariah bill' to ban Islamic law
7 hours ago
Views: 156 • Comments: 5
Tweets: 0 • Rating: 4

Aigle
National Geographic Traveler Veers Off Track
1 day, 7 hours ago
Views: 393 • Comments: 5
Tweets: 0 • Rating: -5

MichaelJ
Apple TV Slated to Debut in December?
1 day, 8 hours ago
Views: 199 • Comments: 0
Tweets: 0 • Rating: 1

Ascher
Israeli Who Saved Turk on Everest: You Never Abandon a Friend - Israel News, Ynetnews
1 day, 9 hours ago
Views: 264 • Comments: 1
Tweets: 0 • Rating: 3

Haywood Jabloeme
The Harrassment of Patterico & Its Roots in Left-Wing Activism
1 day, 9 hours ago
Views: 477 • Comments: 2
Tweets: 0 • Rating: 4

Curt
Brian Banks: (Video) Falsely accused of rape speaks out
1 day, 12 hours ago
Views: 240 • Comments: 1
Tweets: 0 • Rating: 3

 Frank says:

You get nothing with your college degree -- from Roxy & Elsewhere