Jump to content
SAU Community

Recommended Posts

  • Replies 56
  • Created
  • Last Reply

Top Posters In This Topic

OK, Just saw the IPS Driver Errors just now.

It looks like the service which keeps the search index up to date is causing table locking on the posts table. I have been meaning to convert that table to Innodb (no table-level locking) but haven't gotten around to it. I'll try to do it over the weekend.

  • 2 weeks later...

from what ive seen so far and learnt it seems the actual database is probably the bottleneck

300-400ms isnt exactly crash hot but that certainly wont make the page load in 20 seconds plus

typical loading times i am seeing from a few sources is well into the 10 seconds for a page load

it could be a case some users have some stupid indexes or some whacko foreign keys etc on them

my access is pathetic, it takes 10 seconds + for any thread to load

if i fork more connections its not different they all just take as long

its probably a case we are maxing out mysql and its not perfomring as well as it could be

a load average of the box is exactly that, the average load in the running queue

it does not give an accurate representation to how mysql is performing if it has 3 childs that are running as the load will just show around 1,2,3 etc

but if each of those pids is fightint for locking resouces (which mysql is HOPELESS at) and other resources then yeah its going to suck

how is the database setup, is it on localhost

has anyone optimized the schemea?

has anyone looked at the slow queruies (theres a command arg to log them)

how are the indexes setup for the big tables?

if you do show process do you see much locking processes or waiting?

wht about copy to tmp_table do you see much of this?

the actual tcp response from the box is a bit slow which is probably due to system load and number of apache childs

they could be fighting for resources, competing with other junk or it could just be the box is busy

a good test is;

open a dos prompt

telnet www.skylinesaustralia.com 80

then note how long the socket takes to open

this is a good sign that it could be either network or server/httpd process contention

then once its open paste in;

GET /forums/style_images/1/bc_new.gif HTTP/1.0

HOST: www.skylinesaustralia.com

and hit enter twice

it should come out pretty quickly and then end

so if it does then it shows the server and your connectivity is pretty fast

i think its only when you load the main forum pages that it takes ages

which is probanly all the sql seleciting and other junk involved

can we move to another datbase other than mysql?

postgres would be so much better

not tryring to be a know it all and pointing blame etc

more interested in getting it sorted

there are lots of tools to help debug slow pages / database etc

apache_top is a good one

the mysql slow_process command line is a good one

without the proper access i can only speculate and guess

but i know its driving me nuts and probably others

do we need to donate some more $$$?

Wow Paul, great post! Its good to see people taking an interest in fixing it rather than just getting cranky!

I agree wholeheartedly with you that it is MySQL. I have been playing with the conf for a few weeks now, I just cant seem to get it to a happy medium between load and speed.

Re. your questions;

how is the database setup, is it on localhost

- Yes

has anyone optimized the schemea?

- Its the default IPB Schema with additional tables for mods / hacks and other things

has anyone looked at the slow queruies (theres a command arg to log them)

- Yep, I log all slow (>5 sec) queries to a slow query log. I just havent check it in a while).

how are the indexes setup for the big tables?

- Not sure, but I have checked the indexes through the admin cp of IPB and it reports no problems.

if you do show process do you see much locking processes or waiting?

- Only occasionally. I have been considering changing the posts table to Innodb as we dont use full text on it anymore anyway as search is taken care of by Sphinx

wht about copy to tmp_table do you see much of this?

- Hmmm, havent noticed.

Also, I havent analyzed the database for a while, thats definately worthwhile doing.

I have a few ideas for speeding the site up. Postgres wasn't one of them but I am more than happy to go down that path. I was also going to setup lighttpd to serve static content (images mainly) and have apache looking after the php side of things.

You sound like you know your stuff, I'll be more than happy to give you access to the box to have a poke around if you'd like?

Thanks Paul,

Christian

hey no problems

happy to help out

the big ones that are likely to yield help will be chcking out apache_top

and looking at the mysql process listing it

it could either be httpd contention, if it is then its just apache conf tweaking

and if its sql related then we should find it in show processlist and other mysql checks etc

it cant hurt to manually check the indexes and the database shouldnt need to be 'checked' as in check table

as that will look for corrupted blocks etc

postgres will only help (or another database) in the event that mysql is bottlenecking

that is, its bottlenecking due to the way it locks the tables

mysql cant do row locking as its too simplistic so when someone makes a changes to their permissions

or adds a new thread etc it must lock the whole table and commit that change

so for the time being while its locked nothing else can read from that table

so you have all the other processes waiting for 'waiting - locked table'

ive seen it all too often with mysql and high performance based websites

postgres, sql server, oracle etc all do row locking

in the sense when a row is being updated or inserted they lock that specific row only

and allow access to all the other rows so your application isn't any wiser

im happy for some access to have a look around and see what i can find

maybe its something easy or maybe its something complicated

cant hurt to loook

hi guys

sorry about the late reply.

well done. The site is definatly faster from home and work.

Its still a little slow, but a hell of a lot better than what it was.

A little bit more tweaking and it will be perfect!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Similar Content

  • Latest Posts

    • You just need to remove the compressor housing, not the entire turbo. I would not be drilling and tapping anything with the housing still on anyways. 
    • So, I put my boat on a boat. First of all, I'm going to come out and say it. Why is Tasmania not considered a holy goal, an apex that all road-legal modified cars go to, to experience? This place is an absolute wonderland of titanic proportions. If people are already getting club runs for once in a lifetime 30 person cruises to Tassy then I've never seemed to see it. It is like someone replaced the entire place with an idyllic wonderland for cars, and all of the people living there with paid actors who are kind, humble, and friendly. Dear god. After doing a lap of almost all of the place I've found that it's a great way to find out all of the little things that the car isn't doing quite right and a great way to figure it all out. All in all, I drove for 4 hours a day for a week and nothing broke. I didn't even need to open the engine bay. This is by all means a great success, but it has left me with a list of things to potentially address. I also now have a 3D printed wheel fitment tool which annoyingly hasn't got any threads in it to actually assemble it. I might be able to tape it together to check the sizing I actually want to use, but it'll likely involving pulling the shocks out to properly measure travel at least at the front, and probably raise the car while I'm at it, at least in the rear. I scraped on quite a few things and I'm not sure how else to go about it. I was taking anything with a bump at what felt like 89 degree angles. And address those 10 other tasks. And wash the car. God damn it is dirty. And somehow, the weather was perfect the entire time - And because I was on the top of Mt Wellington it turns out it was very much about to freeze up there. I did something I typically never do and took some photos up there in what must have been -10 and the foggy felt like suspended ice, rather than mere fog. If you own a car in Australia, you owe it to yourself to do it.
    • Damn that was hilarious, and a bit embarrassing for skylines in general 😂 vintage car life ey. That R33 really stomped. Pretty entertaining stuff
    • Hi, I have a r32 gtr transmission. Does any of you guys have an idea how much power it will hold with the billet center plate and stock gearset? At what power level and use did yours brake with or without billet plate? Thanks, Oystein Lovik
    • Saw this replica police car based on a Mitsubishi Starion XX parked next to a 'police box' (it's literally a box) in Hirohata, Himeji City in Hyogo prefecture the other day. It's owned by Morii-san who is a local Mitsubishi Starion enthusiast. According to a local radio station blog post, he always wanted to make a police car himself based on ones he saw in his favourite Manga comics.  As it's illegal to modify a car to look like a police car and drive on the road, Morii-san tried many times to get permission from Aboshi police station headquarters nearby. They refused initially by after they got tired of that they granted him permission. However, the car can only be displayed on private property and obviously can't be registered as long as the police livery is present. The car was completed at a cost of 1.5 million yen (US$ 10,000) in addition to the car cost. A location was chosen outside Hirohata Police box where the car can easily been seen from the street. Morii-san has two other Starion road cars, both widebody GSR-VRs.
×
×
  • Create New...