Server speed

Suggestions and comments about SummitPost's features, policies, and procedures. Post bugs here.
User Avatar
Bob Sihler
Forum Moderator
 
Posts: 8486
Joined: Mon Aug 23, 2004 3:20 pm
Thanked: 2764 times in 1527 posts

Re: Server speed

by Bob Sihler » Wed Mar 02, 2011 3:15 am

It has been a lot faster for me lately. Very few slowdowns, if any at all. Thanks for your efforts on this.
"Alcohol is like love. The first kiss is magic, the second is intimate, the third is routine. After that you take the girl's clothes off."

--Terry Lennox, The Long Goodbye (Raymond Chandler)

User Avatar
phlipdascrip

 
Posts: 221
Joined: Tue May 05, 2009 5:13 pm
Thanked: 23 times in 16 posts

Re: Server speed

by phlipdascrip » Wed Mar 02, 2011 4:18 am

out of curiosity, what did you change?

User Avatar
Josh Lewis

 
Posts: 3414
Joined: Thu Jan 06, 2011 11:12 pm
Thanked: 1111 times in 679 posts

Re: Server speed

by Josh Lewis » Wed Mar 02, 2011 5:34 am

It's good on my end. Matt your doing very well! :D Thanks for your support! A Few months it got real bad, but slowly it got better, get it... slowly! :lol: :wink: (Just had to say that for kicks and giggles)

User Avatar
rgg
Forum Moderator
 
Posts: 859
Joined: Sat Oct 02, 2010 7:15 pm
Thanked: 192 times in 154 posts

Re: Server speed

by rgg » Wed Mar 02, 2011 2:08 pm

Yep, I noticed that it was a lot faster most of the time. :D Now I can't get much real work done between posting pictures anymore ! :wink:

User Avatar
Sarah Simon

 
Posts: 937
Joined: Tue Jan 02, 2007 12:01 am
Thanked: 240 times in 108 posts

Re: Server speed

by Sarah Simon » Wed Mar 02, 2011 5:15 pm

Matt,

I posted several images for a route last evening, which is usually the "dreadfully slow" SP time, based on my experience.

Yesterday evening I experienced no delays - very fast.

Thanks!
Sarah
Go climb a mountain

User Avatar
Mountainjeff

 
Posts: 124
Joined: Sat Jun 24, 2006 11:55 pm
Thanked: 12 times in 8 posts

Re: Server speed

by Mountainjeff » Wed Mar 02, 2011 6:46 pm

Everything seems to be running faster for me than it was a few weeks ago.

User Avatar
phlipdascrip

 
Posts: 221
Joined: Tue May 05, 2009 5:13 pm
Thanked: 23 times in 16 posts

Re: Server speed

by phlipdascrip » Wed Mar 02, 2011 11:03 pm

Montana Matt wrote:I eliminated a query that was happening on every page load. The data that was being saved wasn't absolutely necessary.


just as incentives:
* did you check if access logs are being kept? this is an unnecessary disk I/O evil as well.
* since you mention an outdated DB, making sure proper keys and indexes are set on tables can make a huge difference on queries. are you keeping a slow query log?
* tweaking the last ms out of frequently run queries themselves can also make quite the difference.
* is there static (config..) data that you could move from the db to static code (e.g. arrays)? memcache is prolly too much work to set up properly.

if you checked those already, never mind - don't mean to be presumptuous :)

User Avatar
phlipdascrip

 
Posts: 221
Joined: Tue May 05, 2009 5:13 pm
Thanked: 23 times in 16 posts

Re: Server speed

by phlipdascrip » Thu Mar 03, 2011 1:29 am

Montana Matt wrote:Yes access logs are kept and getting rid of them probably isn't going to happen.

why not? aren't error logs sufficient?

Montana Matt wrote:It's not that the database is outdated. It's that it has grown so large that the storage engine we use for the main table isn't a good choice anymore.

I see. is the page content stored in the DB? did you consider writing it to files instead? plain text or xml, for example (e.g. [object ID].xml and then nodes for the different page sections). wouldn't that reduce the table size by what 90%? easily?

Montana Matt wrote:
phlipdascrip wrote:tweaking the last ms out of frequently run queries themselves can also make quite the difference.

I don't know what "ms" is in that sentence. But frequently run queries have been optimized quite well at this point.

milliseconds.

User Avatar
phlipdascrip

 
Posts: 221
Joined: Tue May 05, 2009 5:13 pm
Thanked: 23 times in 16 posts

Re: Server speed

by phlipdascrip » Fri Mar 04, 2011 6:00 pm

File access may be a bit slower than mysql, but for larger amounts of unindexed data my guess is the difference is not much. Of course XML parsing time comes on top of that, but with only few nodes inside each XML file I think this is negligible as well. The overhead put on mysql by storing those large amounts of data inside mysql however may be the bigger evil. To know for sure though you'd probably have to run some kind of benchmark.

Also not to forget the number of times you need to retrieve full page content is much smaller than querying for page properties (title, owner, rank etc.). You'd only need to access an XML file when a page is actually viewed.

Did you look at mysql's cache statistics and config as well (opened_tables, open_tables, table_cache etc.)? I remember we were able to improve performance by tweaking those values too.

User Avatar
phlipdascrip

 
Posts: 221
Joined: Tue May 05, 2009 5:13 pm
Thanked: 23 times in 16 posts

Re: Server speed

by phlipdascrip » Fri Mar 04, 2011 6:05 pm

Oh forgot, you could also set up memcache for caching just XML data. Frequently opened pages (e.g. featured on front page) would stay in the cache.

User Avatar
Josh Lewis

 
Posts: 3414
Joined: Thu Jan 06, 2011 11:12 pm
Thanked: 1111 times in 679 posts

Re: Server speed

by Josh Lewis » Sat Mar 05, 2011 3:38 am

Fascinated information. :) Glad we have you as our techy guy here.

User Avatar
Josh Lewis

 
Posts: 3414
Joined: Thu Jan 06, 2011 11:12 pm
Thanked: 1111 times in 679 posts

Re: Server speed

by Josh Lewis » Sun Mar 06, 2011 5:34 pm

I'm sad to say that sp seems to be loosing some of it's speed, still manageable but am starting to wonder about later on. :?

Edit: Well it's still fine right now...
Last edited by Josh Lewis on Tue Mar 08, 2011 11:20 pm, edited 1 time in total.

User Avatar
phlipdascrip

 
Posts: 221
Joined: Tue May 05, 2009 5:13 pm
Thanked: 23 times in 16 posts

Re: Server speed

by phlipdascrip » Tue Mar 08, 2011 11:09 pm

I see, well seems like you know what the last remaining issue is, albeit it being the biggest one I believe - a simple conversion from myisam to innodb isn't quite possible is it? I was just thinking, if you'd source actual page data out into xml files and add a mechanism to only update the corresponding meta data in the database IF that meta data has actually changed during a page edit, you may get a useful fix without having to convert the table type - only the xml file would need to be updated, not the db record if page meta data hasn't changed.

User Avatar
lcarreau

 
Posts: 4226
Joined: Thu Sep 06, 2007 10:27 pm
Thanked: 1898 times in 1415 posts

Re: Server speed

by lcarreau » Wed Mar 09, 2011 12:18 am

phlipdascrip wrote:I see, well seems like you know what the last remaining issue is, albeit it being the biggest one I believe - a simple conversion from myisam to innodb isn't quite possible is it? I was just thinking, if you'd source actual page data out into xml files and add a mechanism to only update the corresponding meta data in the database IF that meta data has actually changed during a page edit, you may get a useful fix without having to convert the table type - only the xml file would need to be updated, not the db record if page meta data hasn't changed.


Image
"Turkey Vultures always vomit when they get nervous."

The following user would like to thank lcarreau for this post
Buz Groshong

User Avatar
mvs

 
Posts: 1054
Joined: Tue Oct 23, 2001 7:44 pm
Thanked: 307 times in 123 posts

Re: Server speed

by mvs » Wed Mar 09, 2011 8:28 am

Apparently Wikipedia uses InnoDB. Probably InnoDB is the right architecture for the kind of site Summitpost is, basically a wiki for mountains. It's amazing we got so far with a global lock on the table level, I am surprised!

Why would conversion to InnoDB be hard? Because current code doesn't have to be transaction-aware?

Next

Return to Site Feedback

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests