Hi all! I've been working on some performance-related stuff today and figured I should post an update.



Firstly, I have to say that the new servers have been (from a corruption standpoint), rock-solid. That means we haven't been hard-crashing every 30 hours as a result of slow erosion of the database, nor have we been forced to recover a database off the slave server (YAY!)



However, our new servers are not without their gremlins. You may have noticed the site has been somewhat slow off and on, and even unresponsive at times. In fact, I hear Titania and her team are putting together a new Subeta Weather Bureau to try and forecast some of these lag storms. In the meantime though, I thought I'd explain what's going on.



Normally more powerful servers are a good thing. After all, faster servers should mean a faster site, right? As it turns out, not always.



One of the main measures of how fast servers are is how many processors ("cores") it has. Your average desktop or laptop computer has 1 or 2 cores. Subeta's database servers have 8 cores. More cores allows the server to do more things at once. Great, right?



Unfortunately, there can also be downsides to having more cores. To understand why, imagine this: let's say you have 2 people, and they're both getting their picture taken. So they play rock paper scissors to decide who gets to go first, and then they take turns posing for the camera. Everything's smooth.



Now let's say there are 8 people. Now they all start fighting amongst each other, trying to decide who gets to go first. In the meantime, no pictures are being taken.



The same thing happens with complicated programs (like a database) running on really powerful computers. Lots of cores means the database creates lots of different threads to take advantage of those cores, and the threads compete for resources. This doesn't always work so well: sometimes the threads end up fighting over resources like disk access and access to protected memory, and spend so much time fighting that no queries are being answered.



It's this effect that's been affecting Subeta off and on since we moved to the new servers. For some reason, the combination of resources and server capacity is past some critical level where it's actually slowing things down rather than providing a speed-up.



Unfortunately, MySQL is such a complicated program, there is no easy way to determine what combination of settings is causing these concurrency issues. It's a matter of tuning the server through trial-and-error to see what mitigates (and hopefully eventually eliminates) this effect.



If this explanation confuses you, a less accurate analogy is that of a car. At slow speeds, the car wheels grip the road and move the car forward. But if the driver puts his foot on the gas, the car's wheels can spin in place, spinning very quickly but not going anywhere. That's kind of what Subeta does when it locks up... mysql CPU usage climbs to 800% (100% x 8 cores) but actual use of the CPU to do work drops to a mere 4%, down from 30-40% normally.



Anyway, I hope that was understandable enough. The long and short of it is, we're working hard to track down what's causing the lag and get rid of it. And apart from the occasional lag storms, the new servers have proved to be 10 times as stable as we were before.



-Alex




User Avatar: 3

Posted by alx

Shugo974

DUMP CENTOS AND SWITCH TO UBUNTU 9.04 SEVER EDITION IT WONT CRASH NO MATTER HOW MANY CORES THE SEVER HAS!!!
0

Torchedgirl

That....made sense to me. Ok who are you and what have you done with my brain?
Well done anyway, though the crashes are annoying when in the middle of a quest >.<
0

See_892

Alex, your ability to make tech jargon so clear is amazing, good work!
0

Jamileigh17

*loves* I know enough tech to know how much more complicated it probably is from the backend of it, so I adore your simple explanation... Managing to do that without having it sound like you're talking down? AMAZING!! Thank you!
0

Eternal

Thanks for keeping us posted. As a bit of coder and computer worker myself, I understood what you meant without need for analogies. But it's very nice to see it put so that all of us, not just the computer literate, can comprehend what you mean.
0

Aline

Varicolored: The problem with overclocking is that it increases the risk of breaking (technically, burning) the CPU by overuse, and it's not the safest way to go when you're with a server in hands.
0

User not found:

Thank you for letting us know, it made sense to me! :]
0

Botanist

Since the site moved I've not actually noticed much slowdown at all. Thanks for all your work, guys.
0

Beowulf

I've notice the lags but I always thought it was my computer <img src="http://images.subeta.net/smilies/6398_emoticon_raspberry.gif" border="0" /> Anyway thanks to keep us update!
0

joyz

So that's what made the site to terribly slow.. <img src="http://images.subeta.net/smilies/6398_emoticon_shocked.gif" border="0" />
I know my internet lagged, but typically not this much. Makes sense! :]
Thanks for keeping us out of the dark Alex. ^ ^
0

varicolored

That's why I chose to get a dual-core I can overclock (YAY unlocked multipliers!) instead of going for a quad. But I suppose with servers, it's not that easy. XD

Thanks for the update, Alex!
0

Eeyore

I understood that quite well, you explained it Very well ^^
0

Nindka

Thank you Alex
0

Lempicka

.. haha You're pretty good at explaining things/talking x3 thankyou <3
0

abstract

Thank you for all you do! ♥
0

WIN

thanks~
0

Blastoise

XD i love how you guys explain everything, even if i don't have a clue to what you are saying, thanks
0

User not found:

thanks for the update!! <img src="http://images.subeta.net/smilies/6398_emoticon_heart.gif" border="0" /> <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

o0_CareBear_0o

Sorry About The Double Post..
0

o0_CareBear_0o

You Doing A Great Job Alex. Thanks For Keeping Us In The Look And Explaining It To Us Who Don't Totally Understand The Ramifications Of Computers And Put Them In Laments Terms So We Can Understand What Is Going On.. Thanks!! <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />

Keep Up The Awesome Work Alex And All The Subeta Team!! <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

o0_CareBear_0o

You Doing A Great Job Alex. Thanks For Keeping Us In The Look And Explaining It To Us Who Don't Totally Understand The Ramifications Of Computers And Put Them In Laments Terms So We Can Understand What Is Going On.. Thanks!! <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />

Keep Up The Awesome Work Alex And All The Subeta Team!! <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

Diana

Is it my imagination, or does the site start to have more problems with the appearance of the tan "Alert Bars"?

*shout out to Znogirl, Alex's biggest fan*
0

Sopheroo

<b>Quote:</b><blockquote style="padding:5px; line-height:15px; background-color: #FAFFFF; border: 1px solid #000000; font-family: georgia; font-size: 10;">Are we ever going to get that "re-write" we were promised 1-2 years ago, you know, the one that would supposedly fix everything? Instead it seems more like problems are being 'patched' instead of completely fixed</blockquote>

I can answer that, if it was not done already.

There won't be one big recode. The site is being recoded slowly, part by part. The wardrobe was redone a while ago, and others parts of the site are in project.

The site will not change its coding overnight anymore. <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" /> It will be a slow, but steady change.
0

Midnight_916

Thank you Alex! <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" /> Without you the site would've crumbled my now rofl
0

Affirmation

as long as you're making progress, I'll be happy. <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" /> I would much rather have "lag storms" than the site going down every few days and wondering whether or not there will be a rollback and stuff. and thank you SO much for the updates. another site I go on -cough- is having issues too, not with servers but with other things, and they refuse to even acknowledge that there's a problem, much less inform us how to be safe and try to fix it. I really appreciate this and I'm so glad the new servers are working out! <img src="http://images.subeta.net/smilies/6398_emoticon_happy.gif" border="0" />
0

sondouxange

Thanks so much for the update! You guys must get about 2 hours sleep a night, working so hard. :0)
0

Melysine

Thanks for the information and also the great explanation. <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" />
It's nice to see such a close communication between the creators and users of the site. That's one of the things I really like about Subeta. <img src="http://images.subeta.net/smilies/6398_emoticon_heart.gif" border="0" />
Keep on the good work! <img src="http://images.subeta.net/smilies/6398_emoticon_wink.gif" border="0" />
0

Sirenia

oh my gosh you have been a busy bee great work and very much understandable .so much hard work and you never complain.
0

FLUX

Thanks for explaining in such a clear way and letting everyone know =D
0

fotfoh

Thanks for the update <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

User not found:

Subeta staff is awesome - thank you so much for your hard work!
0

Weezing

I'm assuming me not understanding a word of that means you're working very hard. Thank you for working hard for us to enjoy the site to it's fullest. <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

rhino_loupe

Alex is god C:
0

ThatScienceTeacher

I just want to say how awesome it is that Alex explains things in terms most people can understand, while still providing the technical details as well.
0

Myrrien_426

thanks for your hard work and for giving us these updates!!
0

AuraBryt

so as i tried to say should i be afraid that made perfect seance without the car analogy.....i think i've been spending way to much time with my computer....i should go read a book and dumb back down to a normal lvl
0

AuraBryt

should i be afraid that even without the car analogy that made perfect sence....i think i've spent way to much time around computers...i should go read a book >.<"
0

BEACH

As always, it is great to know you guys are there, aware of our frustration (not to mention yours :/ ) and working to make subeta the happiest place on earth...hmmm...have heard that somewhere <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" />
0

Lenayre

thanks for the update.
0

Bagheera23608

I totally do not understand 99% of what you wrote, but it's so very sweet of you to make the effort. I luff you.
0

mister_ed

Thanks for all your hard work! *smooch* <img src="http://images.subeta.net/smilies/6398_emoticon_happy.gif" border="0" />
0

User not found:

Thank you for spending some time to spill us some needed information.
We needed that, despite its long and daunting first impression. =]
Thanks again ~
0

taBOO

kudos alex.

you're all doing a kickass job.
0

Piraiya

I don't know much about computers and servers, but you make it all so understandable! Thanks for being awesome, Alex <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" />
0

Sweetie

Alex = Awesome <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" />
0

Mana_958

Alex is our hero <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" /> Thanks for explaining it so well for everyone (:
0

Psychedelia

I'd almost wonder if it's the kernel ? Just something makes me think about that, but it could also be that I've been listening ot friend discuss kernel compiling and scheduling and superpi for days now and it's all a muddle of what ?

Good luck.
0

Mystykal_IceMyst

Thank you for the update Alex, and for putting it into layman terms so that everyone can understand. <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

Vendetta

Nice to see an understandable explanation. I really like the analogies to the car.
0

Daley

Thanks for all your hard work Alex <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" />
And thanks also for trying to break it down for us. Made a lot of sense to me, and that's an achievement <img src="http://images.subeta.net/smilies/6398_emoticon_wink.gif" border="0" /> really appreciate you keeping us in the loop <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

SilveryBeing

Glad you are taking the time to explain all of this to us. Thank you! :3
0

Saddlebred

Thank you so much for all your hard work, Alex!
I really love how you take the time to explain these things to us too. You do a great job! <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

RegeneRegetta

Thanks for the update Alex. ♥ <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" /> You are very much loved. <img src="http://images.subeta.net/smilies/6398_emoticon_wink.gif" border="0" />
0

Chook_865

Thanks for the great explanation. Hope you get things sorted out.
0

miz_gadget

"It's this effect that's been affecting Subeta off and on since we moved to the new servers. "

The proper use of affect and effect. I think I love you, Alex! Thanks for the information, as always you explained things quite well. <3
0

User not found:

Thanks for explaining what's been going on.
Keep up the good work!
0

User not found:

Kind of reminds me of how our government works. lol! Thanks for keeping us informed!
0

tiatsuchi

Well, I'm sure we all appreciate your hard work in researching how to solve this issue. <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

nmagelet

Are we ever going to get that "re-write" we were promised 1-2 years ago, you know, the one that would supposedly fix everything? Instead it seems more like problems are being 'patched' instead of completely fixed
0

happy_lori

Thank You!
0

Friskysquirt

Thanks as always Alex. Not only do I now know why the site is acting wonky but I learnt more from you than I did in one year of a computing degree <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" />

So it's all to do with torque right? *wink*
0

Sensuous

So that's what's been happening.

Subeta has been lagging a lot for me. (urgh)
And I sometimes have to quit the browser 'cause it freezed up.

Hope you get things working well again. n-n
0

PaintedSavages

Wow. Are your eyes brown?
0

Bren

Wow- that's impressive! Fantastic description! Can't thank you enough for taking the time to explain this to us non-computer literate people!! Kudos to you and the team Alex!!
0

DwI

Thanks Alex!
I love that the staff of this site keep everyone <strong>completely</strong> updated about whats going on. You're amazing! Thanks! Keep up the wonderful work!
0

miao

Thanks for the explaination, and keeping all of us in the know
that's why I love this site so much <333
thanks again, and keep up the amazing work! :'D
0

Faun_171

Oh, tell Titiana that that would be tres helpful D':

Thank you so much, I barely understood it but your examples are great! The gist I got was: you are working hard, you are very capable, we are in good hands. As always, in your code I trust!
0

Tomorrow

That actualy makes sense. Good luck fixing it!
0

loopa

this explains a lot...now i have to apologize to my laptop. i thought the lag was his problem. yes, my laptop is male, so what?
0

TribalMoon

Alex ... you really are exceptional! I love to hear these explanations. Its a great way to show us Subetans that the people in charge give a damn about us. <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" /> <img src="http://images.subeta.net/smilies/6398_emoticon_heart.gif" border="0" />
0

Lilazn

ahaha I LOVE Hotroxy's statement
Alex is a sexy programmer haha... you're awesome Alex! <img src="http://images.subeta.net/smilies/6398_emoticon_happy.gif" border="0" /> :<img src="http://images.subeta.net/smilies/6398_emoticon_heart.gif" border="0" />:
0

ROXY

OMG NOT ONLY DO YOU GEEK OUT TO COMPUTER TALK BUT YOU KNOW CARS TOO? OMG YOU ARE THE SEXIEST PROGRAMMER EVAR. I CLAIM YOU AS MY SUBETA BOYFRIEND.

BACK OFF BITCHES. I'M SRS. SRS BSNSS.

/ME DRAGS ALX AWAY.
0

lalaorya

I love ow you always break things down for us. You're a doll ♥
0

SEA

Thanks for the update Alex. <img src="http://images.subeta.net/smilies/6398_emoticon_heart.gif" border="0" />
0

panda_cub29

Thank you for all the hard work you guys are putting in to keep subeta up and running <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

Sotsira

Thanks for the update!~

My father is a network administrator and deals with servers as the majority of his workload responsibility. I'll talk to him about it and see if he has any suggestions.
0

Synbar

Alex, great analogies! *i*, low-techie that I am, have gotten the idea of what the problem is, and can appreciate your efforts to resolve it. Thanks for the update!
0

InVader

Thanks for the update, keep up the great work.
0

Julie

Thanks for the analysis... *throws more money at Subeta* <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" />
0

Fallenemiko

yay for progress!!
(thank you subeta staff!!)
0

Monsoon

Alex, you really are my hero here! lol <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" /> Thanks for the heads' up and the most excellent explanation! You win a lollipop! <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" />
0

User not found:

I thought it was my comp being crappy, <img src="http://images.subeta.net/smilies/6398_emoticon_raspberry.gif" border="0" /> thanks for the update.
0

josi

so educational! the most i've learned about mysql servers since last semester ended. x3 thank you alx
0

Jinjah

Many thanks.
0

Valiant

You win an award. Getting me to understand the inner workings of computers is very difficult, and you did it! Give the man a gold star XD
0

natsnana

Thank you Alex for explaining so that even I can understand. You are very good at that. It sounds like something that may take a little time to fine tune, but not critical like the old problems. We appreciate you keeping us updated and know that it will all be worked out soon.
0

Saturnine

That sounds interesting. Troublesome, annoying, but an interesting learning experience.

Good luck solving the problem! <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

draithypie

Once again, Alex, thanks VERY much for an incredibly detailed and well-explained report! I'm still amazed at each one of these posts, since NO other similar site I've been on has EVER given updates like this! <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />

Also, I'd much rather deal with the ''lag storms'' and such than the Db crashing, so I'm staying positive <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
Best of luck figuring out the complications!! You guys have been doing so much work, and from what I've seen you're doing a great job. ^^
0

blaGue

I understood! You're amazing! <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" />

"You may have noticed the site has been somewhat slow off and on, and even unresponsive at times."

Ahhhh, I just thought it was my internet being crap.
0

JessFaerieLuv

Thanks for the update on what was going on! It makes a lot of sense since you explained it. Kudos on keeping us all informed!
0

dreamocracy

*hands alx the "longest news post" award* <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
Good luck!
0

styn

theres always something<img src="http://images.subeta.net/smilies/6398_emoticon_raspberry.gif" border="0" />

gl alx
0

idunnowhy

Too much to read. <img src="http://images.subeta.net/smilies/smiley_sadface.gif" border="0" />
But I got the gist of it.
Thanks for the update! <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" />
0

idunnowhy

Too much to read. <img src="http://images.subeta.net/smilies/smiley_sadface.gif" border="0" />
But I got the gist of it.
Thanks for the update! <img src="http://images.subeta.net/smilies/6398_emoticon_grin.gif" border="0" />
0

znogirl

Thanks for the heads up Alex. I really love to "watch" your brain work. <img src="http://images.subeta.net/smilies/6398_emoticon_wink.gif" border="0" /> It's very sexy. *ducks under desk*
0

BIRDIE

It did make since Alx my dear and I like this a whole bunches better then those dreadful rollbacks.
0

CerberusKat

thanks!!!!!!!!!!!!!
0

Jasher

You're doing the best you can and that's all we ask <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" /> Thanks Alex!
0

User not found:

wow that was a ton to read! thanks for the explanation though!
0

PoeticEnigma

Thank you, at least now I can stop crafting Voodoo Dolls of my ISP <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" />
0

chocolina

Thank you (:
0

SkyWolfAlpha

Good to know it's not some fault in the new servers. Sounds like it can be fixed by some code and settings, right? WAY better than having to get new hardware.
Best of luck! *passed some energy drinks out*
0

orangecake

You're quite wonderful at explaining things in laymen's terms. I'm sure I'm not the only one who appreciates the updates, especially since you make them understandable. c: Keep up the good work!
0

wave_562

Thanks for the update,
0

Starmates

Thanks Alex for your FAB updates all the time! I have no clue on computers and your lovely analogies with Pictures in cars helps me to understand it a lot better so thanks for dumbing it down for us not so geeky folks <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" /> and I love the stability of the site as well XD
0

Ispahan

As always, thanks for the explanation, Alex. I really appreciate how you make analogies of all this technical stuff to real life situations so that us common people can better understand what's going on. <img src="http://images.subeta.net/smilies/6398_emoticon_raspberry.gif" border="0" />
0

Nebulae

Thank you for keeping us updated.
0

Purity

Thanks for the update Alex! ♥
0

space

It did make sense!
Thanks for all of your hard work :]
0

Memory

That makes a lot of sense, actually. <img src="http://images.subeta.net/smilies/6398_emoticon_smile.gif" border="0" /> Thanks for keeping us in the loop, Alex. <img src="http://images.subeta.net/smilies/6398_emoticon_heart.gif" border="0" />
0

LEAHFAWN

Yay!
0

Leave Comment

Comments are currently on a short cache, meaning your comment may take a few minutes to show up after you post it.


-or-