Home
Twitter
RSS
Newsletter
PALGN really slow?
Goto page Previous 1, 2, 3, 4, 5, 6, 7, 8, 9 Next
This forum is locked you cannot post, reply to or edit topics   This topic is locked you cannot edit posts or make replies    PAL Gaming Network Forum Index
   -> General Forums, Archive
View previous topic :: View next topic  
Author Message
NeoSanity




Status: Offline
Joined: 07 Nov 2006
Posts: 2988
$poons: 17.20
Location: Sydney
australia.gif

PostPosted: Fri Nov 18, 2011 12:31 am    Post subject: Reply with quote

Smurf80 wrote:
I guess the hush hush stuff the staff have been talking about have come to light tonight.....

Pretty much, same shit different smell.
Back to top
Trade $poons with user View users profile Send private message
desmodontinae




Status: Offline
Joined: 04 Nov 2010
Posts: 43
$poons: 0.60
Location: Wollongong
australia.gif

PostPosted: Fri Nov 18, 2011 12:57 am    Post subject: Reply with quote

Smurf80 wrote:
LeonJ wrote:
I really have no idea what's going on.

You and me both dude, seems like a hostile takeover.....


_________________
When I get old, I'll live alone and be a crazy old cat lady. The police might question me, but if I drop a bag of cats, I'll tell them the cats aren't mine and I don't know where they came from.
Back to top
Trade $poons with user View users profile Send private message
Discosis
Resident Nerd



Status: Offline
Joined: 03 Nov 2006
Posts: 20
$poons: 0.00

blank.gif

PostPosted: Fri Nov 18, 2011 1:53 am    Post subject: Reply with quote

It's 1am (actually by the time I finished writing this, more like 2am). The server is slow. What's a guy to do? Well, if you're me then you're checking out why it's slow.

What I've found is that when the server responds slowly it's generally because of locked processes in MySQL. At the time I investigated this particular bout of slowness I found ~60 queries locked in the database, some for over two minutes.

When queries lock, pages don't get generated, and the processes that are supposed to serve them hang around taking up memory.

Let's talk about memory for a bit. The current server has 2GB of RAM. This is not a lot for a server. A normal PHP process generally likes around 16 Mb of RAM. It doesn't use it, but it *can*, which is important. This means on a webserver with 2 GB of RAM you can theoretically serve 2048/16 processes - 128 simultaneous requests. This value is important, because *IF* every PHP process on the system *WERE* to suddenly consume all available memory for something, that's the highest number of processes you can support without paging to disk. As James pointed out, paging to disk is very expensive for a server, mainly because things run some order of magnitude slower than they should, which just slows EVERYTHING down.

By the way, PALGN's PHP processes are actually configured to use 128 Mb of RAM each, probably because at some point it became necessary to raise the limit to stop running out of RAM while serving a page.

Of course, that's a webserver. PALGN's server is a webserver, a DB server, a mail server, and a DNS server. There's a few other services in there, but I think you're getting the point. As James has previously pointed out, MySQL likes memory. It's a database, you'd expect it to do that.

(Interestingly enough, right now as I write this and the server's slow, we're NOT running out of memory. It's close, but we're within the limits of physical RAM on the server.)

So in this environment (where we really can't support a lot of simultaneous operations), it's in our interest to serve pages as fast as possible and clear that slot up for the next request to come along. This is very difficult to do when the database is slow.

So, why is the database slow? There's a couple of reasons. The first is simple - queries are being run that aren't hitting indexes. We need to find the slow queries and figure out what indexes to add to the tables to speed them up. It's amazing what effect this can have on a system. Secondly, it's because tables in the database are built using the MyISAM storage engine. MyISAM is nice and fast (which is one of the main reasons people use MySQL in the first place), but it doesn't handle exclusivity when writing data to a table very well. It'll lock the entire table when updating one row in it, so noone can read from or write to the table. This is called table-level locking, and it's pretty annoying. We can move to InnoDB, which has row-level locking (only the row being updated is locked, everyone's free to read from the table), but this is non-trivial, and InnoDB tends to use more resources -- if you'll recall, I just pointed out we're pretty short on RAM.

What do we do about it? Well, we get off this server and onto a newer one. This has been a point of contention for a while because of the age of some of the PHP code running on the site. There had been information going around that we're running PHP 4 and the code won't run under PHP 5. Actually, we're running PHP 5.2, and things are working. Thus it becomes a migration and server management issue.

The new server has more RAM, so we can run more processes concurrently. We fix the queries that aren't hitting indexes. We move to InnoDB. We look into caching things with Memcache to remove load from the DB entirely. We get the database working properly, and we can serve pages faster.

... for those of you who are wondering, that's what I do.
Back to top
Trade $poons with user View users profile Send private message
Discosis
Resident Nerd



Status: Offline
Joined: 03 Nov 2006
Posts: 20
$poons: 0.00

blank.gif

PostPosted: Fri Nov 18, 2011 1:58 am    Post subject: Reply with quote

By the way, I've seen the bills for running the current server, and for commissioning the new one. It's not cheap. If you'd like to foot the bill (there's 4 figures in it before you get to the decimal points) then feel free to contribute.

Otherwise, some of you could show a BIT of respect for the fact that someone's actually paying real money for this virtual playground.
Back to top
Trade $poons with user View users profile Send private message
Discosis
Resident Nerd



Status: Offline
Joined: 03 Nov 2006
Posts: 20
$poons: 0.00

blank.gif

PostPosted: Fri Nov 18, 2011 2:06 am    Post subject: Reply with quote

Score:
-1

Vote:
crescent fresh
Also, no I'm not being paid.
Back to top
Trade $poons with user View users profile Send private message
Cro
PALGN Moderator

PALGN Moderator

Status: Offline
Joined: 18 Jul 2005
Posts: 4629
$poons: 1074.00
Location: W.A
australia.gif

PostPosted: Fri Nov 18, 2011 2:09 am    Post subject: Reply with quote

Score:
2

Vote:
jprockbelly
Smurf80
*reaching for ban stick*
_________________
Back to top
Trade $poons with user View users profile Send private message Send email MSN Messenger
Karai Pantsu
PALGN Moderator

PALGN Moderator

Status: Offline
Joined: 17 Aug 2006
Posts: 10109
$poons: 29.06
Location: Melbexico
blank.gif

PostPosted: Fri Nov 18, 2011 2:50 am    Post subject: Reply with quote

Plenty of respect is shown here to those who have visibly put their time, effort, and money towards making this website and the forums worth being a part of. That is to say, the Staff.
_________________
Back to top
Trade $poons with user View users profile Send private message Visit posters website
Cian




Status: Offline
Joined: 17 Sep 2009
Posts: 2184
$poons: 939.60
Location: Melbourne
ireland.gif

PostPosted: Fri Nov 18, 2011 6:27 am    Post subject: Reply with quote

Discosis wrote:
Otherwise, some of you could show a BIT of respect for the fact that someone's actually paying real money for this virtual playground.


Wow... I mean really, wow.

The same could be said for you Jason, show some respect by not coming across as a complete and utter twat. This respect thing works both ways. And if you expect anyone here to give you (or that clown Roland) so much as a cent, then you're greatly mistaken.

You have no idea what's been going on here so don't lecture us, answer us. Or at least attempt to instead of blatantly ignoring fair questions. Only then will you earn some respect. So far, I have more time for that psycopath spacepony and if you knew anything about PALGN, then you'd know exactly how little the community thinks of you right now.

An apology wouldn't do any harm either. #justsayin
_________________
Back to top
Trade $poons with user View users profile Send private message Send email
Smurf80




Status: Offline
Joined: 03 Apr 2008
Posts: 1929
$poons: 261.60

australia.gif

PostPosted: Fri Nov 18, 2011 7:54 am    Post subject: Reply with quote

Score:
1

Vote:
Jeremy
Discosis wrote:
Also, no I'm not being paid enough

_________________

Thanks to segax for the sig!
Back to top
Trade $poons with user View users profile Send private message
Fetidchimp




Status: Offline
Joined: 02 Jul 2007
Posts: 8666
$poons: 60.20

newzealand.gif

PostPosted: Fri Nov 18, 2011 8:06 am    Post subject: Reply with quote

This shit takes the fucking cake....
If this is how you fucks do business, good luck with that.

Then you can have all the ridiculous pop up ads you like because no one will be here to give a toss about it....fuck me, did you two go to the randolph and mortimer duke school of business or some shit, because last i checked, pissing off the people that you intend to try and make money out of, is not a good way to go about it.
_________________
kill, kill, kill.....the white man. Kill the white man, kill
Back to top
Trade $poons with user View users profile Send private message MSN Messenger
ThunderCurls




Status: Offline
Joined: 26 Mar 2009
Posts: 1127
$poons: 9.80
Location: Tasmania
australia.gif

PostPosted: Fri Nov 18, 2011 9:08 am    Post subject: Reply with quote

Discosis wrote:
By the way, I've seen the bills for running the current server, and for commissioning the new one. It's not cheap. If you'd like to foot the bill (there's 4 figures in it before you get to the decimal points) then feel free to contribute.

Otherwise, some of you could show a BIT of respect for the fact that someone's actually paying real money for this virtual playground.


Respect should be earned.

Like the respect that all the unpaid staff of this once glorious website have earned, if it weren't for them who knows where this website would be...

For example, if the staff here were to splinter off and start their own gaman, reviewan, postan forum I would go there because they have my respect... I wouldn't stay here with a website owner and his pet robot-fixer dog who has no idea about how to communicate with others.
_________________
Want cutting-edge Australian video game journalism with a friendly community? Click here!
Back to top
Trade $poons with user View users profile Send private message
Benza




Status: Offline
Joined: 11 Mar 2008
Posts: 14586
$poons: 119.20

blank.gif

PostPosted: Fri Nov 18, 2011 9:27 am    Post subject: Reply with quote

this thread

_________________
Back to top
Trade $poons with user View users profile Send private message
mikezilla2




Status: Offline
Joined: 12 Jun 2007
Posts: 5236
$poons: 588.60

blank.gif

PostPosted: Fri Nov 18, 2011 10:00 am    Post subject: Reply with quote

this benza


_________________
Back to top
Trade $poons with user View users profile Send private message
Shnryu




Status: Offline
Joined: 02 Oct 2009
Posts: 138
$poons: 32.60
Location: Melbourne
australia.gif

PostPosted: Fri Nov 18, 2011 10:05 am    Post subject: Reply with quote

Score:
0

Vote:
The site has become noticeably faster and the bank ad is gone. I'm only a random member nobody really knows but i like this site all the same, so if its because of the work Discosis is doing, then i just wanted to say thanks.
Back to top
Trade $poons with user View users profile Send private message
Island_Wolf




Status: Offline
Joined: 01 Feb 2007
Posts: 3126
$poons: 849.10
Location: Sydney
australia.gif

PostPosted: Fri Nov 18, 2011 10:26 am    Post subject: Reply with quote

Discosis, not trying to be rude but James had already explained the current state of the server, issues with it etc many times in the past in a tad less technical way. He had blockers to do improvements (I feel sorry for annoying James all these years about the website). Upgrade is a good thing, the secretive isn't.

Being a developer, I know what is like to develop things in hostile environment and I never liked it so I do feel for you. I have web applications that no one used but had to develop it anyway, for me, this is just the case of people not using it. I know you are just doing your job but what's the point of developing/spending away if "no one" (PALGN community) is going to use it?

Since there's much hostility (apologies if that is not the right word), maybe halt the big changes to the website (just focus on migrating to the new server) and start focusing on listening to our needs? This is been dragging on for way too long now.
_________________
"Work hard now, play even harder later"
I am an Industry Ambassador at Girl Geek Coffees (Sydney)
Unofficial PALGNchat - IRC Client *New Server!*
Back to top
Trade $poons with user View users profile Send private message MSN Messenger
Fetidchimp




Status: Offline
Joined: 02 Jul 2007
Posts: 8666
$poons: 60.20

newzealand.gif

PostPosted: Fri Nov 18, 2011 11:19 am    Post subject: Reply with quote

Score:
0

Vote:
Shnryu wrote:
The site has become noticeably faster and the bank ad is gone. I'm only a random member nobody really knows but i like this site all the same, so if its because of the work Discosis is doing, then i just wanted to say thanks.


you mozzed it...first rule of chug club, you do not talk about chug club
_________________
kill, kill, kill.....the white man. Kill the white man, kill
Back to top
Trade $poons with user View users profile Send private message MSN Messenger
BurnZ




Status: Offline
Joined: 06 Sep 2004
Posts: 5964
$poons: 3093.00
Location: rocketchainsaw.com.au
australia.gif

PostPosted: Fri Nov 18, 2011 11:53 am    Post subject: Reply with quote

Discosis wrote:
Blah.
Discosis wrote:
Blah.
Discosis wrote:
Blah.

For someone who has all this technical know-how you sure don't know how to use the edit button with that triple post right there...
_________________



R.I.P. DEJA VU - 21/08/2010
R.I.P. Tanya - 16/04/2011
Back to top
Trade $poons with user View users profile Send private message Visit posters website
Jarrod




Status: Offline
Joined: 07 Dec 2007
Posts: 8284
$poons: 369.60
Location: Preston
australia.gif

PostPosted: Fri Nov 18, 2011 12:05 pm    Post subject: Reply with quote

Score:
2

Vote:
topaz
theory

_________________


Back to top
Trade $poons with user View users profile Send private message Visit posters website
ThunderCurls




Status: Offline
Joined: 26 Mar 2009
Posts: 1127
$poons: 9.80
Location: Tasmania
australia.gif

PostPosted: Fri Nov 18, 2011 12:08 pm    Post subject: Reply with quote

Score:
3

Vote:
kaerlis
Island_Wolf
Benza
Rollin' Rollin' Rollin'

Keep movin', movin', movin',
Though they're disapprovin',
Keep them doggies movin' Rawhide!
Don't try to understand 'em,
Just rope and throw and grab 'em,
Soon we'll be living high and wide.
Boy my heart's calculatin'
My true love will be waitin', be waiting at the end of my ride.

Move 'em on, head 'em up,
Head 'em up, move 'em out,
Move 'em on, head 'em out Rawhide!
Set 'em out, ride 'em in
Ride 'em in, let 'em out,
Cut 'em out, ride 'em in Rawhide.
_________________
Want cutting-edge Australian video game journalism with a friendly community? Click here!
Back to top
Trade $poons with user View users profile Send private message
Benza




Status: Offline
Joined: 11 Mar 2008
Posts: 14586
$poons: 119.20

blank.gif

PostPosted: Fri Nov 18, 2011 12:21 pm    Post subject: Reply with quote

I saw the rollin, rollin, rollin and immediatly started reading that to the tune of Limp Bizkits Rollin'....

... this is not a fact I'm proud of.
_________________
Back to top
Trade $poons with user View users profile Send private message
fatpizza




Status: Offline
Joined: 09 Apr 2007
Posts: 1722
$poons: 348.20
Location: Perth
australia.gif

PostPosted: Fri Nov 18, 2011 12:24 pm    Post subject: Reply with quote

Benza wrote:
I saw the rollin, rollin, rollin and immediatly started reading that to the tune of Limp Bizkits Rollin'....

... this is not a fact I'm proud of.


...Me too...
_________________
Back to top
Trade $poons with user View users profile Send private message
theory
PALGN Moderator

PALGN Moderator

Status: Offline
Joined: 17 May 2005
Posts: 9112
$poons: 1275.00
Location: Melbourne
australia.gif

PostPosted: Fri Nov 18, 2011 12:47 pm    Post subject: Reply with quote


_________________
Back to top
Trade $poons with user View users profile Send private message
Cyph




Status: Offline
Joined: 17 Apr 2008
Posts: 3977
$poons: 716.80
Location: Perth, WA
australia.gif

PostPosted: Fri Nov 18, 2011 12:52 pm    Post subject: Reply with quote

Score:
0

Vote:
Wow, this thread has picked up. Love the popcorn image Benza.

In all seriousness.... how hard is it to make a new forum and for us to move to it?
Back to top
Trade $poons with user View users profile Send private message
Fetidchimp




Status: Offline
Joined: 02 Jul 2007
Posts: 8666
$poons: 60.20

newzealand.gif

PostPosted: Fri Nov 18, 2011 1:03 pm    Post subject: Reply with quote

probably not so hard for us, probably a bit harder for jeremy and co.
And really, they shouldn't have to.
_________________
kill, kill, kill.....the white man. Kill the white man, kill
Back to top
Trade $poons with user View users profile Send private message MSN Messenger
Kurupt




Status: Offline
Joined: 23 Apr 2007
Posts: 1140
$poons: 211.10

blank.gif

PostPosted: Fri Nov 18, 2011 1:13 pm    Post subject: Reply with quote

I would just like to thank everyone for making this the biggest thread I have ever started on any forum.

You're all cool dudes. <3
Back to top
Trade $poons with user View users profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked you cannot post, reply to or edit topics   This topic is locked you cannot edit posts or make replies    PAL Gaming Network Forum Index
   -> General Forums, Archive
All times are GMT + 11 Hours
Goto page Previous 1, 2, 3, 4, 5, 6, 7, 8, 9 Next
Page 6 of 9

 
Jump to: 
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum